|
|
@@ -21,6 +21,10 @@
|
|
|
:datasource="datasource"
|
|
|
:selection.sync="selection"
|
|
|
>
|
|
|
+ <template v-slot:groupId="{ row }">
|
|
|
+ {{ showgroupName(row.groupId) }}
|
|
|
+ </template>
|
|
|
+
|
|
|
<!-- 单选列 -->
|
|
|
<template v-slot:radio="{ row }">
|
|
|
<el-radio
|
|
|
@@ -190,7 +194,7 @@
|
|
|
// 获取公司数据
|
|
|
getGs() {
|
|
|
listOrganizations().then((list) => {
|
|
|
- console.log(list);
|
|
|
+ console.log('公司', list);
|
|
|
this.dictObj.groupId = list;
|
|
|
});
|
|
|
},
|
|
|
@@ -203,6 +207,15 @@
|
|
|
getFactoryarea(par).then((res) => {
|
|
|
this.dictObj.factory = res.list;
|
|
|
});
|
|
|
+ },
|
|
|
+ // 回显公司名称
|
|
|
+ showgroupName(id) {
|
|
|
+ let result = this.dictObj.groupId.find((n) => n.id == id);
|
|
|
+ if (result) {
|
|
|
+ return result.name;
|
|
|
+ } else {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|