Browse Source

搜索bug修复2

wangdy 8 years ago
parent
commit
c55f940830
2 changed files with 29 additions and 0 deletions
  1. 6 0
      components/search/GoodList.vue
  2. 23 0
      components/search/Kind.vue

+ 6 - 0
components/search/GoodList.vue

@@ -207,6 +207,12 @@
         return input
       }
     },
+    watch: {
+      $route: function (val, oldVal) {
+        this.filter = {}
+        this.activeTag = 'normal1'
+      }
+    },
     computed: {
       good_lists () {
         return this.$store.state.searchData.searchList.lists

+ 23 - 0
components/search/Kind.vue

@@ -265,6 +265,29 @@
         }
       }
     },
+    watch: {
+      $route: function (val, oldVal) {
+        this.store_type_co = {store_type: 'CONSIGNMENT'}
+        this.store_type_ag = {store_type: 'AGENCY'}
+        this.store_type_di = {store_type: 'DISTRIBUTION'}
+        this.store_type_or = {store_type: 'ORIGINAL_FACTORY'}
+        this.filter = {}
+        this.kind_arr = []
+        this.brand_arr = []
+        this.type_arr = []
+        this.crname_arr = []
+        this.kind_exp_arr = []
+        this.brand_exp_arr = []
+        this.co_click_flag = false
+        this.ag_click_flag = false
+        this.di_click_flag = false
+        this.or_click_flag = false
+        this.crname_click_flag = {
+          rmb_click_flag: false,
+          usd_click_flag: false
+        }
+      }
+    },
     computed: {
       list_kinds () {
         return this.$store.state.searchData.searchKinds.kinds