From 5d26c5fee5a82fe8cb6046d6cd65a5a406f7b876 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 26 Sep 2025 16:30:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=A2=84=E5=AE=9A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ofm/booking_form.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/ofm/booking_form.vue b/src/views/ofm/booking_form.vue index e54e0268..1c40e1ee 100644 --- a/src/views/ofm/booking_form.vue +++ b/src/views/ofm/booking_form.vue @@ -36,7 +36,7 @@ - + { that.setData(res); if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) { - that.mode = "edit"; + that.type = "edit"; }else{ - that.mode = "show"; + that.type = "show"; } that.$nextTick(()=>{ that.$refs.ticketd_b_start.init(); @@ -227,10 +226,10 @@ export default { }, async submit_b_func() { let that = this; - if(that.mode == "add") { + if(that.type == "add") { let res = await that.$API.ofm.mroombooking.create.req(that.form); that.form.id = res.id; - } else if (that.mode == "edit") { + } else if (that.type == "edit") { await that.$API.ofm.mroombooking.update.req(that.form.id, that.form); } },