Your Name
2022-05-20 2dbec630c2e618606f5625ca08e261ee0caba60f
src/views/doublePreventAction/hiddenDanger/inspectionRecord/components/detail.vue
@@ -232,7 +232,7 @@
                ifNormal:false,
                userList:[],
                fileList:[],
                resultList:[{id:1,name:'正常'},{id:2,name:'异常'}],
                resultList:[{id:0,name:'未操作'},{id:1,name:'正常'},{id:2,name:'异常'}],
                typeList:[{id:1,name:'日常检查'},{id:2,name:'周期检查'}],
                statusList:[{id:1,name:'待巡检'},{id:2,name:'巡检中'},{id:3,name:'已完成'},{id:4,name:'超时未巡检'},{id:5,name:'已取消'}],
            }
@@ -252,10 +252,10 @@
                    this.titleDetail = '巡检单元查看'
                    this.ifShow = true
                    this.inspectionRecordDetailForm = JSON.parse(JSON.stringify(value))
                    if(value.result === 2){
                    if(value.result !== 1){
                        this.ifNormal = true
                        this.fileList = []
                        this.fileList.push({url:process.env.IMG_API + value.img})
                        this.fileList =(value.img === null ? [] : [ {url:process.env.IMG_API + value.img} ])
                    }
                }else{
                    this.titleDetail = '巡检单元上报'
@@ -285,7 +285,7 @@
                    if(valid){
                        submitUnitOne(this.inspectionRecordDetailForm).then( res =>{
                            if(res.data.code === '200'){
                                this.inspectionRecordDetailFormVisible = false
                                this.$message({
                                    type:'success',
                                    message:'上报成功',
@@ -299,6 +299,7 @@
                                    type:'warning'
                                })
                            }
                            this.inspectionRecordDetailFormVisible = false
                        })
                    }else{
                        this.$message({