From 2dbec630c2e618606f5625ca08e261ee0caba60f Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Fri, 20 May 2022 17:15:33 +0800
Subject: [PATCH] 'lct'
---
src/views/doublePreventAction/hiddenDanger/inspectionRecord/components/detail.vue | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionRecord/components/detail.vue b/src/views/doublePreventAction/hiddenDanger/inspectionRecord/components/detail.vue
index c3fc9e0..f9b28b2 100644
--- a/src/views/doublePreventAction/hiddenDanger/inspectionRecord/components/detail.vue
+++ b/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({
--
Gitblit v1.9.2