czh-20260626-发起人筛选改成单选组件;修复选择用户后不回显的问题
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user