Merge branch 'main' into dev

This commit is contained in:
wangyifeng 2025-06-10 14:56:10 +08:00
commit 18871db6b6
3 changed files with 18 additions and 2 deletions

View File

@ -309,7 +309,8 @@ import { MessageComponents } from '@/constant/message'
const emits = defineEmits([ const emits = defineEmits([
'clearSearchMemberByAlphabet', 'clearSearchMemberByAlphabet',
'getDisabledDateArray', 'getDisabledDateArray',
'hideSearchResultModal' 'hideSearchResultModal',
'clearSelectedDateTime'
]) ])
const dialogueStore = useDialogueStore() const dialogueStore = useDialogueStore()
@ -753,6 +754,10 @@ const resetSearchConditions = (newVal) => {
state.group_member_id = 0 state.group_member_id = 0
emits('clearSearchMemberByAlphabet') emits('clearSearchMemberByAlphabet')
} }
if (newVal !== 'date') {
state.selectedDateTime = null
emits('clearSelectedDateTime')
}
} }
// //
@ -834,7 +839,6 @@ watch(
queryAllSearch() queryAllSearch()
}, },
{ {
immediate: true,
deep: true deep: true
} }
) )

View File

@ -485,6 +485,11 @@ const hideSearchResultModal = () => {
handleSearchRecordByConditionModalClose() handleSearchRecordByConditionModalClose()
state.isShowGroupAside = false state.isShowGroupAside = false
} }
//
const clearSelectedDateTime = () => {
onDatePickClear()
}
</script> </script>
<template> <template>
@ -712,6 +717,7 @@ const hideSearchResultModal = () => {
:selectedDateTime="state.selectedDateTime" :selectedDateTime="state.selectedDateTime"
:nowDateTime="state.nowDateTime" :nowDateTime="state.nowDateTime"
@hideSearchResultModal="hideSearchResultModal" @hideSearchResultModal="hideSearchResultModal"
@clearSelectedDateTime="clearSelectedDateTime"
/> />
</div> </div>
</n-card> </n-card>

View File

@ -89,6 +89,12 @@ const renderChatAppSearch = () => {
state.searchRecordText = searchText state.searchRecordText = searchText
state.selectItemInList = res state.selectItemInList = res
} else { } else {
if(searchResultKey === 'user_infos'){
talk_type = 1
}
if(searchResultKey === 'combinedGroup'){
talk_type = 2
}
talkStore.toTalk(talk_type, receiver_id, router) talkStore.toTalk(talk_type, receiver_id, router)
} }
state.showSearchDropdown = false state.showSearchDropdown = false