| | |
| | | <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> |
| | |
| | | this.controlActionVisible = false |
| | | if(this.title === '新建巡检计划设定'){ |
| | | if(value){ |
| | | debugger |
| | | this.inspectionPointData = JSON.parse(JSON.stringify(value.map( item => { |
| | | return { |
| | | id:item.id, |
| | |
| | | } |
| | | } |
| | | }, |
| | | deleteById(value){ |
| | | deleteById(value,scope){ |
| | | if(this.title === '新建巡检计划设定'){ |
| | | this.inspectionPointData.splice(value,1) |
| | | }else{ |
| | |
| | | cancelButtonText:'取消', |
| | | type:'warning', |
| | | }).then(()=> { |
| | | deleteInspectionControlAction({workId:value.workId,measureId:value.measureId}).then( (res)=>{ |
| | | deleteInspectionControlAction({workId:scope.workId,measureId:scope.measureId}).then( (res)=>{ |
| | | if(res.data.code === '200'){ |
| | | this.getControlActionList() |
| | | this.$notify({ |
| | |
| | | this.inspectionPointData = res.data.result.checkContents |
| | | }, |
| | | keepValue(value){ |
| | | debugger |
| | | this.keepValueList = value |
| | | } |
| | | } |