From f33d207466507fac40674d3fc9c967535cb4c931 Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: 星期三, 27 四月 2022 17:25:56 +0800
Subject: [PATCH] app下载:v1

---
 src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue |    7 ++++---
 1 files changed, 4 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..083b51d 100644
--- a/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue
+++ b/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue
@@ -84,8 +84,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.riskMeasureDesc})
+                                this.$emit('giveToForm',this.inspectionPointData)
+                            }
                         }
                 }else{
                     this.controlActionForm.workId = JSON.stringify(this.inspectionTaskForm.workId)
@@ -109,7 +111,6 @@
             },
             deleteById(value){
                 if(this.title === '新建巡检计划设定'){
-                    debugger
                     this.inspectionPointData.splice(value,1)
                 }else{
                     this.$confirm('删除此条措施,是否继续','提示',{

--
Gitblit v1.9.2