fix the bug no react to room change

This commit is contained in:
David 2019-05-26 14:44:10 +08:00
parent 8bf18c39fd
commit 8754e62dd4
1 changed files with 8 additions and 1 deletions

View File

@ -10,7 +10,8 @@
label="房间"
v-bind="layout">
<a-select
v-model="form.room">
v-model="form.room"
@change="handleRoomChange">
<a-select-option v-for="item in roomList" :key="item.id">{{item.name}}</a-select-option>
</a-select>
</a-form-item>
@ -209,6 +210,9 @@
this.$notification.error({ message: '错误', description: '请选择预约人', key: 'ERROR' })
}
},
handleRoomChange (room) {
this.getData()
},
handleDateChange (date) {
this.getData()
},
@ -261,6 +265,9 @@
if (selectedHour === this.form.startTime.hour()) {
ret.push(0)
}
if (selectedHour === this.setting.end_time.hour()) {
ret.push(30)
}
return ret
},
handleClick (item) {