| | |
| | | import { RoomVO } from '@/api/ecg/room' |
| | | import {PropType} from "vue"; |
| | | import {useUserStore} from "@/store/modules/user"; |
| | | import {DICT_TYPE, getIntDictOptions} from "@/utils/dict"; |
| | | const emit = defineEmits(['event-haveseat', 'event-leaveseat']) |
| | | |
| | | defineComponent({ |
| | |
| | | emit('event-leaveseat', curItem) |
| | | } |
| | | |
| | | let mapCheckType: Map<number, string> = new Map(); |
| | | const getCheckTypeList = () => { |
| | | const data = getIntDictOptions(DICT_TYPE.ECG_CHECK_TYPE) |
| | | console.info( data ) |
| | | data.forEach((checkTypeItem) => { |
| | | mapCheckType.set(checkTypeItem.value, checkTypeItem.label) |
| | | }) |
| | | } |
| | | |
| | | /** 初始化 **/ |
| | | onMounted(() => { |
| | | //console.info(props.bedList) |
| | | getCheckTypeList() |
| | | }) |
| | | |
| | | </script> |
| | |
| | | <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"> |
| | | {{mapCheckType.get(checkType)}} |
| | | </div> |
| | | <div> |
| | | {{bedItem.opType === 1?"领用":""}} |
| | | {{bedItem.opType === 2?"安装":""}} |
| | | </div> |
| | | |
| | | <img |
| | | v-if="bedItem.docId === null" |
| | | src="@/assets/room/open.jpg" |
| | |
| | | <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: 190px; |
| | | /*height: 260px;*/ |
| | | } |
| | | |
| | | </style> |