From e395d30028b91d30ab71f010ece4e778ba8a62d4 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 04 Feb 2021 13:49:01 +0800
Subject: [PATCH] 警情调度中警情分发-保存相关操作

---
 src/views/policeInformationDistribution/index.vue |   84 +++++++++++++++++++++++++++--------------
 1 files changed, 55 insertions(+), 29 deletions(-)

diff --git a/src/views/policeInformationDistribution/index.vue b/src/views/policeInformationDistribution/index.vue
index 6ef9224..3de7149 100644
--- a/src/views/policeInformationDistribution/index.vue
+++ b/src/views/policeInformationDistribution/index.vue
@@ -21,11 +21,35 @@
       @refresh-change="refreshChange"
       @on-load="onLoad"
     >
-
-    <template slot-scope="{row}" slot="type">
-        <el-tag>{{row.type=='0'?'待处理':row.type=='1'?'处理中':row.type=='2'?'已处理':''}}</el-tag>
+      <template slot-scope="{ row }" slot="type">
+        <el-tag>{{
+          row.type == "0"
+            ? "待处理"
+            : row.type == "1"
+            ? "处理中"
+            : row.type == "2"
+            ? "已处理"
+            : ""
+        }}</el-tag>
       </template>
 
+      <template slot-scope="{ type, size, row }" slot="menu">
+        <el-button
+          icon="el-icon-edit"
+          :size="size"
+          :type="type"
+          @click.stop="disposition(row)"
+          >处置</el-button
+        >
+        
+        <el-button
+          icon="el-icon-location-outline"
+          :size="size"
+          :type="type"
+          @click.stop="handleMap()"
+          >定位</el-button
+        >
+      </template>
     </avue-crud>
     <el-drawer
       title="我是标题"
@@ -203,29 +227,29 @@
             className: "cityClass3"
           },
           {
-              label: "处理状态",
-              search: true,
-              searchSpan: 3,
-              slot: true,
-              searchLabelWidth: 80,
-              searchPlaceholder: "请选择",
-              prop: "type",
-              type: "select",
-              dicData: [
-                {
-                  label: "待处理",
-                  value: '0'
-                },
-                {
-                  label: "处理中",
-                  value: '1'
-                },
-                {
-                  label: "已处理",
-                  value: '2'
-                }
-              ],
-            },
+            label: "处理状态",
+            search: true,
+            searchSpan: 3,
+            slot: true,
+            searchLabelWidth: 80,
+            searchPlaceholder: "请选择",
+            prop: "type",
+            type: "select",
+            dicData: [
+              {
+                label: "待处理",
+                value: "0"
+              },
+              {
+                label: "处理中",
+                value: "1"
+              },
+              {
+                label: "已处理",
+                value: "2"
+              }
+            ]
+          }
         ]
       },
       data: []
@@ -264,7 +288,6 @@
           done();
         },
         error => {
-          window.console.log(error);
           loading();
         }
       );
@@ -281,7 +304,6 @@
           done();
         },
         error => {
-          window.console.log(error);
           loading();
         }
       );
@@ -353,7 +375,6 @@
       }
       this.loading = true;
       getList(page.currentPage, page.pageSize, values).then(res => {
-        console.log(res, 11111111111111111);
 
         const data = res.data.data;
         this.page.total = data.total;
@@ -453,6 +474,11 @@
           color: "#000"
         };
       }
+    },
+    disposition(data) {
+      this.$router.push(
+      {path: '/distribution/index',query: data}
+      );
     }
   }
 };

--
Gitblit v1.9.3