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
0d6d1a6c
Commit
0d6d1a6c
authored
Apr 29, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
eaf344f3
6674b91c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
12 deletions
+10
-12
src/views/remote/contacts/contactsList.vue
+1
-4
src/views/remote/contacts/contactsListChoose.vue
+2
-6
src/views/remote/contacts/multiCallModel.vue
+7
-2
No files found.
src/views/remote/contacts/contactsList.vue
View file @
0d6d1a6c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<global-icon
icon=
"mic"
:size=
"14"
></global-icon>
<global-icon
icon=
"mic"
:size=
"14"
></global-icon>
</div>
</div>
<div
class=
"flex-auto text-right"
>
<div
class=
"flex-auto text-right"
>
<a-button
type=
"primary"
shape=
"circle"
@
click
.
stop=
"
handleCall
"
><global-icon
icon=
"phone"
:size=
"14"
color=
"var(--color-bg-white)"
></global-icon></a-button>
<a-button
type=
"primary"
shape=
"circle"
@
click
.
stop=
"
changeWait(true)
"
><global-icon
icon=
"phone"
:size=
"14"
color=
"var(--color-bg-white)"
></global-icon></a-button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -27,9 +27,6 @@ const ps = withDefaults(defineProps<Props>(), {
...
@@ -27,9 +27,6 @@ const ps = withDefaults(defineProps<Props>(), {
})
})
//拨打视频
//拨打视频
const
{
changeWait
,
setChooseUser
}
=
useContactsStore
()
const
{
changeWait
,
setChooseUser
}
=
useContactsStore
()
const
handleCall
=
()
=>
{
changeWait
(
true
)
}
//当前联系人
//当前联系人
const
{
chooseUser
}
=
storeToRefs
(
useContactsStore
())
const
{
chooseUser
}
=
storeToRefs
(
useContactsStore
())
//点击联系人
//点击联系人
...
...
src/views/remote/contacts/contactsListChoose.vue
View file @
0d6d1a6c
<
template
>
<
template
>
<a-checkbox-group
v-model=
"checkbox"
@
change=
"handleChange
"
>
<a-checkbox-group
v-model=
"checkbox"
class=
"w-full
"
>
<template
v-for=
"(item, index) in data"
:key=
"item.id"
>
<template
v-for=
"(item, index) in data"
:key=
"item.id"
>
<div
class=
"item flex items-center px-4 py-3 rounded cursor-pointer"
>
<div
class=
"item flex items-center px-4 py-3 rounded cursor-pointer"
>
<global-avatar></global-avatar>
<global-avatar></global-avatar>
...
@@ -21,11 +21,7 @@ interface Props {
...
@@ -21,11 +21,7 @@ interface Props {
const
ps
=
withDefaults
(
defineProps
<
Props
>
(),
{
const
ps
=
withDefaults
(
defineProps
<
Props
>
(),
{
data
:
()
=>
[]
data
:
()
=>
[]
})
})
//选择联系人
const
checkbox
=
defineModel
()
const
checkbox
=
ref
([])
const
handleChange
=
()
=>
{
console
.
log
(
checkbox
.
value
)
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.item.active
,
.item.active
,
...
...
src/views/remote/contacts/multiCallModel.vue
View file @
0d6d1a6c
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
<div
class=
"h-80 overflow-y-auto"
>
<div
class=
"h-80 overflow-y-auto"
>
<a-collapse
:bordered=
"false"
>
<a-collapse
:bordered=
"false"
>
<a-collapse-item
:header=
"key + '列表'"
:key=
"index"
v-for=
"(value, key, index) in getUserListGroup"
>
<a-collapse-item
:header=
"key + '列表'"
:key=
"index"
v-for=
"(value, key, index) in getUserListGroup"
>
<contacts-list-choose
:data=
"value"
></contacts-list-choose>
<contacts-list-choose
:data=
"value"
v-model=
"chooseUsers"
></contacts-list-choose>
</a-collapse-item>
</a-collapse-item>
</a-collapse>
</a-collapse>
</div>
</div>
<template
#
footer
>
<template
#
footer
>
<a-button
size=
"large"
type=
"primary"
@
click=
"showModel = false"
disabled
>
呼叫0
人
</a-button>
<a-button
size=
"large"
type=
"primary"
@
click=
"showModel = false"
:disabled=
"chooseUsers.length == 0"
>
呼叫
{{
chooseUsers
.
length
}}
人
</a-button>
<a-button
size=
"large"
@
click=
"showModel = false"
>
取消
</a-button>
<a-button
size=
"large"
@
click=
"showModel = false"
>
取消
</a-button>
</
template
>
</
template
>
</global-model>
</global-model>
...
@@ -21,9 +21,12 @@ import { UserItemDto } from '@/store/contacts/types'
...
@@ -21,9 +21,12 @@ import { UserItemDto } from '@/store/contacts/types'
import
contactsListChoose
from
'./contactsListChoose.vue'
import
contactsListChoose
from
'./contactsListChoose.vue'
import
{
cloneDeep
}
from
'lodash'
import
{
cloneDeep
}
from
'lodash'
//选中的联系人数组id
const
chooseUsers
=
ref
([])
const
showModel
=
ref
(
false
)
const
showModel
=
ref
(
false
)
const
open
=
()
=>
{
const
open
=
()
=>
{
showModel
.
value
=
true
showModel
.
value
=
true
chooseUsers
.
value
=
[]
}
}
//联系人列表
//联系人列表
const
videoGroup
:
{
[
key
in
UserItemDto
[
'videoGroup'
]]:
string
}
=
{
const
videoGroup
:
{
[
key
in
UserItemDto
[
'videoGroup'
]]:
string
}
=
{
...
@@ -45,6 +48,8 @@ const getUserListGroup = computed(() => {
...
@@ -45,6 +48,8 @@ const getUserListGroup = computed(() => {
return
result
return
result
},
{})
},
{})
})
})
//拨打视频
const
{
changeWait
}
=
useContactsStore
()
defineExpose
({
defineExpose
({
open
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