mirror of
https://gitee.com/lijingbo-2021/open-anylink-web.git
synced 2026-05-19 05:37:56 +00:00
selectDialog返回selected是完整的对象数组
This commit is contained in:
@@ -62,7 +62,11 @@ const onShowUserCard = (account) => {
|
||||
}
|
||||
|
||||
const onConfirm = () => {
|
||||
emit('confirm', selected.value)
|
||||
const data = []
|
||||
selected.value.forEach((account) => {
|
||||
data.push(optionsAll.value[account])
|
||||
})
|
||||
emit('confirm', data)
|
||||
}
|
||||
|
||||
const onOpen = () => {
|
||||
|
||||
@@ -32,7 +32,6 @@ const showOprMenuPartitionId = ref(0)
|
||||
const selectedIndex = ref('')
|
||||
|
||||
const isShowSelectDialog = ref(false)
|
||||
const addSessionSelected = ref([])
|
||||
const addSessionPartitionId = ref(null)
|
||||
|
||||
onMounted(async () => {
|
||||
@@ -179,14 +178,12 @@ const showOperationMenu = (e, partitionId) => {
|
||||
|
||||
const onShowAddSessionByButton = (partitionId) => {
|
||||
addSessionPartitionId.value = partitionId
|
||||
addSessionSelected.value = []
|
||||
isShowSelectDialog.value = true
|
||||
}
|
||||
|
||||
const onConfirmSelect = (selected) => {
|
||||
addSessionSelected.value = selected
|
||||
addSessionSelected.value.forEach((account) => {
|
||||
const sessionId = combineId(account, userData.user.account)
|
||||
selected.forEach((item) => {
|
||||
const sessionId = combineId(item.account, userData.user.account)
|
||||
messageData.updateSession({
|
||||
sessionId: sessionId,
|
||||
partitionId: partitions.value[addSessionPartitionId.value].partitionId
|
||||
|
||||
Reference in New Issue
Block a user