diff --git a/src/views/system/dept/form.vue b/src/views/system/dept/form.vue index fbbcab59..8d9405f3 100644 --- a/src/views/system/dept/form.vue +++ b/src/views/system/dept/form.vue @@ -33,7 +33,7 @@ style="width: 100%" > [] as UserVO[] - } -}) const formRules = reactive({ parentId: [{ required: true, message: '上级部门不能为空', trigger: 'blur' }], @@ -118,12 +113,12 @@ const formRules = reactive({ }) /** 打开弹窗 */ -const openModal = async (type: string, id?: number) => { +const openModal = async (type: string, id?: number, userOption?: UserVO[]) => { + userList.value = userOption modelVisible.value = true modelTitle.value = t('action.' + type) formType.value = type resetForm() - console.log(id) // 修改时,设置数据 if (id) { formLoading.value = true diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index bfd12256..d5f54d19 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -85,7 +85,7 @@ - +