Merge branch 'main' into dev
This commit is contained in:
commit
18871db6b6
@ -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
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -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>
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user