<el-date-picker
v-model='addTime'
type='daterange'
range-separator='~'
start-placeholder='开始日期'
end-placeholder='结束日期'
title='时间范围'
value-format='yyyy-MM-dd'
>
</el-date-picker>
data: function () {
return {
addTime: [],
}
}
watch: {
addTime (vlaue) {
console.log('day值:', vlaue, this.addTime);
if (this.addTime != null) {
this.addTime[0] += ' 00:00:00'
this.addTime[1] += ' 23:59:59'
} else {
// this.addTime = ''
}
console.log('day值:', this.addTime, this.resolve);
},
},
elementui 日期选择器, 再 添加时间段, 特别是第二天的全天时间段
最新推荐文章于 2023-08-25 11:37:21 发布