ソースを参照

添加企业微信用户管理地址

Lgx 4 年 前
コミット
8dfaa8db92
共有2 個のファイルを変更した11 個の追加8 個の削除を含む
  1. 8 8
      UI/src/pages/externalWechat/externalUserList.js
  2. 3 0
      UI/src/utils/config.js

+ 8 - 8
UI/src/pages/externalWechat/externalUserList.js

@@ -4,7 +4,7 @@ import { routerRedux } from 'dva/router'
 import { jrequest } from 'utils/request';
 import { config,request,util } from 'utils'
 import { connect } from 'dva';
-const { APIV4,WECHATAPIV5 } = config
+const { APIV4,WXAPIV5 } = config
 import {Modal,
   Row,
   Col,
@@ -55,21 +55,21 @@ class tag_setting extends React.Component {
   okClick1(){
     var fileName=this.state.fileName;
     if(fileName!=null&&fileName!=""){
-      window.location.href=WECHATAPIV5+"/api/excel/downloadTemplate?fileName="+fileName;
+      window.location.href=WXAPIV5+"/api/excel/downloadTemplate?fileName="+fileName;
     }
   }
   okClick2(){
     var fileName=this.state.fileName2;
     console.log(fileName)
     if(fileName!=null&&fileName!=""){
-      window.location.href=WECHATAPIV5+"/api/excel/downloadTemplate?fileName="+fileName;
+      window.location.href=WXAPIV5+"/api/excel/downloadTemplate?fileName="+fileName;
     }
   }
   getExcelTemp(){
-    window.location.href=WECHATAPIV5+"/api/excel/exportExcel"
+    window.location.href=WXAPIV5+"/api/excel/exportExcel"
   }
   getExcelTemp2(){
-    window.location.href=WECHATAPIV5+"/api/excel/exportMobileExcel"
+    window.location.href=WXAPIV5+"/api/excel/exportMobileExcel"
   }
   render() {
     let self = this;
@@ -89,7 +89,7 @@ class tag_setting extends React.Component {
     let gridOption = {
       title: "订单列表",
       url: {
-        read:WECHATAPIV5+"/api/excel/getExternalUserList"
+        read:WXAPIV5+"/api/excel/getExternalUserList"
       },
       actions: [
       {
@@ -133,7 +133,7 @@ class tag_setting extends React.Component {
                   onOk={self.okClick1.bind(self)}>                 
                   <Row>
                     <Col>
-                    {<Upload.Dragger name="files" action={WECHATAPIV5+"/api/excel/readExcel"} onChange={self.excelonChange.bind(self)}>
+                    {<Upload.Dragger name="files" action={WXAPIV5+"/api/excel/readExcel"} onChange={self.excelonChange.bind(self)}>
                     <p className="ant-upload-drag-icon">
                       <Icon type="inbox" />
                     </p>
@@ -154,7 +154,7 @@ class tag_setting extends React.Component {
                   onOk={self.okClick2.bind(self)}>                 
                   <Row>
                     <Col>
-                    {<Upload.Dragger name="files" action={WECHATAPIV5+"/api/excel/readMobileExcel"} onChange={self.excelonChange2.bind(self)}>
+                    {<Upload.Dragger name="files" action={WXAPIV5+"/api/excel/readMobileExcel"} onChange={self.excelonChange2.bind(self)}>
                     <p className="ant-upload-drag-icon">
                       <Icon type="inbox" />
                     </p>

+ 3 - 0
UI/src/utils/config.js

@@ -4,6 +4,7 @@ const APIV3 = 'http://localhost:8004'
 const APIV3Auth = 'http://localhost:8030'
 const JAPIV = 'http://localhost:8005'
 const APIV4 = 'http://localhost:8005'
+const WXAPIV5= 'http://localhost:7000'
 module.exports =  {
   name: '亮健会员系统管理',
   prefix: 'bird',
@@ -14,6 +15,7 @@ module.exports =  {
   CORS: ['http://localhost:8000', 
   'http://localhost:8030',
   'http://localhost:8004',
+  'http://localhost:7000',
   'https://coop.360lj.com',
   'http://localhost:7777','http://119.130.113.245:7777'],
   //YQL: ['http://localhost:57251'],
@@ -26,6 +28,7 @@ module.exports =  {
   APIV3,
   APIV3Auth,
   APIV4,
+  WXAPIV5,
   ClientId:'f3ed0d90-3fc8-4eba-b83c-a0cfe54c174d',
   ClientSecret:'78e238b4-c199-49ad-b619-69b6a78959d8',
   ApplicationKey:'test',