Merge branch 'dev' of http://172.16.100.91:3000/scout666/chat-pc into dev
This commit is contained in:
commit
14d69d40d3
@ -13,8 +13,8 @@ import { useUtil } from '@/hooks/useUtil'
|
|||||||
|
|
||||||
const { useMessage } = useUtil()
|
const { useMessage } = useUtil()
|
||||||
|
|
||||||
const isFriend = ref(false) // 是否是我的好友
|
// const isFriend = ref(false) // 是否是我的好友
|
||||||
const showBtn = ref(false)
|
// const showBtn = ref(false)
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const talkStore = useTalkStore()
|
const talkStore = useTalkStore()
|
||||||
@ -177,26 +177,26 @@ const onToTalk = () => {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// 添加好友
|
// 添加好友
|
||||||
const addFriend = () => {
|
// const addFriend = () => {
|
||||||
let params = {
|
// let params = {
|
||||||
receiver_id: props.uid, //聊天的用户id
|
// receiver_id: props.uid, //聊天的用户id
|
||||||
talk_type: 1
|
// talk_type: 1
|
||||||
}
|
// }
|
||||||
ServeAddFriend(params).then((res) => {
|
// ServeAddFriend(params).then((res) => {
|
||||||
if (res?.code === 200) {
|
// if (res?.code === 200) {
|
||||||
useMessage.success('添加成功')
|
// useMessage.success('添加成功')
|
||||||
isFriend.value = !isFriend.value
|
// isFriend.value = !isFriend.value
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
const onAfterEnter = () => {
|
const onAfterEnter = () => {
|
||||||
onLoadData()
|
onLoadData()
|
||||||
ServeCheckFriend({ receiver_id: props.uid, talk_type: 1 }).then((res) => {
|
// ServeCheckFriend({ receiver_id: props.uid, talk_type: 1 }).then((res) => {
|
||||||
if (res?.code === 200) {
|
// if (res?.code === 200) {
|
||||||
showBtn.value = true
|
// showBtn.value = true
|
||||||
isFriend.value = res.data?.is_friend || false
|
// isFriend.value = res.data?.is_friend || false
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
const onAfterLeave = () => {
|
const onAfterLeave = () => {
|
||||||
// loading.value = true
|
// loading.value = true
|
||||||
@ -293,7 +293,14 @@ const onAfterLeave = () => {
|
|||||||
<div class="text-#747474 text-12px">{{ userInfo.enter_date }}</div>
|
<div class="text-#747474 text-12px">{{ userInfo.enter_date }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="showBtn">
|
|
||||||
|
<n-button block color="#EEE9F8" text-color="#46299D" @click="onToTalk">
|
||||||
|
<div class="flex items-center justify-center py-11px">
|
||||||
|
<img class="w-19.8px h-20px mr-15px" src="@/assets/image/faxi@2x.png" alt="" />
|
||||||
|
<span>发送消息</span>
|
||||||
|
</div>
|
||||||
|
</n-button>
|
||||||
|
<!-- <div v-if="showBtn">
|
||||||
<n-button block color="#EEE9F8" text-color="#46299D" @click="onToTalk" v-if="isFriend">
|
<n-button block color="#EEE9F8" text-color="#46299D" @click="onToTalk" v-if="isFriend">
|
||||||
<div class="flex items-center justify-center py-11px">
|
<div class="flex items-center justify-center py-11px">
|
||||||
<img class="w-19.8px h-20px mr-15px" src="@/assets/image/faxi@2x.png" alt="" />
|
<img class="w-19.8px h-20px mr-15px" src="@/assets/image/faxi@2x.png" alt="" />
|
||||||
@ -318,7 +325,7 @@ const onAfterLeave = () => {
|
|||||||
<span>添加好友</span>
|
<span>添加好友</span>
|
||||||
</div>
|
</div>
|
||||||
</n-button>
|
</n-button>
|
||||||
</div>
|
</div> -->
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</x-n-modal>
|
</x-n-modal>
|
||||||
|
@ -186,7 +186,14 @@ class Talk extends Base {
|
|||||||
|
|
||||||
//群解散时,需要更新群成员权限
|
//群解散时,需要更新群成员权限
|
||||||
if ([1106].includes(record.msg_type)) {
|
if ([1106].includes(record.msg_type)) {
|
||||||
|
//更新会话信息
|
||||||
useDialogueStore().updateDismiss(true)
|
useDialogueStore().updateDismiss(true)
|
||||||
|
//更新会话列表中的会话信息
|
||||||
|
useTalkStore().updateItem({
|
||||||
|
index_name: this.getIndexName(),
|
||||||
|
is_dismiss: 1,
|
||||||
|
group_member_num: 0
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//群成员被移出时,需要更新群成员权限
|
//群成员被移出时,需要更新群成员权限
|
||||||
@ -197,6 +204,12 @@ class Talk extends Base {
|
|||||||
)
|
)
|
||||||
if (isMeQuit) {
|
if (isMeQuit) {
|
||||||
useDialogueStore().updateQuit(true)
|
useDialogueStore().updateQuit(true)
|
||||||
|
//更新会话列表中的会话信息
|
||||||
|
useTalkStore().updateItem({
|
||||||
|
index_name: this.getIndexName(),
|
||||||
|
is_quit: 1,
|
||||||
|
group_member_num: 0
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -124,20 +124,20 @@ const events = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const isFriend = ref(true) // 是否为好友
|
// const isFriend = ref(true) // 是否为好友
|
||||||
// 添加好友
|
// // 添加好友
|
||||||
const AddFriends = () => {
|
// const AddFriends = () => {
|
||||||
let params = {
|
// let params = {
|
||||||
receiver_id: talkParams.receiver_id, //聊天的用户id
|
// receiver_id: talkParams.receiver_id, //聊天的用户id
|
||||||
talk_type: 1
|
// talk_type: 1
|
||||||
}
|
// }
|
||||||
ServeAddFriend(params).then((res) => {
|
// ServeAddFriend(params).then((res) => {
|
||||||
if (res?.code === 200) {
|
// if (res?.code === 200) {
|
||||||
isFriend.value = !isFriend.value
|
// isFriend.value = !isFriend.value
|
||||||
useMessage.success('添加成功')
|
// useMessage.success('添加成功')
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
watch(
|
watch(
|
||||||
() => talkParams,
|
() => talkParams,
|
||||||
(newValue, oldValue) => {
|
(newValue, oldValue) => {
|
||||||
@ -534,7 +534,7 @@ const clearSelectedDateTime = () => {
|
|||||||
|
|
||||||
<!-- 聊天区域 -->
|
<!-- 聊天区域 -->
|
||||||
<main class="el-main relative">
|
<main class="el-main relative">
|
||||||
<div
|
<!-- <div
|
||||||
class="p-[15px] pt-[10px] w-[100%] z-99 absolute"
|
class="p-[15px] pt-[10px] w-[100%] z-99 absolute"
|
||||||
v-if="!isFriend && talkParams.type !== 2"
|
v-if="!isFriend && talkParams.type !== 2"
|
||||||
>
|
>
|
||||||
@ -553,7 +553,7 @@ const clearSelectedDateTime = () => {
|
|||||||
<span>添加好友</span>
|
<span>添加好友</span>
|
||||||
</n-button>
|
</n-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
<PanelContent
|
<PanelContent
|
||||||
:uid="talkParams.uid"
|
:uid="talkParams.uid"
|
||||||
:talk_type="talkParams.type"
|
:talk_type="talkParams.type"
|
||||||
|
@ -247,7 +247,8 @@ const state = reactive({
|
|||||||
tooltip: true
|
tooltip: true
|
||||||
},
|
},
|
||||||
render(row, index) {
|
render(row, index) {
|
||||||
return row.nickname + '【' + row.job_num + '】'
|
// return row.nickname + '【' + row.job_num + '】'
|
||||||
|
return row.nickName + '【' + row.jobNum + '】'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -258,12 +259,13 @@ const state = reactive({
|
|||||||
tooltip: true
|
tooltip: true
|
||||||
},
|
},
|
||||||
render(row, index) {
|
render(row, index) {
|
||||||
// let positionNames = Array.isArray(row.user_position)
|
let positionNames = Array.isArray(row.depPositions)
|
||||||
// ? row.depPositions.flatMap((dep) =>
|
? row.depPositions.flatMap((dep) =>
|
||||||
// Array.isArray(dep.positions) ? dep.positions.map((pos) => pos.name) : []
|
Array.isArray(dep.positions) ? dep.positions.map((pos) => pos.name) : []
|
||||||
// )
|
)
|
||||||
// : []
|
: []
|
||||||
return row.user_position.map((item) => item.position_name).join(' , ')
|
return positionNames.join(' , ')
|
||||||
|
// return row.user_position.map((item) => item.position_name).join(' , ')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -455,7 +457,7 @@ const state = reactive({
|
|||||||
myFriendListData: [], // 我的好友表格数据
|
myFriendListData: [], // 我的好友表格数据
|
||||||
addFriendList: [], // 搜索出来的可添加好友
|
addFriendList: [], // 搜索出来的可添加好友
|
||||||
addressBookTableHeight: 524, // 通讯录表格高度
|
addressBookTableHeight: 524, // 通讯录表格高度
|
||||||
addressBookTableWidth: 1142, // 通讯录表格宽度
|
addressBookTableWidth: 800, // 通讯录表格宽度
|
||||||
addressBookPage: 1, // 通讯录表格页码
|
addressBookPage: 1, // 通讯录表格页码
|
||||||
addressBookPageSize: 10, // 通讯录表格每页条数
|
addressBookPageSize: 10, // 通讯录表格每页条数
|
||||||
addressBookTotal: 0, // 通讯录表格总条数
|
addressBookTotal: 0, // 通讯录表格总条数
|
||||||
@ -520,7 +522,9 @@ const items = computed((): ISession[] => {
|
|||||||
|
|
||||||
return [...topItems, ...normalItems]
|
return [...topItems, ...normalItems]
|
||||||
})
|
})
|
||||||
setTimeout(()=>{console.log('items',items)},2000)
|
setTimeout(() => {
|
||||||
|
console.log('items', items)
|
||||||
|
}, 2000)
|
||||||
watch(
|
watch(
|
||||||
() => state.addressBookSearchNickName,
|
() => state.addressBookSearchNickName,
|
||||||
(newValue, oldValue) => {
|
(newValue, oldValue) => {
|
||||||
@ -529,7 +533,7 @@ watch(
|
|||||||
state.addressBookTableWidth = 1142
|
state.addressBookTableWidth = 1142
|
||||||
state.addressBookPage = 1
|
state.addressBookPage = 1
|
||||||
} else {
|
} else {
|
||||||
// state.addressBookTableWidth = 800
|
state.addressBookTableWidth = 800
|
||||||
state.clickKey = 3
|
state.clickKey = 3
|
||||||
state.treeRefreshCount++
|
state.treeRefreshCount++
|
||||||
state.addressBookPage = 1
|
state.addressBookPage = 1
|
||||||
@ -594,8 +598,8 @@ const indexName = computed(() => dialogueStore.index_name)
|
|||||||
|
|
||||||
// 切换会话
|
// 切换会话
|
||||||
const onTabTalk = (item: ISession, follow = false) => {
|
const onTabTalk = (item: ISession, follow = false) => {
|
||||||
console.log('onTabTalk')
|
console.log('onTabTalk')
|
||||||
console.log('item.index_name === indexName.value',item.index_name === indexName.value)
|
console.log('item.index_name === indexName.value', item.index_name === indexName.value)
|
||||||
if (item.index_name === indexName.value) return
|
if (item.index_name === indexName.value) return
|
||||||
|
|
||||||
searchKeyword.value = ''
|
searchKeyword.value = ''
|
||||||
@ -640,7 +644,7 @@ const onReload = () => {
|
|||||||
// 初始化加载
|
// 初始化加载
|
||||||
const onInitialize = () => {
|
const onInitialize = () => {
|
||||||
let index_name = getCacheIndexName()
|
let index_name = getCacheIndexName()
|
||||||
console.log('index_name',index_name)
|
console.log('index_name', index_name)
|
||||||
index_name && onTabTalk(talkStore.findItem(index_name), true)
|
index_name && onTabTalk(talkStore.findItem(index_name), true)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -648,9 +652,9 @@ const onInitialize = () => {
|
|||||||
onBeforeRouteUpdate(onInitialize)
|
onBeforeRouteUpdate(onInitialize)
|
||||||
|
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
// getTreeData()
|
getTreeData()
|
||||||
getDepPoisUser()
|
getDepPoisUser()
|
||||||
getMyFriends()
|
// getMyFriends()
|
||||||
getUserGroupChatList()
|
getUserGroupChatList()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -749,36 +753,36 @@ const getMyFriends = () => {
|
|||||||
}
|
}
|
||||||
// 获取部门下的人员
|
// 获取部门下的人员
|
||||||
const getDepPoisUser = () => {
|
const getDepPoisUser = () => {
|
||||||
// let url = '/user/v2/list'
|
let url = '/user/v2/list'
|
||||||
// let url = '/api/v1/contact/friend/list'
|
// let url = '/api/v1/contact/friend/list'
|
||||||
// let params = {
|
|
||||||
// departmentId: state.addressBookSearchNickName ? undefined : state.clickKey,
|
|
||||||
// page: state.addressBookPage,
|
|
||||||
// pageSize: state.addressBookPageSize,
|
|
||||||
// status: 'notactive',
|
|
||||||
// nickName: state.addressBookSearchNickName
|
|
||||||
// }
|
|
||||||
// $request.HTTP.components.postDataByParams(url, params).then((res) => {
|
|
||||||
// // console.log(res)
|
|
||||||
// if (res.status === 0 && Array.isArray(res.data.data)) {
|
|
||||||
// state.addressBookData = res.data.data || []
|
|
||||||
// state.addressBookTotal = res.data.count
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
let params = {
|
let params = {
|
||||||
type: 'addressBook', //查我的通讯录的时候写死addressBook
|
departmentId: state.addressBookSearchNickName ? undefined : state.clickKey,
|
||||||
page: state.addressBookPage,
|
page: state.addressBookPage,
|
||||||
page_size: state.addressBookPageSize,
|
pageSize: state.addressBookPageSize,
|
||||||
name: state.addressBookSearchNickName
|
status: 'notactive',
|
||||||
|
nickName: state.addressBookSearchNickName
|
||||||
}
|
}
|
||||||
GetContactFriendList(params).then((res) => {
|
$request.HTTP.components.postDataByParams(url, params).then((res) => {
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
if (res.code === 200 && Array.isArray(res.data.user_list)) {
|
if (res.status === 0 && Array.isArray(res.data.data)) {
|
||||||
state.addressBookData = res.data.user_list || []
|
state.addressBookData = res.data.data || []
|
||||||
state.company_name = res.data.company_name || ''
|
|
||||||
state.addressBookTotal = res.data.count
|
state.addressBookTotal = res.data.count
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// let params = {
|
||||||
|
// type: 'addressBook', //查我的通讯录的时候写死addressBook
|
||||||
|
// page: state.addressBookPage,
|
||||||
|
// page_size: state.addressBookPageSize,
|
||||||
|
// name: state.addressBookSearchNickName
|
||||||
|
// }
|
||||||
|
// GetContactFriendList(params).then((res) => {
|
||||||
|
// // console.log(res)
|
||||||
|
// if (res.code === 200 && Array.isArray(res.data.user_list)) {
|
||||||
|
// state.addressBookData = res.data.user_list || []
|
||||||
|
// state.company_name = res.data.company_name || ''
|
||||||
|
// state.addressBookTotal = res.data.count
|
||||||
|
// }
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 搜索可添加好友
|
// 搜索可添加好友
|
||||||
@ -802,7 +806,7 @@ const handleEnterChat = async (row) => {
|
|||||||
state.addressBookCurrentTab === 'myFriend'
|
state.addressBookCurrentTab === 'myFriend'
|
||||||
) {
|
) {
|
||||||
//员工通讯录,聊天类型一定为单聊
|
//员工通讯录,聊天类型一定为单聊
|
||||||
await getUserInfoByERPUserId({ erp_user_id: row.erp_user_id }).then((res) => {
|
await getUserInfoByERPUserId({ erp_user_id: row.ID }).then((res) => {
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
let sysUserInfo = res.data
|
let sysUserInfo = res.data
|
||||||
@ -822,7 +826,7 @@ const resetAddressBookModal = () => {
|
|||||||
state.addressBookCurrentTab = 'employeeAddressBook'
|
state.addressBookCurrentTab = 'employeeAddressBook'
|
||||||
state.addressBookSearchNickName = ''
|
state.addressBookSearchNickName = ''
|
||||||
state.groupChatListSearchGroupName = ''
|
state.groupChatListSearchGroupName = ''
|
||||||
state.addressBookTableWidth = 1142
|
state.addressBookTableWidth = 800
|
||||||
state.clickKey = 3
|
state.clickKey = 3
|
||||||
state.treeRefreshCount++
|
state.treeRefreshCount++
|
||||||
state.addressBookPage = 1
|
state.addressBookPage = 1
|
||||||
@ -830,7 +834,7 @@ const resetAddressBookModal = () => {
|
|||||||
state.groupChatListPage = 1
|
state.groupChatListPage = 1
|
||||||
state.groupChatListPageSize = 10
|
state.groupChatListPageSize = 10
|
||||||
getDepPoisUser()
|
getDepPoisUser()
|
||||||
getMyFriends()
|
// getMyFriends()
|
||||||
getUserGroupChatList()
|
getUserGroupChatList()
|
||||||
state.addFriendList = []
|
state.addFriendList = []
|
||||||
})
|
})
|
||||||
@ -1095,15 +1099,15 @@ const handleEnterSearchResultChat = () => {
|
|||||||
<n-icon :component="Plus" />
|
<n-icon :component="Plus" />
|
||||||
</template>
|
</template>
|
||||||
</n-button> -->
|
</n-button> -->
|
||||||
<!-- <img
|
<img
|
||||||
style="width: 19px; height: 20px; cursor: pointer"
|
style="width: 19px; height: 20px; cursor: pointer"
|
||||||
src="@/assets/image/chatList/addressBook.png"
|
src="@/assets/image/chatList/addressBook.png"
|
||||||
alt=""
|
alt=""
|
||||||
@click="showAddressBookModal"
|
@click="showAddressBookModal"
|
||||||
/> -->
|
/>
|
||||||
<n-dropdown :options="option" @select="handleSelect">
|
<!-- <n-dropdown :options="option" @select="handleSelect">
|
||||||
<n-button> <n-icon :component="AddOne" /></n-button>
|
<n-button> <n-icon :component="AddOne" /></n-button>
|
||||||
</n-dropdown>
|
</n-dropdown> -->
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- 置顶栏目 -->
|
<!-- 置顶栏目 -->
|
||||||
@ -1147,20 +1151,20 @@ const handleEnterSearchResultChat = () => {
|
|||||||
<main id="talk-session-list" class="el-main me-scrollbar me-scrollbar-thumb">
|
<main id="talk-session-list" class="el-main me-scrollbar me-scrollbar-thumb">
|
||||||
<template v-if="loadStatus == 2"><Skeleton /></template>
|
<template v-if="loadStatus == 2"><Skeleton /></template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<n-virtual-list :item-size="64" :items="items">
|
<n-virtual-list :item-size="64" :items="items">
|
||||||
<template #default="{ item }">
|
<template #default="{ item }">
|
||||||
<TalkItem
|
<TalkItem
|
||||||
:key="item.index_name + item.unread_num"
|
:key="item.index_name + item.unread_num"
|
||||||
:data="item"
|
:data="item"
|
||||||
:avatar="item.avatar"
|
:avatar="item.avatar"
|
||||||
:username="item.remark || item.name"
|
:username="item.remark || item.name"
|
||||||
:active="item.index_name == indexName"
|
:active="item.index_name == indexName"
|
||||||
@tab-talk="onTabTalk"
|
@tab-talk="onTabTalk"
|
||||||
@top-talk="onToTopTalk"
|
@top-talk="onToTopTalk"
|
||||||
@contextmenu.prevent="onContextMenuTalk($event, item)"
|
@contextmenu.prevent="onContextMenuTalk($event, item)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</n-virtual-list>
|
</n-virtual-list>
|
||||||
</template>
|
</template>
|
||||||
</main>
|
</main>
|
||||||
</section>
|
</section>
|
||||||
@ -1192,8 +1196,9 @@ const handleEnterSearchResultChat = () => {
|
|||||||
>
|
>
|
||||||
<!-- <n-tab name="employeeAddressBook">组织架构</n-tab>
|
<!-- <n-tab name="employeeAddressBook">组织架构</n-tab>
|
||||||
<n-tab name="employeeAddressBook">我的好友</n-tab> -->
|
<n-tab name="employeeAddressBook">我的好友</n-tab> -->
|
||||||
<n-tab name="employeeAddressBook">组织架构</n-tab>
|
<!-- <n-tab name="employeeAddressBook">组织架构</n-tab> -->
|
||||||
<n-tab name="myFriend">我的好友</n-tab>
|
<n-tab name="employeeAddressBook">员工通讯录</n-tab>
|
||||||
|
<!-- <n-tab name="myFriend">我的好友</n-tab> -->
|
||||||
<n-tab name="groupChatList">群聊列表</n-tab>
|
<n-tab name="groupChatList">群聊列表</n-tab>
|
||||||
</n-tabs>
|
</n-tabs>
|
||||||
<xSearchForm
|
<xSearchForm
|
||||||
@ -1227,8 +1232,8 @@ const handleEnterSearchResultChat = () => {
|
|||||||
class="addressBook-content"
|
class="addressBook-content"
|
||||||
v-if="state.addressBookCurrentTab == 'employeeAddressBook'"
|
v-if="state.addressBookCurrentTab == 'employeeAddressBook'"
|
||||||
>
|
>
|
||||||
<!-- 隐藏组织架构树 -->
|
<!-- 隐藏组织架构树 v-if="!state.addressBookSearchNickName && 0"-->
|
||||||
<div class="addressBook-tree" v-if="!state.addressBookSearchNickName && 0">
|
<div class="addressBook-tree" v-if="!state.addressBookSearchNickName">
|
||||||
<fl-tree
|
<fl-tree
|
||||||
:data="state.treeData"
|
:data="state.treeData"
|
||||||
:expandedKeys="state.expandedKeys"
|
:expandedKeys="state.expandedKeys"
|
||||||
|
@ -1075,7 +1075,6 @@ const onCustomSkipBottomEvent = () => {
|
|||||||
&.border {
|
&.border {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
border: 1px solid var(--im-primary-color);
|
border: 1px solid var(--im-primary-color);
|
||||||
background-color: red;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { reactive, computed } from 'vue'
|
||||||
import { Peoples, Announcement, MenuUnfoldOne, MenuFoldOne } from '@icon-park/vue-next'
|
import { Peoples, Announcement, MenuUnfoldOne, MenuFoldOne } from '@icon-park/vue-next'
|
||||||
import { useDialogueStore } from '@/store'
|
import { useDialogueStore } from '@/store'
|
||||||
|
|
||||||
@ -30,6 +31,10 @@ defineProps({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const dialogueStore = useDialogueStore()
|
const dialogueStore = useDialogueStore()
|
||||||
|
const dialogueParams = reactive({
|
||||||
|
isDismiss: computed(() => dialogueStore.isDismiss),
|
||||||
|
isQuit: computed(() => dialogueStore.isQuit)
|
||||||
|
})
|
||||||
const emit = defineEmits(['evnet'])
|
const emit = defineEmits(['evnet'])
|
||||||
|
|
||||||
const onSetMenu = () => {
|
const onSetMenu = () => {
|
||||||
@ -83,7 +88,7 @@ const onSetMenu = () => {
|
|||||||
:size="18"
|
:size="18"
|
||||||
class="icon"
|
class="icon"
|
||||||
@click="emit('evnet', 'group')"
|
@click="emit('evnet', 'group')"
|
||||||
v-show="!dialogueStore.isDismiss && !dialogueStore.isQuit"
|
v-show="!dialogueParams.isDismiss && !dialogueParams.isQuit"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
style="width: 20px; height: 20px;"
|
style="width: 20px; height: 20px;"
|
||||||
|
Loading…
Reference in New Issue
Block a user