From 99b614dcaa78b90fe8a680b0606d307a387b321e Mon Sep 17 00:00:00 2001 From: luobisheng <727299681@qq.com> Date: 星期二, 06 十二月 2022 17:59:49 +0800 Subject: [PATCH] 预警研判大类丶小类修改,案件编号内容 --- 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