|
|
@@ -57,16 +57,24 @@
|
|
|
this.$store.dispatch('searchData/searchForList', {count: this.pageSize, filter: this.filter, keyword: this.$route.query.w, page: this.nowPage, sorting: this.sorting})
|
|
|
},
|
|
|
reloadKind: function () {
|
|
|
- this.$store.dispatch('searchData/searchForKinds', {collectList: 'goods_kind', keyword: this.$route.query.w, paramJSON: this.paramJSON})
|
|
|
+ if (!this.filter.goods_kindId) {
|
|
|
+ this.$store.dispatch('searchData/searchForKinds', {collectList: 'goods_kind', keyword: this.$route.query.w, paramJSON: this.paramJSON})
|
|
|
+ }
|
|
|
},
|
|
|
reloadBrand: function () {
|
|
|
- this.$store.dispatch('searchData/searchForBrands', {collectList: 'goods_brand', keyword: this.$route.query.w, paramJSON: this.paramJSON})
|
|
|
+ if (!this.filter.goods_brandId) {
|
|
|
+ this.$store.dispatch('searchData/searchForBrands', {collectList: 'goods_brand', keyword: this.$route.query.w, paramJSON: this.paramJSON})
|
|
|
+ }
|
|
|
},
|
|
|
reloadStoreType: function () {
|
|
|
- this.$store.dispatch('searchData/searchForStoreType', {collectList: 'goods_store_type', keyword: this.$route.query.w, paramJSON: this.paramJSON})
|
|
|
+ if (!this.filter.goods_store_type) {
|
|
|
+ this.$store.dispatch('searchData/searchForStoreType', {collectList: 'goods_store_type', keyword: this.$route.query.w, paramJSON: this.paramJSON})
|
|
|
+ }
|
|
|
},
|
|
|
reloadCrname: function () {
|
|
|
- this.$store.dispatch('searchData/searchForCrname', {collectList: 'goods_crname', keyword: this.$route.query.w, paramJSON: this.paramJSON})
|
|
|
+ if (!this.filter.goods_crname) {
|
|
|
+ this.$store.dispatch('searchData/searchForCrname', {collectList: 'goods_crname', keyword: this.$route.query.w, paramJSON: this.paramJSON})
|
|
|
+ }
|
|
|
},
|
|
|
listenPage: function (nPage) {
|
|
|
this.nowPage = nPage
|
|
|
@@ -90,7 +98,6 @@
|
|
|
this.reloadList()
|
|
|
},
|
|
|
listenKindFilter: function (kindarr) {
|
|
|
- console.log(kindarr.length)
|
|
|
if (kindarr.length === 0) {
|
|
|
delete this.filter.goods_kindId
|
|
|
delete this.paramJSON.goods_kindid
|