|
@@ -328,7 +328,13 @@ export default {
|
|
|
},
|
|
|
// 创建时间 change
|
|
|
dateChange (date) {
|
|
|
- this.queryParam.time = date
|
|
|
+ if (date.length) {
|
|
|
+ if (date[0] == '' && date[1] == '') {
|
|
|
+ this.resetSearchForm()
|
|
|
+ } else {
|
|
|
+ this.queryParam.time = date
|
|
|
+ }
|
|
|
+ }
|
|
|
this.queryParam.beginDate = date[0]
|
|
|
this.queryParam.endDate = date[1]
|
|
|
},
|
|
@@ -337,7 +343,6 @@ export default {
|
|
|
},
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
- this.$refs.rangeDate.resetDate()
|
|
|
this.queryParam.time = []
|
|
|
this.queryParam.beginDate = ''
|
|
|
this.queryParam.endDate = ''
|
|
@@ -349,6 +354,7 @@ export default {
|
|
|
'subareaSn': undefined,
|
|
|
'dealerLevel': undefined
|
|
|
}
|
|
|
+ this.$refs.rangeDate.resetDate()
|
|
|
this.$refs.custList.resetForm()
|
|
|
this.$refs.ruleForm.resetFields()
|
|
|
this.$refs.table.clearTable()
|