From 990cbdbe0fd628361bfdf4f9a2bb64db5d8b6fe5 Mon Sep 17 00:00:00 2001
From: Oliver <1070107765@qq.com>
Date: 星期二, 13 十二月 2022 11:29:04 +0800
Subject: [PATCH] 预警研判添加定时器刷新数据
---
src/components/detail/index.vue | 49 +++++++++++++++++++------------------------------
1 files changed, 19 insertions(+), 30 deletions(-)
diff --git a/src/components/detail/index.vue b/src/components/detail/index.vue
index 46df99b..14aeb40 100644
--- a/src/components/detail/index.vue
+++ b/src/components/detail/index.vue
@@ -6,13 +6,13 @@
<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">
澶х被鍚嶇О:
</label>
- <span class="data-detail">{{baseCase.violations.categoryText}}</span>
+ <span class="data-detail">{{baseCase.violationsVO.categoryText}}</span>
</div>
</div>
<div class="data-item">
@@ -20,13 +20,13 @@
<label class="data-title">
灏忕被鍚嶇О:
</label>
- <span class="data-detail">{{baseCase.violations.typeText}}</span>
+ <span class="data-detail">{{baseCase.violationsVO.typeText}}</span>
</div>
<div class="data-item__right">
<label class="data-title">
浜嬩欢绛夌骇:
</label>
- <span class="data-detail">{{baseCase.violations.gradeText}}</span>
+ <span class="data-detail">{{baseCase.violationsVO.gradeText}}</span>
</div>
</div>
<div class="data-item">
@@ -34,16 +34,10 @@
<label class="data-title">
妗堢敱:
</label>
- <span class="data-detail">{{baseCase.violations.actionCause}}</span>
+ <span class="data-detail">{{baseCase.violationsVO.actionCause}}</span>
</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">
@@ -78,7 +64,7 @@
<label class="data-title">
鍏宠仈鍟嗛摵鍚嶇О:
</label>
- <span class="data-detail">{{baseCase.violations.shopName}}</span>
+ <span class="data-detail">{{baseCase.violationsVO.shopName}}</span>
</div>
</div>
<div class="data-item">
@@ -86,7 +72,7 @@
<label class="data-title">
闂鎻忚堪:
</label>
- <span class="data-detail">{{baseCase.violations.description}}</span>
+ <span class="data-detail">{{baseCase.violationsVO.description}}</span>
</div>
</div>
<div class="data-user">
@@ -95,13 +81,13 @@
<label class="data-title">
鍙嶆槧浜�:
</label>
- <span class="data-detail">{{baseCase.violations.informant}}</span>
+ <span class="data-detail">{{baseCase.violationsVO.informant}}</span>
</div>
<div class="data-item__right">
<label class="data-title">
鑱旂郴鏂瑰紡:
</label>
- <span class="data-detail">{{baseCase.violations.informantPhoneCode}}</span>
+ <span class="data-detail">{{baseCase.violationsVO.informantPhoneCode}}</span>
</div>
</div>
<div class="data-item">
@@ -109,7 +95,7 @@
<label class="data-title">
韬唤璇佸彿:
</label>
- <span class="data-detail">{{baseCase.violations.informantIdCard}}</span>
+ <span class="data-detail">{{baseCase.violationsVO.informantIdCard}}</span>
</div>
</div>
</div>
@@ -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