eight
2024-08-28 3b8457c9c63f0996d8dae63ac988f976da956d38
src/views/ecg/room/RoomLoginSelect.vue
@@ -5,6 +5,7 @@
        <RoomBedSelect :title="key" :bedList="value" :curBed="curSel" @haveSeat="haveSeat" @leaveSeat="leaveSeat"/>
      </div>
    </div>
    <el-button @click="confirmCurSel">确认</el-button>
  </div>
</template>
@@ -180,6 +181,24 @@
  });
}
const confirmCurSel = () => {
  if (curSel.value.docId === null ) {
    ElMessage({
      message: '请先选择工作的位置!',
      type: 'info',
      duration: 3000 // 自动关闭时间,默认为3000ms
    });
    return
  }
  if (isStringEmpty(route.redirectedFrom?.fullPath))
    push({ path: "/"})
  else if(route.redirectedFrom?.fullPath === "/roomselect" )
    push({ path: "/"})
  else
    push({ path: route.redirectedFrom?.fullPath})
}
/** 初始化 **/
onMounted(() => {
  getList()