| | |
| | | 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:'已取消'}], |
| | | } |
| | |
| | | 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 = '巡检单元上报' |
| | |
| | | if(valid){ |
| | | submitUnitOne(this.inspectionRecordDetailForm).then( res =>{ |
| | | if(res.data.code === '200'){ |
| | | this.inspectionRecordDetailFormVisible = false |
| | | |
| | | this.$message({ |
| | | type:'success', |
| | | message:'上报成功', |
| | |
| | | type:'warning' |
| | | }) |
| | | } |
| | | this.inspectionRecordDetailFormVisible = false |
| | | }) |
| | | }else{ |
| | | this.$message({ |