From 223750e3a57f895e07c9c311947456664ced50c3 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Fri, 23 Sep 2022 11:01:03 +0800
Subject: [PATCH] 跳页面形式改为当前页面打开,巡检计划双击查看详情

---
 src/views/taskinfo/taskinfoDetail.vue |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/views/taskinfo/taskinfoDetail.vue b/src/views/taskinfo/taskinfoDetail.vue
index 3a520a5..b6bf0a0 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,7 +143,7 @@
     }
   },
   created() {
-    this.form = this.$route.query;
+    this.form = this.detailInfo;
     this.getUser()
   },
   methods:{
@@ -152,6 +155,9 @@
         }
       })
     },
+    handleBack(){
+      this.$emit('isDetail');
+    }
   },
 }
 </script>
@@ -185,4 +191,11 @@
 #old_video::-webkit-media-controls-timeline {
   display: block;
 }
+
+.backBtn{
+  position: fixed;
+  top: 20%;
+  right: 3%;
+  z-index: 99999;
+}
 </style>

--
Gitblit v1.9.3