|
|
@@ -5,6 +5,9 @@ import SelectAutoSelect from '@/components/SelectAutoSelect'
|
|
|
import SelectTableSelect from '@/components/SelectTableSelect'
|
|
|
import { ref, onMounted, onBeforeMount, computed } from 'vue'
|
|
|
import SelectTable from '@/components/SelectTable/src/SelectTable.vue'
|
|
|
+import { useHeaderSearch } from '@/stores/modules/headerSearch'
|
|
|
+
|
|
|
+const headerSearch = useHeaderSearch()
|
|
|
|
|
|
onMounted(() => {
|
|
|
if (
|
|
|
@@ -994,9 +997,16 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
const clickmorefilters = () => {
|
|
|
drawer.value = true
|
|
|
const incotermsList = JSON.parse(sessionStorage.getItem('incotermsList') as string) || {}
|
|
|
- if (incotermsList) {
|
|
|
- IncotermsList.value = incotermsList.IncotermsList
|
|
|
- SeiviceList.value = incotermsList.ServiceList
|
|
|
+ const data = JSON.parse(localStorage.getItem('searchData'))
|
|
|
+ if (data) {
|
|
|
+ IncotermsList.value = data.IncotermsList
|
|
|
+ SeiviceList.value = data.ServiceList
|
|
|
+ headerSearch.clearSearchData()
|
|
|
+ } else {
|
|
|
+ if (incotermsList) {
|
|
|
+ IncotermsList.value = incotermsList.IncotermsList
|
|
|
+ SeiviceList.value = incotermsList.ServiceList
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|