From 3eb4a715c02d3b9676af22fdd09669d253dcbf22 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Thu, 02 Jun 2022 13:08:57 +0800
Subject: [PATCH] 'lct'
---
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 67bd0c0..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>
@@ -111,7 +111,7 @@
}
}
},
- deleteById(value){
+ deleteById(value,scope){
if(this.title === '新建巡检计划设定'){
this.inspectionPointData.splice(value,1)
}else{
@@ -120,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({
--
Gitblit v1.9.2