mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 03:19:36 +08:00
描述:房间选择时间
This commit is contained in:
parent
07c8c8354b
commit
4d3dc283f0
@ -89,6 +89,7 @@
|
||||
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='可入住日期'>
|
||||
<a-date-picker @change='onChange'
|
||||
v-decorator="['availableFrom', {rules: [{required: true, message: '请输入可入住日期'}]}]"
|
||||
:disabled-date='disabledDate'
|
||||
placeholder='可入住日期' />
|
||||
</a-form-item>
|
||||
<a-form-item :labelCol='labelCol' :wrapperCol='wrapperCol' label='装修类型'>
|
||||
@ -214,6 +215,15 @@ export default {
|
||||
this.handleInit()
|
||||
},
|
||||
methods: {
|
||||
disabledDate(current) {
|
||||
console.log('current', current.valueOf())
|
||||
console.log('day', moment().endOf('day'))
|
||||
// Can not select days before today and today
|
||||
let nowDate = new Date()
|
||||
nowDate = nowDate.setDate(nowDate.getDate() - 1)
|
||||
nowDate = new Date(nowDate)
|
||||
return current.valueOf() < nowDate.getTime()
|
||||
},
|
||||
// 获取用户详细信息
|
||||
getUserDetail() {
|
||||
getInfo().then(res => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user