|
@@ -90,7 +90,6 @@
|
|
|
<el-table-column label="装置名称" align="center" prop="devName" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="工作区域" align="center" prop="workArea" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="区域负责人" align="center" prop="regionalHeadName" :show-overflow-tooltip="true"/>
|
|
|
-
|
|
|
<el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
@@ -300,7 +299,6 @@ export default {
|
|
|
principalName = v.nickName;
|
|
|
}
|
|
|
}
|
|
|
- console.log(principalName)
|
|
|
})
|
|
|
});
|
|
|
}
|
|
@@ -358,24 +356,19 @@ export default {
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
this.title = "添加 装置区域管理信息";
|
|
|
- listPostUser({
|
|
|
- postCode: 'wxjl'
|
|
|
- }).then(response => {
|
|
|
- this.principalList = response;
|
|
|
- });
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids
|
|
|
- listPostUser({
|
|
|
- postCode: 'wxjl'
|
|
|
- }).then(response => {
|
|
|
- this.principalList = response;
|
|
|
- });
|
|
|
getDevice(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
- this.form.regionalHead=this.form.regionalHead.split(",");
|
|
|
+ let regionalHead=this.form.regionalHead.split(",");
|
|
|
+ regionalHead.forEach(function (value,key,arr){
|
|
|
+ value=value-0;
|
|
|
+ regionalHead[key]=value
|
|
|
+ })
|
|
|
+ this.form.regionalHead=regionalHead;
|
|
|
this.open = true;
|
|
|
this.title = "修改装置区域管理";
|
|
|
});
|