| | |
| | | > |
| | | <el-table-column label="序号" type="index" width="150" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="隐患排查内容" prop="checkContent" align="center"> |
| | | <el-table-column label="隐患排查内容" prop="checkContent" align="center" show-overflow-tooltip> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" width="280" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import controlAction from '../../../riskLevelManage/controlAction/index' |
| | | import controlAction from '../../../riskLevelManage/controlAction/controlActionSelect/index' |
| | | import { addInspectionControlAction, deleteInspectionControlAction ,getInspectionControlAction } from '../../../../../api/inspectionTask' |
| | | export default { |
| | | props:['title','inspectionTaskForm'], |
| | |
| | | showControlAction (){ |
| | | this.controlActionVisible = true |
| | | setTimeout( () => { |
| | | this.$refs.controlAction.ifShowButton(this.inspectionPointData) |
| | | this.$refs.controlAction.ifShowButton(this.inspectionPointData,this.title) |
| | | }) |
| | | }, |
| | | showMeasureDetail(val){ |
| | |
| | | this.$refs.controlAction.showMeasureDetail(val) |
| | | this.$refs.controlAction.ifShowSelf = false |
| | | }) |
| | | |
| | | }, |
| | | closeDialog(){ |
| | | this.controlActionVisible = false |
| | | }, |
| | | async receiveRiskControlId(value) { |
| | | this.controlActionVisible = false |
| | | if(value){ |
| | | this.inspectionPointData = JSON.parse(JSON.stringify(value.map( item => { |
| | | return { |
| | | id:item.id, |
| | | checkContent:item.checkContent |
| | | } |
| | | }))) |
| | | this.$emit('giveToForm',this.inspectionPointData) |
| | | } |
| | | // if(value){ |
| | | // this.inspectionPointData = JSON.parse(JSON.stringify(value.map( item => { |
| | | // return { |
| | | // id:item.id, |
| | | // checkContent:item.checkContent |
| | | // } |
| | | // }))) |
| | | this.inspectionPointData = value |
| | | this.$emit('giveToForm',value) |
| | | // } |
| | | }, |
| | | deleteById(value,scope){ |
| | | this.inspectionPointData.splice(value,1) |
| | | this.$emit('giveToForm',this.inspectionPointData) |
| | | }, |
| | | async getControlActionList(){ |
| | | let res = await getInspectionControlAction(this.inspectionTaskForm.workId) |