From e5b8dfe32fce0089561de920a9ad1e65e44ebfe2 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 26 Sep 2022 14:47:47 +0800
Subject: [PATCH] 视频上传回显

---
 src/views/taskinfo/taskinfoDetail.vue |   27 +++++++++++++++++++++------
 1 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/src/views/taskinfo/taskinfoDetail.vue b/src/views/taskinfo/taskinfoDetail.vue
index 3a520a5..61120b1 100644
--- a/src/views/taskinfo/taskinfoDetail.vue
+++ b/src/views/taskinfo/taskinfoDetail.vue
@@ -1,5 +1,7 @@
 <template>
   <div>
+    <el-button class="backBtn" size="small" type="success" icon="el-icon-back" plain @click="handleBack">返 回
+    </el-button>
     <el-row>
      <el-col :span="12">
       <div>
@@ -132,6 +134,7 @@
 export default {
   name: "taskinfoDetail",
   components: {OpenLayersMap},
+  props:["detailInfo"],
   data(){
     return{
       taskinfo:{},
@@ -140,18 +143,23 @@
     }
   },
   created() {
-    this.form = this.$route.query;
+    this.form = this.detailInfo;
     this.getUser()
   },
   methods:{
     //获取巡检人员信息
     getUser(){
-      getUser(this.form.toUserId).then(res=>{
-        if (res.data.code == 200){
-          this.accepterInfo.push(res.data.data)
-        }
-      })
+      if (this.form.toUserId != -1) {
+        getUser(this.form.toUserId).then(res => {
+          if (res.data.code == 200) {
+            this.accepterInfo.push(res.data.data)
+          }
+        })
+      }
     },
+    handleBack(){
+      this.$emit('isDetail');
+    }
   },
 }
 </script>
@@ -185,4 +193,11 @@
 #old_video::-webkit-media-controls-timeline {
   display: block;
 }
+
+.backBtn{
+  position: fixed;
+  top: 20%;
+  right: 3%;
+  z-index: 99999;
+}
 </style>

--
Gitblit v1.9.3