|
@@ -110,18 +110,29 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
changeSubmitInfo (type) {
|
|
|
+ this.filters.searchbool = 1
|
|
|
if (type) {
|
|
|
- this.filters.searchbool = 1
|
|
|
const getSelected = this.$refs.businessScopeSelector.getState()
|
|
|
this.changeBusiness(getSelected)
|
|
|
this.$refs.pushList.doQuery(this.filters)
|
|
|
} else {
|
|
|
- this.filters = Object.assign({}, this.$options.data.bind(this)().filters)
|
|
|
+ // this.filters = Object.assign({}, this.$options.data.bind(this)().filters)
|
|
|
this.filters.area_code = this.subArea
|
|
|
- this.$refs.areaSelector.setCitySelected()
|
|
|
- this.$refs.businessScopeSelector.setState()
|
|
|
- this.changeBusiness([])
|
|
|
- // this.recoverCreate()
|
|
|
+ this.filters.business_scope = []
|
|
|
+ this.filters.business = {}
|
|
|
+ this.filters.company_name = ''
|
|
|
+ this.filters.brand = ''
|
|
|
+ this.filters.product_model = ''
|
|
|
+ this.filters.productList = [
|
|
|
+ {
|
|
|
+ value: ''
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ try {
|
|
|
+ this.$refs.areaSelector.setCitySelected()
|
|
|
+ this.$refs.businessScopeSelector.setState()
|
|
|
+ this.$refs.pushList.doQuery()
|
|
|
+ } catch (error) {}
|
|
|
}
|
|
|
},
|
|
|
addProduct () {
|
|
@@ -132,10 +143,6 @@ export default {
|
|
|
delProduct (i) {
|
|
|
this.filters.productList.splice(i, 1)
|
|
|
},
|
|
|
- // recoverCreate () {
|
|
|
- // this.filters.searchbool = 1
|
|
|
- // this.$refs.pushList.doQuery(this.filters)
|
|
|
- // },
|
|
|
onCloseDrawer (data) {
|
|
|
this.showDrawer = data
|
|
|
},
|