Prechádzať zdrojové kódy

乐团列表筛选问题修复

wolyshaw 4 rokov pred
rodič
commit
96ad83ddcf

+ 9 - 2
src/components/filter-search/index.vue

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

+ 1 - 0
src/views/main/reminders/index.vue

@@ -66,6 +66,7 @@ export default {
           filter_type: item.errorType,
           search: (item.result || []).join(','),
           organId: this.search.organId || undefined,
+          form: 'reminders'
         }
       })
     },