From 0c2a0d0aaafe2d4beac67bf16c505d95105dcc48 Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期四, 12 一月 2023 09:26:57 +0800 Subject: [PATCH] 2023/1/12 肖辉 审核管理图标修改 --- src/views/intelligentPatrol/statistics/unlawful/time/index.vue | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/src/views/intelligentPatrol/statistics/unlawful/time/index.vue b/src/views/intelligentPatrol/statistics/unlawful/time/index.vue index a3772b5..264d934 100644 --- a/src/views/intelligentPatrol/statistics/unlawful/time/index.vue +++ b/src/views/intelligentPatrol/statistics/unlawful/time/index.vue @@ -140,7 +140,34 @@ methods: { ...mapActions(["searchByTime"]), - handleExport(e) {}, + handleExport(e) { + this.$axios({ + method: 'post', + url: `sccg/intelligentPatrol/statistics/export/unlawful`, + responseType: 'arraybuffer' + }) + .then(res => { + let time = new Date() + let deathdate =time.toLocaleDateString() + const blob = new Blob([res.data], { + type: "application/vnd.ms-excel;charset=utf-8", + }); + debugger + if (window.navigator.msSaveBlob) { + window.navigator.msSaveBlob(blob, deathdate+"鎸夋椂闂寸粺璁�" + ".xlsx"); + } else { + const url = window.URL.createObjectURL(blob); + const link = document.createElement("a"); + link.style.display = "none"; + link.href = url; + link.download = deathdate+"鎸夋椂闂寸粺璁�" + ".xlsx"; + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); + } + this.$message.success('鎿嶄綔鎴愬姛'); + }) + }, setTableDataHandle(e) {}, resetTableData(e) {}, // 璁剧疆琛ㄦ牸鏂戦┈绾� -- Gitblit v1.8.0