Browse Source

feat: 默认筛选

zhangyuhan 4 năm trước cách đây
mục cha
commit
83b5455ccb
1 tập tin đã thay đổi với 10 bổ sung1 xóa
  1. 10 1
      src/views/PotentialList.vue

+ 10 - 1
src/views/PotentialList.vue

@@ -33,7 +33,7 @@
           </div>
         </div>
         <div class="content-list-box">
-          <potential-list :key="filters.listKey" @goDetail="goDetail"
+          <potential-list @goDetail="goDetail"
                           @follow="changeFollow"
                           @remove="changeRemove"
                           @delete="changeDelete"
@@ -114,6 +114,7 @@ export default {
     },
     changeSubmitInfo (type) {
       if (type) {
+        this.filters.searchbool = 1
         this.$refs.pushList.doQuery(this.filters)
       } else {
         this.filters = Object.assign({}, this.$options.data.bind(this)().filters)
@@ -122,8 +123,13 @@ export default {
         this.$refs.buyerclassSelector.setCateState()
         this.$refs.businessScopeSelector.setState()
         this.changeBusiness([])
+        this.recoverCreate()
       }
     },
+    recoverCreate () {
+      this.filters.searchbool = 0
+      this.$refs.pushList.doQuery(this.filters)
+    },
     goDetail (item) {
       let routeUrl = {}
       if (this.filters.pcor === 'C') {
@@ -185,6 +191,9 @@ export default {
       })
     }
   },
+  mounted () {
+    this.recoverCreate()
+  },
   async created () {
     if (!this.scope.length) {
       await this.$store.dispatch('user/getKeywordsList')