fix: mroombooking在初始状态编辑时slot问题

This commit is contained in:
caoqianming 2025-12-01 13:49:03 +08:00
parent c1c5968875
commit 15d3e64f02
1 changed files with 5 additions and 1 deletions

View File

@ -222,7 +222,11 @@ export default {
}) })
that.$API.ofm.mroomslot.list.req(form).then(res=>{ that.$API.ofm.mroomslot.list.req(form).then(res=>{
res.forEach(item=>{ res.forEach(item=>{
if (item.booking == that.form.id) {
that.timesList[item.slot].isSelect = true;
}else{
that.timesList[item.slot].sloted = true; that.timesList[item.slot].sloted = true;
}
}) })
}) })
}, },