|
@@ -147,8 +147,7 @@
|
|
|
this.pageParams.page = 1
|
|
this.pageParams.page = 1
|
|
|
this.pageCmpGoods(this.pageParams)
|
|
this.pageCmpGoods(this.pageParams)
|
|
|
},
|
|
},
|
|
|
-// async pageCmpGoods (pageParams) {
|
|
|
|
|
- pageCmpGoods (pageParams) {
|
|
|
|
|
|
|
+ async pageCmpGoods (pageParams) {
|
|
|
let params = {}
|
|
let params = {}
|
|
|
params.filter = { kindid: pageParams.filter.kindid }
|
|
params.filter = { kindid: pageParams.filter.kindid }
|
|
|
if (pageParams.filter.brandid && pageParams.filter.brandid !== '') {
|
|
if (pageParams.filter.brandid && pageParams.filter.brandid !== '') {
|
|
@@ -159,19 +158,14 @@
|
|
|
}
|
|
}
|
|
|
params.page = pageParams.page
|
|
params.page = pageParams.page
|
|
|
params.count = pageParams.count
|
|
params.count = pageParams.count
|
|
|
-// let { data } = await this.$http.get('/api/product/product/getCompGoodsByKindid', { params })
|
|
|
|
|
-// this.$store.commit('product/component/GET_CMPGOODS_SUCCESS', data)
|
|
|
|
|
- this.$http.get('/api/product/product/getCompGoodsByKindid', { params })
|
|
|
|
|
- .then(response => {
|
|
|
|
|
- this.$store.commit('product/component/GET_CMPGOODS_SUCCESS', response.data)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ let { data } = await this.$http.get('/api/product/product/getCompGoodsByKindid', { params })
|
|
|
|
|
+ this.$store.commit('product/component/GET_CMPGOODS_SUCCESS', data)
|
|
|
},
|
|
},
|
|
|
handleCurrentChange (page) {
|
|
handleCurrentChange (page) {
|
|
|
this.pageParams.page = page
|
|
this.pageParams.page = page
|
|
|
this.pageParams.filter.brandid = this.brandid
|
|
this.pageParams.filter.brandid = this.brandid
|
|
|
this.pageParams.filter.propertyJSON = this.propertyJSON
|
|
this.pageParams.filter.propertyJSON = this.propertyJSON
|
|
|
this.pageParams.filter.kindid = this.$route.params.id
|
|
this.pageParams.filter.kindid = this.$route.params.id
|
|
|
- console.log(this.pageParams)
|
|
|
|
|
this.pageCmpGoods(this.pageParams)
|
|
this.pageCmpGoods(this.pageParams)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|