eight
2024-09-02 17046362ab95b09b659c03892990d8c2b0f862d1
src/views/ecg/room/RoomLoginSelect.vue
@@ -47,6 +47,10 @@
    getList()
})
onActivated(() => {
    getList()
})
const resetPage = () => {
    getList()
}
@@ -56,7 +60,6 @@
  resetCurSel()
  const data = await RoomApi.getOpeningBedMap()
  console.info(data)
  bedMap.value = data;
  isEmptyOpeningBed.value = true
@@ -65,8 +68,9 @@
      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
          }
      } )
  }
@@ -86,8 +90,6 @@
        return
      }
    }
    curSel.value.docId = null
    curSel.value.docName = null
    const tempRoomVO = cloneDeep(newRoomVO)
    tempRoomVO.docId = curUser.id
@@ -102,10 +104,7 @@
      return
    }
    newRoomVO.docId = curUser.id
    newRoomVO.docName = curUser.nickname
    curSel.value = newRoomVO
    userStore.setRoomInfoAction(curSel.value)
    getList()
  }
  if (isStringEmpty(route.redirectedFrom?.fullPath))
@@ -127,12 +126,10 @@
          });
          return
      }
    curSel.value.docId = null
    curSel.value.docName = null
  }
  userStore.clearRoomInfoAction()
  getList()
}
const haveSeat = async (newRoomVO: RoomVO) => {
@@ -179,7 +176,6 @@
    return
  }
  userStore.setRoomInfoAction(curSel.value)
  if (isStringEmpty(route.redirectedFrom?.fullPath))
    push({ path: "/"})
  else if(route.redirectedFrom?.fullPath === "/roomselect" )