lct123456
2022-04-20 5dc4fc6b103f0605f6149edc4ea1c10b57d66728
组件通信
已修改3个文件
47 ■■■■■ 文件已修改
src/views/doublePreventAction/hiddenDanger/inspectionTask/components/inpectionPoint.vue 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doublePreventAction/hiddenDanger/inspectionTask/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doublePreventAction/riskLevelManage/controlAction/index.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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,
@@ -65,7 +66,8 @@
            showMeasureDetail(val){
                this.controlActionVisible = true
                setTimeout( () => {
                    this.$refs.controlAction.showMeasureDetail(val)
                    this.$refs.controlAction.showMeasureDetail(val)
                    this.$refs.controlAction.ifShowSelf = false
                })
         
            },
@@ -106,24 +108,30 @@
                }    
            },
            deleteById(value){
                this.$confirm('删除此条措施,是否继续','提示',{
                if(this.title === '新建巡检计划设定'){
                    debugger
                    this.inspectionPointData.splice(value,1)
                }else{
                    this.$confirm('删除此条措施,是否继续','提示',{
                    confirmButtonText:'确定',
                    cancelButtonText:'取消',
                    type:'warning',
                }).then(()=> {
                    deleteInspectionControlAction({workId:value.workId,measureId:value.measureId}).then( (res)=>{
                        if(res.data.code === '200'){
                            this.getControlActionList()
                            this.$notify({
                            title:'成功',
                            message:'删除成功',
                            type:'success',
                            duration:2000,
                            })
                        }
                    }).then(()=> {
                        deleteInspectionControlAction({workId:value.workId,measureId:value.measureId}).then( (res)=>{
                            if(res.data.code === '200'){
                                this.getControlActionList()
                                this.$notify({
                                title:'成功',
                                message:'删除成功',
                                type:'success',
                                duration:2000,
                                })
                            }
                        })
                    })
                })
                }
            },
            async getControlActionList(){
                let res = await getInspectionControlAction(this.inspectionTaskForm.workId)
src/views/doublePreventAction/hiddenDanger/inspectionTask/index.vue
@@ -461,6 +461,7 @@
                    }
                    setTimeout(() => {
                        this.$refs.inspectionPoint.inspectionPointData = []
                        this.$refs.inspectionPoint.ifEdit = false
                    });
                }else{
                    this.ifShow = true
@@ -474,6 +475,7 @@
                    // this.inspectionTaskForm.noticeUid = value.noticeUname
                     setTimeout(() => {
                        this.$refs.inspectionPoint.inspectionPointData =  this.inspectionTaskForm.checkContents
                        this.$refs.inspectionPoint.ifEdit = true
                    });  
                }
            },
src/views/doublePreventAction/riskLevelManage/controlAction/index.vue
@@ -122,7 +122,7 @@
            </el-form>
            <div  align="right">
                <el-button @click="riskControlMeasureVisible = false">取消</el-button>
                <el-button type="primary" @click="submitAnalyseUnit()">确认</el-button>
                <el-button type="primary" @click="submitAnalyseUnit()" v-show="ifShowSelf">确认</el-button>
            </div>
        </el-dialog>
    </div>
@@ -162,6 +162,7 @@
                listLoading: false,
                showCurrent:true,
                showOther:false,
                ifShowSelf:true,
                pageSize: 10,
                recordTotal: 0,
                currentPage: 1,