|
|
@@ -105,11 +105,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- search (obj) {
|
|
|
+ search (obj, page) {
|
|
|
this.pageParams.type = this.storeType === 'factory' ? 'ORIGINAL_FACTORY' : 'AGENCY-DISTRIBUTION'
|
|
|
this.pageParams.page = 1
|
|
|
this.pageParams.keyword = obj.keyword === '' ? null : obj.keyword
|
|
|
this.pageParams.field = obj.type && obj.type !== 'store' ? obj.type : ''
|
|
|
+ this.keyword = this.pageParams.keyword
|
|
|
this.pageCommodity(this.pageParams)
|
|
|
},
|
|
|
showLittleDescription (description) {
|
|
|
@@ -157,6 +158,8 @@ export default {
|
|
|
} else {
|
|
|
this.storeTypes = ''
|
|
|
}
|
|
|
+ this.keyword = ''
|
|
|
+ this.pageParams.keyword = ''
|
|
|
localStorage.setItem('pageChange', 'true')
|
|
|
this.handleCurrentChange(1)
|
|
|
// if (to.fullPath)
|