|
@@ -128,6 +128,7 @@ export default {
|
|
|
visible (newValue, oldValue) {
|
|
|
if (!newValue) {
|
|
|
this.$emit('close')
|
|
|
+ this.resetData()
|
|
|
}else{
|
|
|
this.pageInit()
|
|
|
}
|
|
@@ -235,11 +236,8 @@ export default {
|
|
|
this.$refs.table.refresh(true)
|
|
|
}
|
|
|
},
|
|
|
- resetSearchForm () {
|
|
|
- if(this.flag){
|
|
|
- this.hasData()
|
|
|
- }else{
|
|
|
- this.queryParam = {
|
|
|
+ resetData(){
|
|
|
+ this.queryParam = {
|
|
|
dealer:{
|
|
|
nameLike: '',
|
|
|
dealerType: null,
|
|
@@ -250,7 +248,13 @@ export default {
|
|
|
districtSn: undefined
|
|
|
}
|
|
|
}
|
|
|
- this.$refs.areaList.clearData()
|
|
|
+ this.$refs.areaList.clearData()
|
|
|
+ },
|
|
|
+ resetSearchForm () {
|
|
|
+ if(this.flag){
|
|
|
+ this.hasData()
|
|
|
+ }else{
|
|
|
+ this.resetData()
|
|
|
this.$refs.table.refresh(true)
|
|
|
}
|
|
|
},
|