From fe2617a36f52c16f83e7d3cb19d911bb91a3b79f Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: 星期一, 13 六月 2022 09:00:28 +0800
Subject: [PATCH] 删除固定菜单

---
 src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue b/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue
index 270453c..2ac04f1 100644
--- a/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue
+++ b/src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue
@@ -20,7 +20,7 @@
                    <el-table-column label="操作" align="center" width="280" class-name="small-padding fixed-width">
                     <template slot-scope="scope">
                         <el-button type="text" @click="showMeasureDetail(scope.row)" v-show="ifEdit">详情</el-button>
-                        <el-button type="text" style="color:red;" @click="deleteById(scope.$index)">删除</el-button>
+                        <el-button type="text" style="color:red;" @click="deleteById(scope.$index,scope.row)">删除</el-button>
                     </template>
                 </el-table-column>
             </el-table>
@@ -79,7 +79,6 @@
                 this.controlActionVisible  = false
                 if(this.title === '新建巡检计划设定'){
                     if(value){
-                        debugger
                         this.inspectionPointData = JSON.parse(JSON.stringify(value.map( item => {
                             return {
                                 id:item.id,
@@ -112,7 +111,7 @@
                     }
                 }
             },
-            deleteById(value){
+            deleteById(value,scope){
                 if(this.title === '新建巡检计划设定'){
                     this.inspectionPointData.splice(value,1)
                 }else{
@@ -121,7 +120,8 @@
                     cancelButtonText:'取消',
                     type:'warning',
                     }).then(()=> {
-                        deleteInspectionControlAction({workId:value.workId,measureId:value.measureId}).then( (res)=>{
+                        debugger
+                        deleteInspectionControlAction({workId:scope.workId,measureId:scope.measureId}).then( (res)=>{
                             if(res.data.code === '200'){
                                 this.getControlActionList()
                                 this.$notify({
@@ -142,7 +142,6 @@
                 this.inspectionPointData = res.data.result.checkContents
             },
             keepValue(value){
-                debugger
                 this.keepValueList = value
             }
         }

--
Gitblit v1.9.2