Quellcode durchsuchen

测试阶段 --下载3

sophieChenyx vor 5 Jahren
Ursprung
Commit
1bb5651dea

+ 3 - 2
src/models/accounts.js

@@ -1,3 +1,5 @@
+
+
 import {
   queryCampusList,
   downloadCampusExcel,
@@ -37,8 +39,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(' return blob Object res', res);
+      yield call(downloadCampusExcel, payload);
     },
     *fetchTerminalsList({ payload }, { call, put }) {
       const response = yield call(queryTerminalsList, payload);

+ 0 - 1
src/routes/Dashboard/Accounts/AccountsCampus.js

@@ -31,7 +31,6 @@ export default class CampusAccountsPage extends Component {
     this.props.dispatch({
       type: 'accounts/fetchCampusExcel'
     })
-    // 点击该链接的具体功能
   };
   handleFilterOperation = (params, states) => {
     this.setState({

+ 1 - 2
src/routes/Dashboard/Accounts/AccountsTotalList.js

@@ -19,7 +19,6 @@ export default class TotalListAccountsPage extends Component {
       Queryers: (state || {}).Queryers, // 查询的条件参数
     };
   }
-
   componentWillMount() {
     this.props.dispatch({
       type: 'accounts/fetchCampusAmount',
@@ -36,7 +35,7 @@ export default class TotalListAccountsPage extends Component {
       Queryers: params,
     });
     this.props.dispatch({
-      type: 'accounts/fetchTerminalsList',
+      type: 'accounts/fetchTotalList',
       payload: {
         ...params,
       },

+ 0 - 1
src/services/accounts.js

@@ -2,7 +2,6 @@ import { stringify } from 'qs';
 import request from '../utils/request';
 import { api, Hotax } from '../utils/config';
 
-
 export async function queryCampusList(params) {
   const newParams = {
     pageSize: Hotax.PAGE_SIZE,

+ 2 - 0
src/utils/request.js

@@ -78,6 +78,8 @@ export default function request(url, options) {
       };
     }
   }
+  // window.open 的情况
+  
 
   return fetch(url, newOptions)
     .then(checkHttpStatus)