diff --git a/src/component/Administrator/Transaction/TransactionTable.vue b/src/component/Administrator/Transaction/TransactionTable.vue index bdfc145d..91220970 100644 --- a/src/component/Administrator/Transaction/TransactionTable.vue +++ b/src/component/Administrator/Transaction/TransactionTable.vue @@ -101,6 +101,9 @@
Search
+
{ + filter.tableLoading = true; + // let data = setHistoryListData(); + let data = '' + Https.axiosPost(Https.httpUrls.queryTransactionDownload, data,{type: 'application/vnd.ms-excel;charset=utf-8'}).then( + (rv: any) => { + console.log(rv); + + if (rv) { + console.log(rv); + } + } + ); }; let lastGeTrialList = (str: string) => { clearHistoryList(); @@ -494,6 +512,7 @@ export default defineComponent({ searchHistoryList, lastGeTrialList, gettrialList, + downloadTransaction, filterOption, }; }, diff --git a/src/tool/https.js b/src/tool/https.js index 9c9737e0..5871ec69 100644 --- a/src/tool/https.js +++ b/src/tool/https.js @@ -62,6 +62,7 @@ axios.interceptors.response.use((res) =>{ // message.warning(res.data.errMsg) // return Promise.reject(res.data); // }else + console.log(res); if (res.data) { if (res.data.errCode === 0) { // message.error(res.data.errMsg) @@ -264,6 +265,7 @@ export const Https = { getCities:`/api/inquiry/getCities`,//获取所有付款订单使用的国家 getUserInfo:`/api/inquiry/getUserInfo`,//查询所有用户 queryTransaction:`/api/inquiry/queryTransaction`,//查询交易记录 + queryTransactionDownload:`/api/inquiry/queryTransaction/download`,//导出交易记录 //查询某个时间内design点击次数 getDesignStatistic:`/api/inquiry/getDesignStatistic`,//拒绝审批 getAllQuestionnaire:`/api/inquiry/getAllQuestionnaire`,//拒绝审批 diff --git a/src/views/HomeView/HomeView.vue b/src/views/HomeView/HomeView.vue index df6eed03..0ab06011 100644 --- a/src/views/HomeView/HomeView.vue +++ b/src/views/HomeView/HomeView.vue @@ -211,7 +211,7 @@ - +