绑定undefined即可
<a-date-picker v-model="queryParam.ENDTIME" style="width: 100%" placeholder="结束时间"/>
清空部分( this.queryParam.ENDTIME = undefined)
queryValue() {
if (this.queryParam.BEGINTIME != '' && this.queryParam.ENDTIME != '') {
if (this.queryParam.BEGINTIME > this.queryParam.ENDTIME) {
this.alertWarnMsg('提示', '结束时间不得小于开始时间!')
//清空结束时间
this.queryParam.ENDTIME = undefined
return
}
}