|
@@ -221,9 +221,27 @@ const getOptions = () => {
|
|
|
).map((item) => item.userId);
|
|
|
});
|
|
|
};
|
|
|
+const tableData = ref([
|
|
|
+ {
|
|
|
+ roleName: '区域协调人',
|
|
|
+ history: [],
|
|
|
+ key: 'REGION_COORDINATOR',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ roleName: '项目经理',
|
|
|
+ history: [],
|
|
|
+ key: 'PROJECT_MANAGER',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ roleName: '工程师',
|
|
|
+ history: [],
|
|
|
+ key: 'ENGINEER',
|
|
|
+ },
|
|
|
+]);
|
|
|
|
|
|
-const tableData = IS_CLOUD.value
|
|
|
- ? ref([
|
|
|
+const dialogOpened = () => {
|
|
|
+ if (IS_CLOUD.value) {
|
|
|
+ tableData.value = [
|
|
|
{
|
|
|
roleName: '区域协调人',
|
|
|
history: [],
|
|
@@ -239,8 +257,9 @@ const tableData = IS_CLOUD.value
|
|
|
history: [],
|
|
|
key: 'ENGINEER',
|
|
|
},
|
|
|
- ])
|
|
|
- : ref([
|
|
|
+ ];
|
|
|
+ } else {
|
|
|
+ tableData.value = [
|
|
|
{
|
|
|
roleName: '项目经理',
|
|
|
history: [],
|
|
@@ -251,7 +270,10 @@ const tableData = IS_CLOUD.value
|
|
|
history: [],
|
|
|
key: 'ENGINEER',
|
|
|
},
|
|
|
- ]);
|
|
|
+ ];
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
const roleColumns = [
|
|
|
{ colKey: 'roleName', title: '角色', width: 120, cel: 'roleName' },
|
|
|
{ colKey: 'key', title: '人员', cell: 'key' },
|