|
@@ -12,7 +12,7 @@ import HJFlow from "@/components/MyFlow";
|
|
|
|
|
|
import type { ComponentSize, FormInstance, FormRules } from "element-plus";
|
|
|
import { getUserTree } from "@/api/system/user";
|
|
|
-import { getFlowDataInfo, saveFlowData } from "@/api/flow";
|
|
|
+import { getFlowDataInfo, getRoleList, saveFlowData } from "@/api/flow";
|
|
|
|
|
|
const formSize = ref<ComponentSize>("default");
|
|
|
const ruleFormRef = ref<FormInstance>();
|
|
@@ -87,6 +87,10 @@ onMounted(() => {
|
|
|
flowRef.value && flowRef.value.initFlow(nodes.value, edges.value);
|
|
|
} catch (e) {}
|
|
|
});
|
|
|
+
|
|
|
+ getRoleList().then((res) => {
|
|
|
+ candidateGroupsOptions.value = res.data;
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
// ======= 信息展示 =======
|
|
@@ -220,8 +224,8 @@ const testGetCurrentData = () => {
|
|
|
<el-tree-select
|
|
|
v-model="formData.candidateGroups"
|
|
|
:data="candidateGroupsOptions"
|
|
|
+ :props="{ label: 'roleName', value: 'roleName' }"
|
|
|
filterable
|
|
|
- multiple
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
|