diff --git a/src/views/ofm/booking_form.vue b/src/views/ofm/booking_form.vue index c03b0a8e..e54e0268 100644 --- a/src/views/ofm/booking_form.vue +++ b/src/views/ofm/booking_form.vue @@ -13,7 +13,7 @@ - + { + if(item.id == that.form.mroom){ + that.mroomName = item.name; + that.bookingTitle = item.name+"预定"; + } + }) + }, selectTime(index){ let that = this; that.form.slots = []; @@ -221,24 +250,20 @@ export default { that.isSaving = false; } }, - handleEidt(row) { + handleEidt(id) { let that = this; - that.type = "edit"; - that.editId = row.id; - that.$API.ofm.mroomslot.list.req({booking:row.id,page:0}).then(res=>{ - console.log('mroomslotres',res); + that.$API.ofm.mroomslot.list.req({booking:id,page:0}).then(res=>{ res.forEach(item=>{ that.timesList[item.slot].isSelect = true; }) }) - that.limitedVisible = true; - that.form = Object.assign({}, row); - } }, //搜索 handleQuery() { this.$refs.table.queryData(this.query); }, + }, + };