From f96e393e62b4c7496f7ace44b6aa5abb69ae58df Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 11 九月 2023 21:54:55 +0800
Subject: [PATCH] bug修改

---
 src/views/intelligentPatrol/illegalSearch/index.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/views/intelligentPatrol/illegalSearch/index.vue b/src/views/intelligentPatrol/illegalSearch/index.vue
index 3b95990..39538a8 100644
--- a/src/views/intelligentPatrol/illegalSearch/index.vue
+++ b/src/views/intelligentPatrol/illegalSearch/index.vue
@@ -324,9 +324,14 @@
       this.getTableData({ startTime, streetId, communityId, endTime, ...params });
     },
     exportTableData() {
-      basecase.exportViolationData({ current: 1 })
+      const { alarmTime, organization } = this.form;
+      const [startTime, endTime] = alarmTime ?? [null, null];
+      const [communityId, streetId] = organization ?? [null, null];
+      const params = Object.assign({}, this.form);
+      delete params.alarmTime;
+      delete params.organization;     
+      basecase.exportViolationData( { current: 1, startTime, streetId, communityId, endTime, ...params })
           .then((res) => {
-            console.log(res)
             this.$message.success('鎿嶄綔鎴愬姛');
             // let res = basecase.exportUserOperationLogAjax({
             //   startLogTime: transDate(this.searchQuery.date[0], "YYYY-MM-DD"),

--
Gitblit v1.8.0