From 404af06b4d2e3f7859f8d13439ee431af0fa243a Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 27 Apr 2021 11:52:01 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/jfpt-Vue

---
 src/views/policeTracking/policeTracking.vue |   35 +++++++++++++++++++++++++----------
 1 files changed, 25 insertions(+), 10 deletions(-)

diff --git a/src/views/policeTracking/policeTracking.vue b/src/views/policeTracking/policeTracking.vue
index ad909a7..64f8200 100644
--- a/src/views/policeTracking/policeTracking.vue
+++ b/src/views/policeTracking/policeTracking.vue
@@ -156,7 +156,7 @@
                 <el-col span="12">
                   <el-form-item label="备注">
                     <el-input
-                      disabled="form.securityArr.length > 0"
+                      :disabled="form.securityArr.length > 0"
                       v-model="form.bz"
                       autocomplete="off"
                     ></el-input>
@@ -334,7 +334,7 @@
 
           <el-card>
             <el-form
-              :model="security"
+              :model="form"
               label-position="right"
               size="mini"
               label-width="100px"
@@ -352,7 +352,7 @@
                   <el-form-item label="人员编号">
                     <el-input
                       disabled="true"
-                      v-model="security.snumber"
+                      v-model="form.baname"
                       autocomplete="off"
                     ></el-input>
                   </el-form-item>
@@ -361,7 +361,7 @@
                   <el-form-item label="人员名称">
                     <el-input
                       disabled="true"
-                      v-model="security.sname"
+                      v-model="form.baid"
                       autocomplete="off"
                     ></el-input>
                   </el-form-item>
@@ -372,7 +372,7 @@
                   <el-form-item label="联系电话">
                     <el-input
                       disabled="true"
-                      v-model="security.phone"
+                      v-model="form.baphone"
                       autocomplete="off"
                     ></el-input>
                   </el-form-item>
@@ -786,6 +786,7 @@
 
             res.data.data.records.forEach((item) => {
               if (
+                item.roleName == "处警员" &&
                 that.form.securityArr.indexOf(item.id) != -1 &&
                 item.id != that.form.securityId
               ) {
@@ -798,14 +799,28 @@
                   status: "已通知",
                   tenantName: item.tenantName,
                 });
+              } else if (
+                item.roleName == "处警员" &&
+                that.form.securityArr.indexOf(item.id) == -1 &&
+                item.id != that.form.securityId
+              ) {
+                that.tableData.push({
+                  id: item.id,
+                  ind: (i += 1),
+                  name: item.name,
+                  phone: item.phone,
+                  online_status: item.online_status == 1 ? "在线" : "掉线",
+                  status: "未通知",
+                  tenantName: item.tenantName,
+                });
               }
             });
 
-             that.tableData.forEach(item => {
-               if (item.id == that.form.oneId) {
-                 item.status+='(负责人)'
-               }
-             })
+            that.tableData.forEach((item) => {
+              if (item.id == that.form.oneId) {
+                item.status += "(负责人)";
+              }
+            });
           } else {
             res.data.data.records.forEach((item) => {
               if (item.id == that.form.oneId) {

--
Gitblit v1.9.3