eight
2024-11-25 c6421e15ecc9df14dbb2f29ab76a73ce7aa7f603
src/views/ecg/callingscreen/bigscreen.vue
@@ -9,9 +9,6 @@
const displayColInfo = ref({})
const list = ref({});
// const listReady = ref<ScreenQueueVO[]>([]) // 列表的数据
// const listWaiting = ref<ScreenQueueVO[]>([]) // 列表的数据
// const listPassed = ref<ScreenQueueVO[]>([]) //
let curSpeakPat : CallVO | null = null;
@@ -22,11 +19,7 @@
const getList = async () => {
  const data = await ScreenApi.getBigScreenData()
  console.info(data)
  list.value = data;
  // listReady.value = data[1]
  // listWaiting.value = data[2]
  // listPassed.value = data[3]
}
const startScrolling = () => {
@@ -52,8 +45,8 @@
const initiateSpeak = async () => {
  curSpeakPat = await CallApi.getNextCall()
  console.info( curSpeakPat )
  if (curSpeakPat !== null) {
    console.info( curSpeakPat )
    speak("请、" + curSpeakPat.patName + "到" + curSpeakPat.roomName + "就诊");
  }
}
@@ -91,9 +84,9 @@
// const listPassed = ref<ScreenQueueVO[]>([]) //
const getItemCssClass = (item: ScreenQueueVO) => {
  if (item.status === 5)
  if (item.status === 5)  //已过号
    return "warning-row";
  else if (item.status === 7)
  else if (item.status === 7)  //已过号-安装
    return "warning-row";
  else
    return "";
@@ -103,11 +96,11 @@
<template>
  <div style="height: 100%; display:flex; flex-direction: column">
    <div style="display:flex; justify-content: center; align-items: center; background: var(--el-color-primary-light-7);">
    <div style="display:flex; justify-content: center; align-items: center; background: var(--el-color-primary-light-7); font-size: 22px; ">
      <img height="40px" src="@/assets/imgs/jinhua.png"/>
      金华人民医院
    </div>
    <div style="display:flex; justify-content:space-around; align-items: flex-start; border: solid 2px var(--el-color-primary-light-7); font-size: 25px; ">
    <div style="display:flex; justify-content:space-around; align-items: flex-start; border: solid 2px var(--el-color-primary-light-7); font-size: 23px; ">
      <div v-for="[disColId, disNameList] of Object.entries(displayColInfo)" :key="disColId" style="width: 300px; height: 100%; border-left: solid 2px var(--el-color-primary-light-7) ">
        <!--{{disColId}}-->
        <div v-for="(dispName, dispName_index) in disNameList" :key="dispName_index">