| | |
| | | import { RoomVO } from '@/api/ecg/room' |
| | | import {PropType} from "vue"; |
| | | import {useUserStore} from "@/store/modules/user"; |
| | | import {DICT_TYPE, getIntDictOptions} from "@/utils/dict"; |
| | | import {useCheckTypeStore} from "@/store/modules/checkType"; |
| | | const emit = defineEmits(['event-haveseat', 'event-leaveseat']) |
| | | |
| | | defineComponent({ |
| | |
| | | } |
| | | }) |
| | | |
| | | const checkTypeStore = useCheckTypeStore(); |
| | | const userStore = useUserStore() |
| | | const curUser = userStore.getUser |
| | | |
| | |
| | | const onLeaveSeatclick = (curItem: RoomVO) => { |
| | | emit('event-leaveseat', curItem) |
| | | } |
| | | |
| | | |
| | | /** 初始化 **/ |
| | | onMounted(() => { |
| | |
| | | <template #header>{{title}}</template> |
| | | <div v-for="(bedItem, index) in bedList" :key="index"> |
| | | <div class="deskwarp"> |
| | | |
| | | <div v-for="(checkType, subIndex) in bedItem.checkTypes" :key="subIndex"> |
| | | {{checkTypeStore.getCheckTypeName(checkType)}} |
| | | </div> |
| | | <div> |
| | | {{bedItem.opType === 1?"领用":""}} |
| | | {{bedItem.opType === 2?"安装":""}} |
| | | </div> |
| | | |
| | | <img |
| | | v-if="bedItem.docId === null" |
| | | src="@/assets/room/desk.png" |
| | | src="@/assets/room/open.jpg" |
| | | style="width: 100%" |
| | | alt="无医生" |
| | | /> |
| | |
| | | <el-button v-if="bedItem.docId === curUser.id" @click = onLeaveSeatclick(bedItem)> |
| | | 离座 |
| | | </el-button> |
| | | <el-divider/> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | /*height: 260px;*/ |
| | | } |
| | | |
| | | </style> |