|
|
@@ -94,18 +94,17 @@ const initPage = () => {
|
|
|
|
|
|
initPage()
|
|
|
|
|
|
-const BookingSearch = ref()
|
|
|
+const textSearch = ref()
|
|
|
const tableLoadingTableData = ref(false)
|
|
|
-let searchTableQeury: any = {}
|
|
|
|
|
|
const handleClose = (tagTitle: any) => {
|
|
|
filtersStore.deleteFilterByTitle(tagTitle)
|
|
|
- getBookingdata()
|
|
|
+ getBookingData()
|
|
|
}
|
|
|
|
|
|
const clearfilters = () => {
|
|
|
filtersStore.clearFilters()
|
|
|
- getBookingdata()
|
|
|
+ getBookingData()
|
|
|
}
|
|
|
|
|
|
const clearDaterangeTags = () => {}
|
|
|
@@ -115,7 +114,7 @@ const BookingTable_ref = ref()
|
|
|
const transportListItem = ref()
|
|
|
|
|
|
const isShowAlertIcon = ref(false)
|
|
|
-const getBookingdata = () => {
|
|
|
+const getBookingData = () => {
|
|
|
const queryData = filtersStore.getQueryData
|
|
|
|
|
|
tableLoadingTableData.value = true
|
|
|
@@ -126,6 +125,7 @@ const getBookingdata = () => {
|
|
|
ps: BookingTable_ref.value.pageInfo.pageSize,
|
|
|
rc: -1,
|
|
|
other_filed: '',
|
|
|
+ _textSearch: textSearch.value,
|
|
|
...queryData
|
|
|
})
|
|
|
.then((res: any) => {
|
|
|
@@ -144,9 +144,9 @@ const getBookingdata = () => {
|
|
|
})
|
|
|
|
|
|
sessionStorage.setItem('BookingData', JSON.stringify(res.data))
|
|
|
- BookingTable_ref.value.searchTableData(searchTableQeury)
|
|
|
+ BookingTable_ref.value.searchTableData()
|
|
|
// 查询没结果的话显示icon
|
|
|
- if (BookingSearch.value != '' && BookingSearch.value != undefined) {
|
|
|
+ if (textSearch.value != '' && textSearch.value != undefined) {
|
|
|
if (res.data.searchData.length == 0) {
|
|
|
isShowAlertIcon.value = true
|
|
|
}
|
|
|
@@ -166,16 +166,15 @@ const tabChange = (changeTabList: any) => {
|
|
|
key: 'filterTag'
|
|
|
})
|
|
|
|
|
|
- getBookingdata()
|
|
|
+ getBookingData()
|
|
|
}
|
|
|
// 点击search按钮
|
|
|
const SearchInput = () => {
|
|
|
- searchTableQeury._textSearch = BookingSearch.value
|
|
|
- getBookingdata()
|
|
|
+ getBookingData()
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
|
- getBookingdata()
|
|
|
+ getBookingData()
|
|
|
})
|
|
|
import BookingGuide from './components/BookingGuide.vue'
|
|
|
import { useGuideStore } from '@/stores/modules/guide'
|
|
|
@@ -195,6 +194,10 @@ onBeforeRouteLeave((route: any) => {
|
|
|
filtersStore.clearFilters()
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+const handleSearch = () => {
|
|
|
+ getBookingData()
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
@@ -211,7 +214,7 @@ onBeforeRouteLeave((route: any) => {
|
|
|
<div class="search">
|
|
|
<el-input
|
|
|
placeholder="Enter Booking/HBL/PO/Carrier Booking No. "
|
|
|
- v-model="BookingSearch"
|
|
|
+ v-model="textSearch"
|
|
|
class="log_input"
|
|
|
@keyup.enter="SearchInput"
|
|
|
>
|
|
|
@@ -242,15 +245,16 @@ onBeforeRouteLeave((route: any) => {
|
|
|
</div>
|
|
|
<TransportMode
|
|
|
:transportListItem="transportListItem"
|
|
|
- @transportSearch="getBookingdata()"
|
|
|
+ @transportSearch="getBookingData()"
|
|
|
></TransportMode>
|
|
|
<DateRange
|
|
|
- @DateRangeSearch="getBookingdata()"
|
|
|
+ @DateRangeSearch="getBookingData()"
|
|
|
@clearDaterangeTags="clearDaterangeTags"
|
|
|
></DateRange>
|
|
|
</div>
|
|
|
</div>
|
|
|
<MoreFilters
|
|
|
+ @handleSearch="handleSearch"
|
|
|
@clearMoreFiltersTags="clearMoreFiltersTags"
|
|
|
:isShowMoreFiltersGuidePhoto="guideStore.booking.isShowMoreFiltersGuidePhoto"
|
|
|
></MoreFilters>
|
|
|
@@ -284,7 +288,11 @@ onBeforeRouteLeave((route: any) => {
|
|
|
<div class="text_button" @click="clearfilters">Clear Filters</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <BookingTable :height="containerHeight" ref="BookingTable_ref"></BookingTable>
|
|
|
+ <BookingTable
|
|
|
+ :textSearch="textSearch"
|
|
|
+ :height="containerHeight"
|
|
|
+ ref="BookingTable_ref"
|
|
|
+ ></BookingTable>
|
|
|
</template>
|
|
|
|
|
|
<style lang="scss" scoped>
|