lct
Your Name
2022-08-23 3c647d3837f7a1c2c146b7d4c39a87174782215f
src/views/doublePreventAction/riskLevelManage/checkUnit/components/inpectionPoint.vue
@@ -15,7 +15,7 @@
            >
                <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">
@@ -32,7 +32,7 @@
</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'],
@@ -61,7 +61,7 @@
            showControlAction (){
                this.controlActionVisible = true
                setTimeout( () => {
                    this.$refs.controlAction.ifShowButton(this.inspectionPointData)
                    this.$refs.controlAction.ifShowButton(this.inspectionPointData,this.title)
                })
            },
            showMeasureDetail(val){
@@ -70,25 +70,26 @@
                    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)