From 2b6f255b97dba15d22b86319e2f38f6efac417cc Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 13 十一月 2023 23:23:27 +0800
Subject: [PATCH] 一点一档

---
 src/views/intelligentPatrol/illegalSearch/index.vue |   35 ++++++++++++++++++++++-------------
 1 files changed, 22 insertions(+), 13 deletions(-)

diff --git a/src/views/intelligentPatrol/illegalSearch/index.vue b/src/views/intelligentPatrol/illegalSearch/index.vue
index b65e900..39538a8 100644
--- a/src/views/intelligentPatrol/illegalSearch/index.vue
+++ b/src/views/intelligentPatrol/illegalSearch/index.vue
@@ -33,8 +33,11 @@
           </div>
         </div>
         <!-- 鏁版嵁灞曠ず -->
-        <el-table ref="multipleTable"
-          :header-cell-style="{ 'font-weight': '650', 'line-height': '45px' }"
+        <el-table
+            border
+            stripe
+            ref="multipleTable"
+          :header-cell-style="{  'background':'#F5F5F5','font-weight': '650', 'line-height': '45px' }"
           :data="tableData" style="width: 100%" :row-class-name="tableRowClassName">
           <el-table-column type="selection" min-width="5">
           </el-table-column>
@@ -133,10 +136,10 @@
 
     baseInfo.getCategoryList().then((result)=>{
         this.headerList[2].options = result;
-    })  
+    })
     getTypeList("1","02").then((result)=>{
         this.headerList[8].options = result;
-    })  
+    })
   },
 
   data() {
@@ -197,6 +200,7 @@
           value: '',
           placeholder: '璇疯緭鍏ュ鏍哥姸鎬�',
           type: 'select',
+          prop: 'state',
           options: [{ id: 7, name: '鏈鏍�' }, { id: 8, name: '宸茬粡瀹℃牳' }, { id: 9, name: '缁撴' }]
         },
         {
@@ -320,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"),
@@ -359,14 +368,14 @@
 <style lang="scss" scoped>
 .illegal-search {
   text-align: left;
-  margin: 10px 20px;
+  padding: 10px 20px;
   color: #4b9bb7;
-
+  border: 1px solid #ccc;
   header {
     background-color: white;
 
     .headerContent {
-      padding: 20px 40px;
+      //padding: 20px 40px;
       display: flex;
       justify-content: space-between;
       align-items: center;
@@ -404,7 +413,7 @@
 
       .el-button {
         background-color: #2f91ec;
-        border: 1px solid #17324c;
+        //border: 1px solid #17324c;
         color: #ffffff;
       }
     }
@@ -417,10 +426,10 @@
       display: flex;
       justify-content: space-between;
       align-items: center;
-      padding: 0 20px;
+      //padding: 0 20px;
 
       .funs-sp {
-        border: 1px solid #17324c;
+        border: 1px solid #DCDFE6;
       }
 
       .funs {
@@ -448,4 +457,4 @@
     }
   }
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.8.0