|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="container">
|
|
<div class="container">
|
|
<el-tag
|
|
<el-tag
|
|
- v-show="!((item.key == 'WAIT_CREATE_PAYMENT_CALENDER' || $route.path == '/business/teamDetail') && !show)"
|
|
|
|
|
|
+ v-show="!((item.key == 'WAIT_CREATE_PAYMENT_CALENDER' || $route.path == '/business/teamDetail') && !show && $route.query.form != 'reminders')"
|
|
class="filter-search"
|
|
class="filter-search"
|
|
v-for="item in activeItems"
|
|
v-for="item in activeItems"
|
|
:key="item.key"
|
|
:key="item.key"
|
|
@@ -60,6 +60,11 @@ export default {
|
|
default: () => []
|
|
default: () => []
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ data() {
|
|
|
|
+ return{
|
|
|
|
+ initSearch: {}
|
|
|
|
+ }
|
|
|
|
+ },
|
|
computed: {
|
|
computed: {
|
|
hasSearch() {
|
|
hasSearch() {
|
|
return this.$route.query[this.searchKey]
|
|
return this.$route.query[this.searchKey]
|
|
@@ -79,6 +84,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ this.initSearch = this.$route.query
|
|
console.log(this.activeItems)
|
|
console.log(this.activeItems)
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -101,9 +107,10 @@ export default {
|
|
this.$router.replace({
|
|
this.$router.replace({
|
|
path: item.url,
|
|
path: item.url,
|
|
query: {
|
|
query: {
|
|
|
|
+ ...this.$route.query,
|
|
...item.query,
|
|
...item.query,
|
|
filter_type: item.key,
|
|
filter_type: item.key,
|
|
- [item.resultKey]: item.resultKey ? (item.result || []).join(',') : undefined
|
|
|
|
|
|
+ [this.searchKey]: this.initSearch[this.searchKey]
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.$emit('setTimeForSearch')
|
|
this.$emit('setTimeForSearch')
|