| | |
| | | <div>开诊时间:{{ openingPeriod }} {{ monitorInfo.openingFlag }} </div> |
| | | <div>工位概况: {{monitorInfo.queueNum}} {{monitorInfo.activeQueueNum}} {{monitorInfo.priorityQueueNum}} </div> |
| | | <div v-for="(value, key) in monitorInfo.checkTypeBedInfo" :key="key"> |
| | | {{ mapCheckType.get(Number(key)) }} {{ value }} |
| | | {{ checkTypeStore.getCheckTypeName(Number(key)) }} {{ value }} |
| | | </div> |
| | | </el-aside> |
| | | </el-container> |
| | |
| | | import { RoomApi, RoomVO, MonitorInfo } from '@/api/ecg/room' |
| | | import { QueueApi } from '@/api/ecg/queue' |
| | | import { getConfigKey } from '@/api/infra/config' |
| | | import {DICT_TYPE, getIntDictOptions} from "@/utils/dict"; |
| | | import {useCheckTypeStore} from "@/store/modules/checkType"; |
| | | |
| | | defineOptions({ name: 'RoomSetting' }) |
| | | |
| | | const bedMap = ref() // 列表的数据 |
| | | let mapCheckType: Map<number, string> = new Map(); |
| | | |
| | | const openingPeriod = ref<string>('') |
| | | const monitorInfo = ref<MonitorInfo>({ |
| | |
| | | activeQueueNum: 0, |
| | | priorityQueueNum: 0, |
| | | openingFlag: 0, |
| | | checkTypeBedInfo: undefined |
| | | checkTypeBedInfo: {} |
| | | }) |
| | | |
| | | const checkTypeStore = useCheckTypeStore(); |
| | | |
| | | const getOpeningPeriod = async () => { |
| | | const data = await getConfigKey('ecg.openingtime') |
| | |
| | | getMonitorInfo() |
| | | } |
| | | |
| | | const getCheckTypeList = () => { |
| | | const data = getIntDictOptions(DICT_TYPE.ECG_CHECK_TYPE) |
| | | console.info( data ) |
| | | data.forEach((checkTypeItem) => { |
| | | mapCheckType.set(checkTypeItem.value, checkTypeItem.label) |
| | | }) |
| | | } |
| | | |
| | | /** 初始化 **/ |
| | | onMounted(() => { |
| | | getList() |
| | | getCheckTypeList() |
| | | getOpeningPeriod() |
| | | getMonitorInfo() |
| | | }) |