lct123456
2022-04-20 5dc4fc6b103f0605f6149edc4ea1c10b57d66728
src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue
@@ -19,8 +19,8 @@
                </el-table-column>
                   <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)">详情</el-button>
                        <el-button type="text" style="color:red;" @click="deleteById(scope.row)">删除</el-button>
                        <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>
                    </template>
                </el-table-column>
            </el-table>
@@ -41,6 +41,7 @@
            return{
                tableKey:'',
                listLoading:false,
                ifEdit:false,
                ifShowControl:true,
                controlActionVisible:false,
                riskControlMeasureVisible:false,
@@ -66,6 +67,7 @@
                this.controlActionVisible = true
                setTimeout( () => {
                    this.$refs.controlAction.showMeasureDetail(val)    
                    this.$refs.controlAction.ifShowSelf = false
                })
         
            },
@@ -106,6 +108,10 @@
                }    
            },
            deleteById(value){
                if(this.title === '新建巡检计划设定'){
                    debugger
                    this.inspectionPointData.splice(value,1)
                }else{
                this.$confirm('删除此条措施,是否继续','提示',{
                    confirmButtonText:'确定',
                    cancelButtonText:'取消',
@@ -124,6 +130,8 @@
                  
                    })
                })
                }
            },
            async getControlActionList(){
                let res = await getInspectionControlAction(this.inspectionTaskForm.workId)