| | |
| | | <RoomBedSelect :title="key" :bedList="value" :curBed="curSel" @haveSeat="haveSeat" @leaveSeat="leaveSeat"/> |
| | | </div> |
| | | </div> |
| | | <el-button @click="confirmCurSel">确认</el-button> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | }); |
| | | } |
| | | |
| | | 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() |