From 4506c7f074f9dc7ec2937bd7d9c99a0a09d50ee6 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期三, 11 一月 2023 10:09:34 +0800
Subject: [PATCH] Merge branch 'dev1.0' of http://42.193.1.25:9521/r/sccg_ui into dev1.0
---
src/views/intelligentPatrol/statistics/unlawful/time/index.vue | 29 +++++++++
src/views/intelligentPatrol/statistics/unlawful/shop/index.vue | 29 +++++++++
src/views/intelligentPatrol/statistics/unlawful/type/index.vue | 29 +++++++++
src/views/intelligentPatrol/statistics/unlawful/area/index.vue | 29 +++++++++
src/views/intelligentPatrol/statistics/unlawful/point/index.vue | 29 +++++++++
5 files changed, 140 insertions(+), 5 deletions(-)
diff --git a/src/views/intelligentPatrol/statistics/unlawful/area/index.vue b/src/views/intelligentPatrol/statistics/unlawful/area/index.vue
index 9f27801..b6e87ec 100644
--- a/src/views/intelligentPatrol/statistics/unlawful/area/index.vue
+++ b/src/views/intelligentPatrol/statistics/unlawful/area/index.vue
@@ -140,7 +140,34 @@
methods: {
...mapActions(["searchByArea"]),
- 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) {},
// 璁剧疆琛ㄦ牸鏂戦┈绾�
diff --git a/src/views/intelligentPatrol/statistics/unlawful/point/index.vue b/src/views/intelligentPatrol/statistics/unlawful/point/index.vue
index 295365c..df5d6df 100644
--- a/src/views/intelligentPatrol/statistics/unlawful/point/index.vue
+++ b/src/views/intelligentPatrol/statistics/unlawful/point/index.vue
@@ -150,7 +150,34 @@
methods: {
...mapActions(["searchByPoint"]),
- 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) {},
// 璁剧疆琛ㄦ牸鏂戦┈绾�
diff --git a/src/views/intelligentPatrol/statistics/unlawful/shop/index.vue b/src/views/intelligentPatrol/statistics/unlawful/shop/index.vue
index fb85e1b..cab3f50 100644
--- a/src/views/intelligentPatrol/statistics/unlawful/shop/index.vue
+++ b/src/views/intelligentPatrol/statistics/unlawful/shop/index.vue
@@ -144,7 +144,34 @@
methods: {
...mapActions(["searchByShop"]),
- handleExport(e) {},
+ handleExport(e) {
+ this.$axios({
+ method: 'post',
+ url: `sccg/intelligentPatrol/statistics/export/shop`,
+ 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) {},
// 璁剧疆琛ㄦ牸鏂戦┈绾�
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) {},
// 璁剧疆琛ㄦ牸鏂戦┈绾�
diff --git a/src/views/intelligentPatrol/statistics/unlawful/type/index.vue b/src/views/intelligentPatrol/statistics/unlawful/type/index.vue
index 649cc16..26f8d51 100644
--- a/src/views/intelligentPatrol/statistics/unlawful/type/index.vue
+++ b/src/views/intelligentPatrol/statistics/unlawful/type/index.vue
@@ -148,7 +148,34 @@
methods: {
...mapActions(["searchByType"]),
- 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