chore: 搜索表单布局+申请人

This commit is contained in:
dap
2024-12-19 11:16:07 +08:00
parent 6946471d96
commit 2b19cea0d8
2 changed files with 46 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
<!--抄送组件-->
<script setup lang="ts">
import type { User } from '#/api/core/user';
import type { User } from '#/api/system/user/model';
import type { PropType } from 'vue';
@@ -15,6 +15,8 @@ defineOptions({
inheritAttrs: false,
});
const emit = defineEmits<{ finish: [User[]] }>();
const [UserSelectModal, modalApi] = useVbenModal({
connectedComponent: userSelectModal,
});
@@ -33,12 +35,13 @@ function handleFinish(userList: User[]) {
// 清空 直接赋值[]会丢失响应性
userListModel.value.splice(0, userListModel.value.length);
userListModel.value.push(...userList);
emit('finish', userList);
}
</script>
<template>
<div class="flex items-center gap-2">
<AvatarGroup v-if="userListModel.length > 0">
<AvatarGroup v-if="userListModel.length > 0" class="flex-wrap">
<Tooltip
v-for="user in userListModel"
:key="user.userId"