|
@@ -2,7 +2,6 @@
|
|
|
|
|
|
import {
|
|
|
queryCampusList,
|
|
|
- downloadCampusExcel,
|
|
|
queryTerminalsList,
|
|
|
downloadTerminalsExcel,
|
|
|
queryCampusAmount,
|
|
@@ -38,10 +37,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
*fetchCampusExcel({ payload }, { call }) {
|
|
|
- //window.open('http://47.95.197.36:8500/stmt/campus/export');
|
|
|
- const res = yield call(downloadCampusExcel, payload);
|
|
|
- console.log('res download',res);
|
|
|
-
|
|
|
+ window.open('/api/stmt/campus/export');
|
|
|
},
|
|
|
*fetchTerminalsList({ payload }, { call, put }) {
|
|
|
const response = yield call(queryTerminalsList, payload);
|
|
@@ -58,8 +54,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
*fetchTerminalsExcel({ payload }, { call }) {
|
|
|
- yield call(downloadTerminalsExcel, payload);
|
|
|
+ window.open(`/api/stmt/campus/export?${stringify(payload)}`);
|
|
|
},
|
|
|
+
|
|
|
*fetchCampusAmount({ payload }, { call, put }) {
|
|
|
const response = yield call(queryCampusAmount, payload);
|
|
|
if (response.success) {
|