diff --git a/project/qujing/app/AppReportAiWill/components/Detail.vue b/project/qujing/app/AppReportAiWill/components/Detail.vue index 76ca3d16..268599fa 100644 --- a/project/qujing/app/AppReportAiWill/components/Detail.vue +++ b/project/qujing/app/AppReportAiWill/components/Detail.vue @@ -157,8 +157,9 @@ - - 经入户走访排查,不存在相关风险指标的,或经走访排查已现场化解纠纷的家庭户 + + + + + + + + +
+
+ +
+

{{item.dictName}}

+
@@ -325,7 +336,8 @@ export default { mediateMember: '', mediateInfo: '' }, - result: {} + result: {}, + riskList: [] } }, @@ -341,6 +353,10 @@ export default { created() { this.getDict() this.dict.load('qujingEventStatus', 'sex', 'qujingRisk', 'qujingEventType').then(() => { + this.riskList = this.$dict.getDict('qujingRisk') + this.riskList.map((item) => { + item.isCheck = false + }) this.getDetail() }) }, @@ -384,6 +400,9 @@ export default { } if(this.detail.rightType == 1) { this.isShowTalk = true + this.riskList.map((item) => { + item.isCheck = false + }) } if(this.detail.rightType == 2) { this.mediateForm.mediateAreaId = this.user.areaId @@ -429,7 +448,6 @@ export default { }, formatList(list) { - console.log(list) for (let item of list) { item.children = [item.girdList? item.girdList: [], item.girdMemberList?.map(e => ({ ...e, isUser: true, girdName: item.girdName, @@ -439,7 +457,6 @@ export default { this.formatList(item.girdList) } } - console.log(list) return list }, @@ -574,6 +591,16 @@ export default { }) } }) + }, + + riskChange(index) { + this.riskList[index].isCheck = !this.riskList[index].isCheck + this.talkForm.judgeRiskList = [] + this.riskList.map((item, index) => { + if(item.isCheck) { + this.talkForm.judgeRiskList.push(this.riskList[index].dictValue) + } + }) } } } @@ -768,5 +795,20 @@ export default { } } } + .check-flex { + display: flex; + margin-bottom: 8px; + div { + width: 30px; + margin-top: -4px; + } + p { + width: 550px; + word-break: break-all; + font-size: 14px; + color: #666; + line-height: 30px; + } + } }