From c761748876b5239a084e16b22f8d616897714175 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 07 十二月 2022 17:10:18 +0800
Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_ui
---
src/components/detail/index.vue | 31 ++++++++++---------------------
1 files changed, 10 insertions(+), 21 deletions(-)
diff --git a/src/components/detail/index.vue b/src/components/detail/index.vue
index 46df99b..6922398 100644
--- a/src/components/detail/index.vue
+++ b/src/components/detail/index.vue
@@ -6,7 +6,7 @@
<label class="data-title">
闂绫诲瀷:
</label>
- <span class="data-detail">杩濊</span>
+ <span class="data-detail">{{ getCategoryLabel(baseCase.category) }}</span>
</div>
<div class="data-item__right">
<label class="data-title">
@@ -38,12 +38,6 @@
</div>
</div>
<div class="data-item">
- <!-- <div class="data-item__left">
- <label class="data-title">
- 鎵�灞炲尯鍘�:
- </label>
- <span class="data-detail">xxx</span>
- </div> -->
<div class="data-item__left">
<label class="data-title">
鎵�灞炶閬�:
@@ -57,14 +51,6 @@
<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">
<div class="data-item__left">
<label class="data-title">
@@ -138,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
@@ -174,17 +162,18 @@
}
},
created() {
- const {info} = this;
- this.baseCase = info.baseCase;
- this.handlePassVo = info.handlePassVo;
- this.currentSitVo = info.currentSitVo;
- 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','mycode']
}
--
Gitblit v1.8.0