diff --git a/src/views/im/manager/friend/index.vue b/src/views/im/manager/friend/index.vue index fda62d850..1a6b64ad5 100644 --- a/src/views/im/manager/friend/index.vue +++ b/src/views/im/manager/friend/index.vue @@ -8,39 +8,11 @@ :inline="true" label-width="80px" > - - - - + - - - - + - {{ row.userNickname || '-' }} ({{ row.userId }}) - {{ row.friendNickname || '-' }} @@ -148,14 +118,13 @@ import { dateFormatter } from '@/utils/formatTime' import { DICT_TYPE, getIntDictOptions, getBoolDictOptions } from '@/utils/dict' import * as ManagerFriendApi from '@/api/im/manager/friend' -import * as UserApi from '@/api/system/user' +import UserSelectV2 from '@/views/system/user/components/UserSelectV2.vue' defineOptions({ name: 'ImFriend' }) const loading = ref(true) // 列表的加载中 const total = ref(0) // 列表的总页数 const list = ref([]) // 列表的数据 -const userOptions = ref([]) // 用户下拉的候选项 const queryParams = reactive({ pageNo: 1, pageSize: 10, @@ -192,9 +161,7 @@ const resetQuery = () => { } /** 初始化 */ -onMounted(async () => { - // 用户下拉一次性拉简化数据,给 userId / friendUserId 共用 - userOptions.value = await UserApi.getSimpleUserList() - await getList() +onMounted(() => { + getList() }) diff --git a/src/views/im/manager/group/components/GroupSelect.vue b/src/views/im/manager/group/components/GroupSelect.vue new file mode 100644 index 000000000..2f4322072 --- /dev/null +++ b/src/views/im/manager/group/components/GroupSelect.vue @@ -0,0 +1,171 @@ + + + + + + + 群名称:{{ selectedItem.name }} + 群主:{{ selectedItem.ownerNickname || '-' }} + 成员数:{{ selectedItem.memberCount ?? '-' }} + + + + + + + + + + + + diff --git a/src/views/im/manager/group/components/GroupSelectDialog.vue b/src/views/im/manager/group/components/GroupSelectDialog.vue new file mode 100644 index 000000000..99a4a31be --- /dev/null +++ b/src/views/im/manager/group/components/GroupSelectDialog.vue @@ -0,0 +1,290 @@ + + + + + + + + + + + + + + + + 搜索 + + + 重置 + + + + + + + + + + + + + + + + + + + + {{ row.name?.charAt(0) ?? '?' }} + + + + + + + {{ row.ownerNickname || '-' }} + ({{ row.ownerUserId }}) + + + + + + + + + + + + + 确 定 + 取 消 + + + + + + + diff --git a/src/views/im/manager/group/index.vue b/src/views/im/manager/group/index.vue index b9881ba53..a44338524 100644 --- a/src/views/im/manager/group/index.vue +++ b/src/views/im/manager/group/index.vue @@ -17,12 +17,10 @@ class="!w-240px" /> - - + @@ -169,6 +167,7 @@ import { DICT_TYPE, getIntDictOptions, getBoolDictOptions } from '@/utils/dict' import { dateFormatter } from '@/utils/formatTime' import * as ManagerGroupApi from '@/api/im/manager/group' +import UserSelectV2 from '@/views/system/user/components/UserSelectV2.vue' import GroupDetail from './GroupDetail.vue' import GroupBanForm from './GroupBanForm.vue' diff --git a/src/views/im/manager/message/group/index.vue b/src/views/im/manager/message/group/index.vue index 532721be2..3eb1ff6fe 100644 --- a/src/views/im/manager/message/group/index.vue +++ b/src/views/im/manager/message/group/index.vue @@ -8,23 +8,13 @@ :inline="true" label-width="88px" > - - - + + - - - + @@ -43,21 +33,14 @@ /> - - - + - - + /> - - - + - - - + @@ -43,21 +37,14 @@ /> - - - + - - + />