From 3d23cc006e5cc905c29441d970eb6bd4ab5af880 Mon Sep 17 00:00:00 2001
From: luobisheng <727299681@qq.com>
Date: 星期四, 08 十二月 2022 11:33:04 +0800
Subject: [PATCH] 更新报警持续时间
---
src/components/detail/index.vue | 42 +++++++++++++++++-------------------------
1 files changed, 17 insertions(+), 25 deletions(-)
diff --git a/src/components/detail/index.vue b/src/components/detail/index.vue
index 7a4ecc6..6922398 100644
--- a/src/components/detail/index.vue
+++ b/src/components/detail/index.vue
@@ -5,8 +5,8 @@
<div class="data-item__left">
<label class="data-title">
闂绫诲瀷:
- </label>
- <span class="data-detail">杩濊</span>
+ </label>
+ <span class="data-detail">{{ getCategoryLabel(baseCase.category) }}</span>
</div>
<div class="data-item__right">
<label class="data-title">
@@ -40,23 +40,15 @@
<div class="data-item">
<div class="data-item__left">
<label class="data-title">
- 鎵�灞炲尯鍘�:
+ 鎵�灞炶閬�:
</label>
- <span class="data-detail">xxx</span>
+ <span class="data-detail">{{baseCase.streetText}}</span>
</div>
<div class="data-item__right">
<label class="data-title">
鎵�灞炵ぞ鍖�:
</label>
<span class="data-detail">{{baseCase.communityText}}</span>
- </div>
- </div>
- <div class="data-item">
- <div class="data-item__left">
- <label class="data-title">
- 鎵�灞炶閬�:
- </label>
- <span class="data-detail">{{baseCase.streetText}}</span>
</div>
</div>
<div class="data-item">
@@ -119,9 +111,9 @@
<div class="show-item">
<div class="show-wrap">
<MyProcess v-if="activeIndex === 1" :handlePassVo="handlePassVo" :baseCase="baseCase"></MyProcess>
- <MyFilePicture v-else-if="activeIndex === 2" :filesPictureVo="filesPictureVo" ></MyFilePicture>
- <MySovleProblem v-else-if="activeIndex === 3" :problemProVo="problemProVo"></MySovleProblem>
- <MyScene v-else :currentSitVo="currentSitVo"></MyScene>
+ <MyFilePicture v-else-if="activeIndex === 2" :filesPictureVo="filesPictureVo" :mycode='mycode'></MyFilePicture>
+ <MySovleProblem v-else-if="activeIndex === 3" :baseCase="baseCase" :handlePassVo="handlePassVo"></MySovleProblem>
+ <MyScene v-else :currentSitVo="currentSitVo" :baseCase="baseCase"></MyScene>
</div>
</div>
</div>
@@ -132,6 +124,8 @@
import MyFilePicture from '@/components/filePictrue'
import MySovleProblem from '@/components/solveProblem'
import MyScene from '@/components/scene'
+import { CATEGOTY } from "@/utils/helper";
+
export default {
components: {
MyProcess, MyFilePicture, MySovleProblem, MyScene
@@ -163,27 +157,25 @@
baseCase:{},
handlePassVo:{},
currentSitVo:{},
- problemProVo:{},
filesPictureVo:{}
}
},
created() {
- console.log('created');
- const {info} = this;
- this.baseCase = info.baseCase;
- this.handlePassVo = info.handlePassVo;
- this.currentSitVo = info.currentSitVo;
- this.problemProVo = info.problemProVo;
- this.filesPictureVo = info.filesPictureVo;
- console.log(info);
+ this.baseCase = this.info.baseCase;
+ this.handlePassVo = this.info.handlePassVo;
+ this.currentSitVo = this.info.currentSitVo;
+ this.filesPictureVo = this.info.filesPictureVo;
},
methods: {
changeComponent(index) {
this.activeIndex = index;
},
+ getCategoryLabel(category) {
+ return CATEGOTY.find(item => item.value === category).label;
+ }
},
- props: ['info']
+ props: ['info','mycode']
}
</script>
<style lang="scss" scoped>
--
Gitblit v1.8.0