From 4b50910cddd48697ad9de3be8dc09c4bd81aa2db Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 26 Sep 2025 14:00:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=A2=84=E5=AE=9A=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ofm/booking_form.vue | 53 +++++++++++++++++++++++++--------- src/views/ofm/mroombooking.vue | 50 +++++++++++++++++--------------- 2 files changed, 66 insertions(+), 37 deletions(-) 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); }, + }, + };