|
@@ -209,6 +209,11 @@ const getApprovalDetail = async () => {
|
|
|
processInstance.value = data.processInstance
|
|
|
processDefinition.value = data.processDefinition
|
|
|
|
|
|
+ // 获得用户列表
|
|
|
+ userOptions.value = await UserApi.getSimpleUserList()
|
|
|
+ const userId = useUserStore().getUser.id
|
|
|
+ deptUsers.value = await UserApi.getMaintainUsers(userId, processInstance.value.businessKey);
|
|
|
+
|
|
|
// 设置表单信息
|
|
|
if (processDefinition.value.formType === BpmModelFormType.NORMAL) {
|
|
|
// 获取表单字段权限
|
|
@@ -305,10 +310,6 @@ const userOptions = ref<UserApi.UserVO[]>([]) // 用户列表
|
|
|
const deptUsers = ref<UserApi.UserVO[]>([]) // 用户列表
|
|
|
onMounted(async () => {
|
|
|
getDetail()
|
|
|
- // 获得用户列表
|
|
|
- userOptions.value = await UserApi.getSimpleUserList()
|
|
|
- const userId = useUserStore().getUser.id
|
|
|
- deptUsers.value = await UserApi.getDeptUsers(userId);
|
|
|
})
|
|
|
</script>
|
|
|
|