From 96a599f273b4d3377d71f7b1714a3d18d913aa1c Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Fri, 12 Mar 2021 14:27:08 +0800
Subject: [PATCH] 警情分发地图相关修改

---
 src/views/realTimePolice/real.vue                 |    2 
 src/views/policeTracking/policeTracking.vue       |  412 ++++++++++++++++++++++++++++++++++++++--------------------
 src/views/policeInformationDistribution/index.vue |    6 
 3 files changed, 276 insertions(+), 144 deletions(-)

diff --git a/src/views/policeInformationDistribution/index.vue b/src/views/policeInformationDistribution/index.vue
index 4949efc..98dd1f3 100644
--- a/src/views/policeInformationDistribution/index.vue
+++ b/src/views/policeInformationDistribution/index.vue
@@ -35,6 +35,7 @@
 
       <template slot-scope="{ type, size, row }" slot="menu">
         <el-button
+          v-if="row.type == 0"
           icon="el-icon-edit"
           :size="size"
           :type="type"
@@ -42,6 +43,7 @@
           >处置</el-button>
 
         <el-button
+          v-if="row.type == 1 || row.type == 2"
           icon="el-icon-s-order"
           :size="size"
           :type="type"
@@ -514,9 +516,9 @@
       this.showMap = true;
       this.$nextTick(() => {
         this.$refs.mapDiv.onload = () => {
-          window.frames[0].locationObj = {x: row.jd, y: row.wd};
+          window.frames[0].init("ClientManagement",{x: row.jd, y: row.wd});
         };
-      })
+      });
     },
     PoliceTracking(row){
       //警情追踪
diff --git a/src/views/policeTracking/policeTracking.vue b/src/views/policeTracking/policeTracking.vue
index 715d186..3f8edf4 100644
--- a/src/views/policeTracking/policeTracking.vue
+++ b/src/views/policeTracking/policeTracking.vue
@@ -2,152 +2,273 @@
   <el-row>
     <el-col :span="12">
       <el-card class="trackClass">
-        <span>警情信息</span>
+        <el-tabs type="border-card">
+          <el-tab-pane label="警情信息">
+            <el-form
+              :model="form"
+              label-position="right"
+              size="mini"
+              label-width="100px"
+              style="background: #fff; margin-top: 20px;margin-left: 10px; margin-right: 10px; height: calc(100% - 40px); width: calc(100% - 20px)"
+            >
+              <el-row>
+                <el-col span="12"
+                >
+                  <el-form-item label="报警人姓名">
+                    <el-input
+                      disabled="true"
+                      v-model="form.galarmPeople"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+                <el-col span="12"
+                >
+                  <el-form-item label="联系方式">
+                    <el-input
+                      disabled="true"
+                      v-model="form.phoneNumber"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+              </el-row>
+              <el-row>
+                <el-col span="12"
+                >
+                  <el-form-item label="事发地址">
+                    <el-input
+                      disabled="true"
+                      v-model="form.place"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+                <el-col span="12"
+                >
+                  <el-form-item label="行政区">
+                    <el-input
+                      disabled="true"
+                      v-model="form.addvnm"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+              </el-row>
+              <el-row>
+                <el-col span="12"
+                >
+                  <el-form-item label="报警时间">
+                    <el-input
+                      disabled="true"
+                      v-model="form.galarmTime"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+                <el-col span="12"
+                >
+                  <el-form-item label="报警内容">
+                    <el-input
+                      disabled="true"
+                      v-model="form.content"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+              </el-row>
+              <el-row>
+                <el-col span="12"
+                >
+                  <el-form-item label="警情级别">
+                    <el-input
+                      disabled="true"
+                      v-model="form.level"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+                <el-col span="12"
+                >
+                  <el-form-item label="警情类别">
+                    <el-input
+                      disabled="true"
+                      v-model="form.waringType"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+              </el-row>
+              <el-row>
+                <el-col span="12"
+                >
+                  <el-form-item label="是否上报110">
+                    <el-input
+                      disabled="true"
+                      v-model="form.alarmPeople"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+                <el-col span="12"
+                >
+                  <el-form-item label="设备编号">
+                    <el-input
+                      disabled="true"
+                      v-model="form.deviceNumber"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+              </el-row>
+            </el-form>
 
-        <el-form
-          :model="form"
-          label-position="right"
-          size="mini"
-          label-width="100px"
-          style="background: #fff; margin-top: 20px;margin-left: 10px; margin-right: 10px; height: calc(100% - 40px); width: calc(100% - 20px)"
-        >
-          <el-row>
-            <el-col span="12"
+          </el-tab-pane>
+
+          <el-tab-pane label="保安信息">
+            <el-form
+              :model="security"
+              label-position="right"
+              size="mini"
+              label-width="100px"
+              style="background: #fff; margin-top: 20px;margin-left: 10px; margin-right: 10px; height: calc(100% - 40px); width: calc(100% - 20px)"
             >
-              <el-form-item label="报警人姓名">
-                <el-input
-                  disabled="true"
-                  v-model="form.galarmPeople"
-                  autocomplete="off"
-                ></el-input>
-              </el-form-item
-              >
-            </el-col>
-            <el-col span="12"
-            >
-              <el-form-item label="联系方式">
-                <el-input
-                  disabled="true"
-                  v-model="form.phoneNumber"
-                  autocomplete="off"
-                ></el-input>
-              </el-form-item
-              >
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col span="12"
-            >
-              <el-form-item label="事发地址">
-                <el-input
-                  disabled="true"
-                  v-model="form.place"
-                  autocomplete="off"
-                ></el-input>
-              </el-form-item
-              >
-            </el-col>
-            <el-col span="12"
-            >
-              <el-form-item label="行政区">
-                <el-input
-                  disabled="true"
-                  v-model="form.addvnm"
-                  autocomplete="off"
-                ></el-input>
-              </el-form-item
-              >
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col span="12"
-            >
-              <el-form-item label="报警时间">
-                <el-input
-                  disabled="true"
-                  v-model="form.galarmTime"
-                  autocomplete="off"
-                ></el-input>
-              </el-form-item
-              >
-            </el-col>
-            <el-col span="12"
-            >
-              <el-form-item label="报警内容">
-                <el-input
-                  disabled="true"
-                  v-model="form.content"
-                  autocomplete="off"
-                ></el-input>
-              </el-form-item
-              >
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col span="12"
-            >
-              <el-form-item label="警情级别">
-                <el-input
-                  disabled="true"
-                  v-model="form.level"
-                  autocomplete="off"
-                ></el-input>
-              </el-form-item
-              >
-            </el-col>
-            <el-col span="12"
-            >
-              <el-form-item label="警情类别">
-                <el-input
-                  disabled="true"
-                  v-model="form.waringType"
-                  autocomplete="off"
-                ></el-input>
-              </el-form-item
-              >
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col span="12"
-            >
-              <el-form-item label="是否上报110">
-                <el-input
-                  disabled="true"
-                  v-model="form.alarmPeople"
-                  autocomplete="off"
-                ></el-input>
-              </el-form-item
-              >
-            </el-col>
-            <el-col span="12"
-            >
-              <el-form-item label="设备编号">
-                <el-input
-                  disabled="true"
-                  v-model="form.deviceNumber"
-                  autocomplete="off"
-                ></el-input>
-              </el-form-item
-              >
-            </el-col>
-          </el-row>
+              <el-row>
+                <el-col span="12"
+                >
+                  <el-form-item label="人员编号">
+                    <el-input
+                      disabled="true"
+                      v-model="security.snumber"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+                <el-col span="12"
+                >
+                  <el-form-item label="人员名称">
+                    <el-input
+                      disabled="true"
+                      v-model="security.sname"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+              </el-row>
+              <el-row>
+                <el-col span="12"
+                >
+                  <el-form-item label="性别">
+                    <el-input
+                      disabled="true"
+                      v-model="security.sex"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+                <el-col span="12"
+                >
+                  <el-form-item label="年龄">
+                    <el-input
+                      disabled="true"
+                      v-model="security.age"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+              </el-row>
+              <el-row>
+                <el-col span="12"
+                >
+                  <el-form-item label="联系电话">
+                    <el-input
+                      disabled="true"
+                      v-model="security.phone"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+                <el-col span="12"
+                >
+                  <el-form-item label="家庭住址">
+                    <el-input
+                      disabled="true"
+                      v-model="security.address"
+                      autocomplete="off"
+                    ></el-input>
+                  </el-form-item
+                  >
+                </el-col>
+              </el-row>
+            </el-form>
+          </el-tab-pane>
+          <el-tab-pane label="警情反馈">
+            <el-row :gutter="20">
+              <el-col :span="16">
+                <div class="grid-content bg-purple">
+
+                </div>
+              </el-col>
+              <el-col :span="8">
+                <div class="grid-content bg-purple">
+
+                </div>
+              </el-col>
+            </el-row>
+
+            <div class="demo-image__placeholder">
+
+              <span class="demonstration">警情反馈</span>
+              <el-input
+                disabled="true"
+                type="textarea"
+                v-model="security.snumber"
+                autocomplete="off"
+              ></el-input>
+
+              <div class="block">
+                <span class="demonstration">现场拍照</span>
+                <div>
+                  <el-image :src="src" style="width: 200px;margin-left: 5px"></el-image>
+                  <el-image :src="src" style="width: 200px;margin-left: 5px"></el-image>
+                  <el-image :src="src" style="width: 200px;margin-left: 5px"></el-image>
+                </div>
+              </div>
+              <div class="block">
+                <span class="demonstration">现场视频</span>
+                <div>
+                  <el-image :src="src" style="width: 200px;margin-left: 5px">
+                    <div slot="placeholder" class="image-slot">
+                      加载中<span class="dot">...</span>
+                    </div>
+                  </el-image>
+                </div>
+              </div>
+            </div>
+          </el-tab-pane>
+
           <el-row :align="center">
-            <el-col :offset="2">
-              <el-form-item>
-                <el-button type="success">保安位置</el-button>
-                <el-button type="success">路径规划</el-button>
-                <el-button type="warning">呼叫保安</el-button>
-                <el-button type="danger">处理完成</el-button>
-              </el-form-item>
+            <el-col :offset="10">
+              <el-button type="danger">处理完成</el-button>
             </el-col>
           </el-row>
-        </el-form>
+        </el-tabs>
 
-
-        <el-row>
-          <span>拍照取证</span>
-
-        </el-row>
 
       </el-card>
 
@@ -173,9 +294,18 @@
     data() {
       return {
         selectOptions: [],
+        security: {
+          snumber: 20018,
+          sname: "金同涛",
+          sex: "男",
+          age: 23,
+          phone: 1387975426,
+          address: "江西省南昌市西湖区",
+        },
+        src: 'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg',
         form: {},
       };
-    },created() {
+    }, created() {
       this.form = this.$route.query;
     },
   }
diff --git a/src/views/realTimePolice/real.vue b/src/views/realTimePolice/real.vue
index db7aac6..766506e 100644
--- a/src/views/realTimePolice/real.vue
+++ b/src/views/realTimePolice/real.vue
@@ -840,7 +840,7 @@
           this.$refs.mapDiv.onload = () => {
             window.frames[0].init("ClientManagement",{x: row.jd, y: row.wd});
           };
-        })
+        });
       },
       handleManage(row) {
         this.form = row;

--
Gitblit v1.9.3