From 82031377f3200dd08b10bc32ebe3cb1b4769ca66 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Mon, 11 Sep 2023 16:08:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E7=A6=BB=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/api/index.js | 1 + src/views/stritl/index.vue | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/utils/api/index.js b/src/utils/api/index.js index 21dc317..ac83717 100644 --- a/src/utils/api/index.js +++ b/src/utils/api/index.js @@ -803,6 +803,7 @@ export function getOnlineTerminalListExcel() { return request({ url: "/api/getOnlineTerminalListExcel", method: "post", + params: data, responseType: "blob", }); } diff --git a/src/views/stritl/index.vue b/src/views/stritl/index.vue index 008047a..5372873 100644 --- a/src/views/stritl/index.vue +++ b/src/views/stritl/index.vue @@ -86,7 +86,10 @@ :visible.sync="dialogTableVisible" >
- 导出 + +
@@ -145,6 +150,7 @@ export default { dialogTableVisible: false, onLineData: [], exportLoading: false, + paramsLineVal: "", }; }, created() { @@ -172,6 +178,7 @@ export default { //查看在线列表 handleLook(val) { console.log(val); + this.paramsLineVal = val; this.dialogTableVisible = true; this.exportLoading = true; getOnlineTerminalList({ @@ -186,8 +193,9 @@ export default { .catch((err) => {}); }, //导出 - handleExport() { - window.location.href = "/api/api/getOnlineTerminalListExcel"; + handleExport(val) { + console.log(val); + window.location.href = "/api/api/getOnlineTerminalListExcel?type=" + val; }, // 隐患数量统计 changedate() {