|
|
@ -152,9 +152,14 @@ export default { |
|
|
|
}, |
|
|
|
// 时间段控件取值变化事件-清空一个其他都清空
|
|
|
|
changeTime (dateValue) { |
|
|
|
var startTimeIsNull = this.dataForm.startTime === '' || this.dataForm.startTime === 'null' || this.dataForm.startTime === null |
|
|
|
var endTimeIsNull = this.dataForm.endTime === '' || this.dataForm.endTime === 'null' || this.dataForm.endTime === null |
|
|
|
if (dateValue === null || dateValue === '' || dateValue === 'null') { |
|
|
|
this.dataForm.startTime = '' |
|
|
|
this.dataForm.endTime = '' |
|
|
|
} else if (startTimeIsNull || endTimeIsNull) { |
|
|
|
this.dataForm.startTime = dateValue |
|
|
|
this.dataForm.endTime = dateValue |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|