|
@@ -87,8 +87,8 @@
|
|
|
{{scope.row.companyName || "东信智慧园区"}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="工单名称" align="center" prop="workOrderContent" show-overflow-tooltip />
|
|
|
- <el-table-column label="工单内容" align="center" prop="workOrderName" show-overflow-tooltip />
|
|
|
+ <el-table-column label="工单名称" align="center" prop="workOrderName" show-overflow-tooltip />
|
|
|
+ <el-table-column label="工单内容" align="center" prop="workOrderContent" show-overflow-tooltip />
|
|
|
<el-table-column label="工单类型" align="center" prop="workOrderType" >
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.workOrderType == "1" ? "消防告警" : scope.row.workOrderType == "2" ? "巡检计划" : scope.row.workOrderType == "3" ? "厕位故障" : ""}}
|
|
@@ -361,6 +361,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.init()//初始化
|
|
|
+ this.collectWorkOrder()
|
|
|
if(JSON.stringify(this.$route.query) !="{}"){ //跳转至工单查询
|
|
|
this.formData = this.$route.query
|
|
|
this.workOrderOne(this.$route.query.id,this.$route.query.type)
|
|
@@ -437,8 +438,12 @@ export default {
|
|
|
this.adminList = []
|
|
|
this.loading = false;
|
|
|
}else{
|
|
|
+ if(this.adminList.length>0){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ this.adminList.push(res.data.records[0]);
|
|
|
+ }
|
|
|
this.handleUpdate(res.data.records[0])
|
|
|
- this.adminList.push(res.data.records[0]);
|
|
|
this.loading = false;
|
|
|
}
|
|
|
|
|
@@ -511,6 +516,7 @@ export default {
|
|
|
updateWorkOrder(this.form).then(response => {
|
|
|
this.loading = false,
|
|
|
this.open2 = false;
|
|
|
+ this.collectWorkOrder()
|
|
|
this.getList();
|
|
|
})
|
|
|
|
|
@@ -538,6 +544,7 @@ export default {
|
|
|
this.loading = false,
|
|
|
this.msgSuccess("新增成功");
|
|
|
this.open1 = false;
|
|
|
+ this.collectWorkOrder()
|
|
|
this.getList();
|
|
|
}).catch(()=>{
|
|
|
this.loading = false,
|
|
@@ -587,7 +594,9 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
});
|
|
|
- /** 综合列表列表 */
|
|
|
+ },
|
|
|
+ /** 综合列表列表 */
|
|
|
+ collectWorkOrder(){
|
|
|
collectWorkOrder({}).then(response => {
|
|
|
this.collectList = response.data
|
|
|
setTimeout(() => {
|
|
@@ -595,6 +604,7 @@ export default {
|
|
|
}, 500);
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
</script>
|