Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
standalone-anyremote
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qlintonger xeno
standalone-anyremote
Commits
c17988d2
Commit
c17988d2
authored
May 06, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 多人通话
parent
e81c4b06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
src/views/remote/contacts/contactsInfo.vue
+2
-2
src/views/remote/contacts/contactsListChoose.vue
+1
-3
src/views/remote/contacts/multiCallModel.vue
+9
-3
No files found.
src/views/remote/contacts/contactsInfo.vue
View file @
c17988d2
...
...
@@ -15,7 +15,7 @@
多人呼叫
</a-button>
</div>
<a-collapse
:bordered=
"false"
>
<a-collapse
:bordered=
"false"
:default-active-key=
"[0, 1]"
>
<a-collapse-item
:header=
"key + '列表'"
:key=
"index"
v-for=
"(value, key, index) in getUserListGroup"
>
<contacts-list
:data=
"value"
></contacts-list>
</a-collapse-item>
...
...
@@ -72,7 +72,7 @@ onSuccess(({ data }) => {
})
const
searchParams
=
reactive
({
userName
:
''
,
isOnline
:
fals
e
isOnline
:
tru
e
})
//获取联系人分组
const
getUserListGroup
=
computed
(()
=>
{
...
...
src/views/remote/contacts/contactsListChoose.vue
View file @
c17988d2
<
template
>
<a-checkbox-group
v-model=
"checkbox"
class=
"w-full"
>
<template
v-for=
"(item, index) in data"
:key=
"item.id"
>
<div
class=
"item flex items-center px-4 py-3 rounded cursor-pointer"
v-if=
"userStore.user_info.id !== item.id"
>
<div
class=
"item flex items-center px-4 py-3 rounded cursor-pointer"
>
<global-avatar></global-avatar>
<div
class=
"ml-[9px] inline-block"
>
{{
item
.
nickname
}}
</div>
<div
class=
"flex-auto text-right"
>
...
...
@@ -14,9 +14,7 @@
<
script
setup
lang=
"ts"
>
import
{
ContactsItemDto
}
from
'@/store/contacts/types'
import
useUserStore
from
'@/store/user'
const
userStore
=
useUserStore
()
interface
Props
{
data
?:
Array
<
ContactsItemDto
>
}
...
...
src/views/remote/contacts/multiCallModel.vue
View file @
c17988d2
<
template
>
<global-model
v-model:visible=
"showModel"
title=
"选择通话用户"
:width=
"320"
>
<div
class=
"h-80 overflow-y-auto"
>
<a-collapse
:bordered=
"false"
>
<a-collapse
:bordered=
"false"
:default-active-key=
"[0, 1]"
>
<a-collapse-item
:header=
"key + '列表'"
:key=
"index"
v-for=
"(value, key, index) in getUserListGroup"
>
<contacts-list-choose
:data=
"value"
v-model=
"chooseUserIds"
v-if=
"value.length"
></contacts-list-choose>
</a-collapse-item>
</a-collapse>
</div>
<template
#
footer
>
<a-button
size=
"large"
type=
"primary"
@
click=
"
showModel = false
"
:disabled=
"chooseUserIds.length == 0"
>
呼叫
{{
chooseUserIds
.
length
}}
人
</a-button>
<a-button
size=
"large"
type=
"primary"
@
click=
"
multiCall
"
:disabled=
"chooseUserIds.length == 0"
>
呼叫
{{
chooseUserIds
.
length
}}
人
</a-button>
<a-button
size=
"large"
@
click=
"showModel = false"
>
取消
</a-button>
</
template
>
</global-model>
...
...
@@ -20,7 +20,9 @@ import useContactsStore from '@/store/contacts/index'
import
contactsListChoose
from
'./contactsListChoose.vue'
import
{
cloneDeep
}
from
'lodash'
import
{
videoGroup
}
from
'@/constants/common/user'
import
useUserStore
from
'@/store/user'
const
userStore
=
useUserStore
()
//选中的联系人数组id
const
chooseUserIds
=
ref
([])
const
showModel
=
ref
(
false
)
...
...
@@ -40,12 +42,16 @@ const getUserListGroup = computed(() => {
result
[
groupName
]
=
[]
}
//在线人员
if
(
getOnlineContacts
.
value
.
find
((
_item
)
=>
_item
.
id
==
item
.
id
))
{
if
(
getOnlineContacts
.
value
.
find
((
_item
)
=>
_item
.
id
==
item
.
id
)
&&
userStore
.
user_info
.
id
!==
item
.
id
)
{
result
[
groupName
].
push
(
item
)
}
return
result
},
{})
})
//多人呼叫
const
multiCall
=
()
=>
{
console
.
log
(
chooseUserIds
.
value
)
}
defineExpose
({
open
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment