| | |
| | | getList() |
| | | }) |
| | | |
| | | onActivated(() => { |
| | | getList() |
| | | }) |
| | | |
| | | const resetPage = () => { |
| | | getList() |
| | | } |
| | |
| | | resetCurSel() |
| | | |
| | | const data = await RoomApi.getOpeningBedMap() |
| | | console.info(data) |
| | | bedMap.value = data; |
| | | |
| | | isEmptyOpeningBed.value = true |
| | |
| | | const roomVOArray = data[key] as RoomVO[]; |
| | | roomVOArray.forEach((roomVO) => { |
| | | if (roomVO.docId === curUser.id) { |
| | | curSel.value = roomVO |
| | | return |
| | | curSel.value = roomVO |
| | | userStore.setRoomInfoAction(curSel.value) |
| | | return |
| | | } |
| | | } ) |
| | | } |
| | |
| | | return |
| | | } |
| | | } |
| | | curSel.value.docId = null |
| | | curSel.value.docName = null |
| | | |
| | | const tempRoomVO = cloneDeep(newRoomVO) |
| | | tempRoomVO.docId = curUser.id |
| | |
| | | return |
| | | } |
| | | |
| | | newRoomVO.docId = curUser.id |
| | | newRoomVO.docName = curUser.nickname |
| | | curSel.value = newRoomVO |
| | | userStore.setRoomInfoAction(curSel.value) |
| | | getList() |
| | | } |
| | | |
| | | if (isStringEmpty(route.redirectedFrom?.fullPath)) |
| | |
| | | }); |
| | | return |
| | | } |
| | | |
| | | curSel.value.docId = null |
| | | curSel.value.docName = null |
| | | } |
| | | |
| | | userStore.clearRoomInfoAction() |
| | | getList() |
| | | } |
| | | |
| | | const haveSeat = async (newRoomVO: RoomVO) => { |
| | |
| | | return |
| | | } |
| | | |
| | | userStore.setRoomInfoAction(curSel.value) |
| | | if (isStringEmpty(route.redirectedFrom?.fullPath)) |
| | | push({ path: "/"}) |
| | | else if(route.redirectedFrom?.fullPath === "/roomselect" ) |