|
@@ -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>
|