From a3ee87d62ccecc2e1e0b4f2f0cb8875a5efa88c8 Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: Fri, 13 May 2022 14:51:20 +0800
Subject: [PATCH] 用户相关部门
---
src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue b/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue
index 5846821..4b84299 100644
--- a/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue
+++ b/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue
@@ -75,6 +75,7 @@
this.controlActionVisible = false
},
async receiveRiskControlId(value) {
+ debugger
this.controlActionVisible = false
if(this.title === '新建巡检计划设定'){
if(value){
@@ -84,8 +85,10 @@
// content:item.riskMeasureDesc
// }
// })))
- this.inspectionPointData.push({id:value.id,content:value.riskMeasureDesc})
- this.$emit('giveToForm',this.inspectionPointData)
+ if(this.inspectionPointData.findIndex(item => item.id === value.id) === -1) {
+ this.inspectionPointData.push({id:value.id,content:value.troubleshootContent})
+ this.$emit('giveToForm',this.inspectionPointData)
+ }
}
}else{
this.controlActionForm.workId = JSON.stringify(this.inspectionTaskForm.workId)
@@ -109,7 +112,6 @@
},
deleteById(value){
if(this.title === '新建巡检计划设定'){
- debugger
this.inspectionPointData.splice(value,1)
}else{
this.$confirm('删除此条措施,是否继续','提示',{
--
Gitblit v1.9.2