From 63ad2c3598400370dd7da5534659fd7e768a0a4a Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Mon, 16 May 2022 17:29:46 +0800
Subject: [PATCH] 地址替换

---
 src/views/activitys/policeTracking.vue |  108 +++++++++++++++++++++++++++--------------------------
 1 files changed, 55 insertions(+), 53 deletions(-)

diff --git a/src/views/activitys/policeTracking.vue b/src/views/activitys/policeTracking.vue
index 46246ee..2d9cfb8 100644
--- a/src/views/activitys/policeTracking.vue
+++ b/src/views/activitys/policeTracking.vue
@@ -48,7 +48,7 @@
                   </el-form-item>
                 </el-col>
                 <el-col span="12">
-                  <el-form-item label="下发时间">
+                  <el-form-item label="开始时间">
                     <el-input
                       disabled="true"
                       v-model="form.time"
@@ -66,8 +66,8 @@
               </el-row>
               <el-row>
                 <el-col span="12">
-                  <el-form-item label="省份" class="cityClassParams">
-                    <avue-form :option="itemOption" v-model="form"></avue-form>
+                  <el-form-item label="集合位置">
+                    <el-input disabled="true" v-model="form.gathername" autocomplete="off"></el-input>
                   </el-form-item>
                 </el-col>
                 <el-col span="12">
@@ -160,23 +160,8 @@
               >
               </el-table-column>
               <el-table-column
-                prop="online_status"
-                label="在线状态"
-                width="80"
-                align="center"
-              >
-              </el-table-column>
-              <el-table-column
                 prop="tenantName"
-                label="所属部门"
-                align="center"
-              >
-              </el-table-column>
-
-              <el-table-column
-                prop="status"
-                label="人员状态"
-                width="120"
+                label="所属队伍"
                 align="center"
               >
               </el-table-column>
@@ -197,7 +182,7 @@
             >
               <div class="avue-group__header avue-group">
                 <i class="el-icon-s-order avue-group__icon"></i>
-                <h1 class="avue-group__title">任务反馈</h1>
+                <h1 class="avue-group__title">任务心得</h1>
               </div>
             </div>
           </div>
@@ -206,7 +191,35 @@
             <el-input
               disabled="true"
               type="textarea"
-              v-model="security.result"
+              v-model="security.content"
+              autocomplete="off"
+            ></el-input>
+          </el-card>
+
+          <div
+            style="margin-top: 20px"
+            role="tab"
+            aria-expanded="true"
+            aria-controls="el-collapse-content-823"
+            aria-describedby="el-collapse-content-823"
+          >
+            <div
+              role="button"
+              tabindex="0"
+              class="el-collapse-item__header focusing is-active"
+            >
+              <div class="avue-group__header avue-group">
+                <i class="el-icon-s-order avue-group__icon"></i>
+                <h1 class="avue-group__title">任务意见</h1>
+              </div>
+            </div>
+          </div>
+
+          <el-card>
+            <el-input
+              disabled="true"
+              type="textarea"
+              v-model="security.yj"
               autocomplete="off"
             ></el-input>
           </el-card>
@@ -371,7 +384,7 @@
 
     },
     mounted() {
-      this.getAudios();
+      // this.getAudios();
       this.getImgAndVideo();
       this.getList();
       // this.$refs.mapDiv.onload = () => {
@@ -394,16 +407,16 @@
       // }
     },
     methods: {
-      rowclick(row, column, event){
+      rowclick(row, column, event) {
         var iframe = window.document.getElementById("mapDiv");
-        // console.log(row);
-        iframe.contentWindow.locations(row.id);
+        row.rwid = this.form.id;
+        iframe.contentWindow.locations(row);
       },
       onSubmit() {
         var that = this;
 
         var userId = JSON.parse(
-          window.localStorage.getItem("群防群控后台管理系统-userInfo")
+          window.localStorage.getItem("洪城义警后台管理系统-userInfo")
         ).content.nick_name;
 
         if (that.form.securityArr != null && that.form.securityArr != "") {
@@ -445,7 +458,9 @@
 
       getList() {
         var that = this;
-        this.form
+        if (this.form.serid == "" || this.form.serid == null){
+          return;
+        }
         axios({
           method: "get",
           url: "/api/taskqd/queryReceiver",
@@ -460,9 +475,9 @@
               ind: (i += 1),
               name: item.real_name,
               phone: item.phone,
-              online_status: item.online_status == 1 ? "在线" : "掉线",
+              online_status: item.online_status == 1 ? "在线" : "在线",
               status: "已抵达",
-              tenantName: item.tenantName,
+              tenantName: item.role_name,
             });
           });
         });
@@ -476,36 +491,23 @@
           this.$refs.multipleTable.clearSelection();
         }
       },
-
-      getAudios() {
-        axios({
-          method: "get",
-          url: "/api/avideo/list",
-          params: {
-            jid: this.form.id,
-          },
-        }).then((resdata) => {
-          if (resdata.data.data.records.length > 0)
-            this.audios = resdata.data.data.records;
-        });
-      },
       getImgAndVideo() {
         axios({
-          method: "post",
-          url: "/api/feedback/feedback/selectFeedEdit",
+          method: "get",
+          url: "/api/taskfk/list",
           params: {
-            jid: this.form.id,
+            hdid: this.form.id,
           },
         }).then((resdata) => {
-          if (resdata.data.data.length > 0) {
-            if (resdata.data.data[0].List.length > 0)
-              this.security = resdata.data.data[0].List[0];
-            if (resdata.data.data[0].tp.length > 0) {
-              this.imgSrc = resdata.data.data[0].tp;
-              this.srcList = resdata.data.data[0].tp;
+          var res = resdata.data.data.records
+          if (res.length > 0) {
+            this.security = res[0];
+            if (res[0].tpurl != "" && res[0].tpurl!=null){
+              this.imgSrc = res[0].tpurl.split(",");
+              this.srcList = res[0].tpurl.split(",");
             }
-            if (resdata.data.data[0].sp.length > 0) {
-              this.feedbackVideo = resdata.data.data[0].sp[0];
+            if (res[0].spurl!= "" && res[0].spurl!=null){
+              this.feedbackVideo = res[0].spurl;
             }
           }
         });

--
Gitblit v1.9.3