czh-20260626-发起人筛选改成单选组件;修复选择用户后不回显的问题

This commit is contained in:
zhihao
2026-06-26 09:19:42 +08:00
parent 890e2750c7
commit e419aeba0f
6 changed files with 192 additions and 7 deletions
@@ -59,12 +59,14 @@ const props = withDefaults(
departId?: string;
role?: string | number;
isSpecial?: number;
checkedUser?: UserItem | null;
}>(),
{
secLevel: 0,
departId: '',
role: 1,
isSpecial: 0,
checkedUser: undefined,
}
);
@@ -145,6 +147,14 @@ watch(
}
);
watch(
() => props.checkedUser,
(user) => {
selectedUser.value = user || null;
},
{ immediate: true }
);
function initData() {
const depId = props.departId;
if (depId) {