From 25f8fa073ba83d8b51479fcba2f6421379b1cefa Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期五, 11 四月 2025 18:12:48 +0800 Subject: [PATCH] 解决 el-table 无限变宽的问题 --- src/views/ecg/callingscreen/roomscreen.vue | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/ecg/callingscreen/roomscreen.vue b/src/views/ecg/callingscreen/roomscreen.vue index aa10eac..2498b97 100644 --- a/src/views/ecg/callingscreen/roomscreen.vue +++ b/src/views/ecg/callingscreen/roomscreen.vue @@ -1,16 +1,14 @@ <script setup lang="ts"> -import {RoomBedVO, RoomProfileVO} from "@/api/ecg/doctor"; +import {RoomProfileVO} from "@/api/ecg/doctor"; import {RoomApi} from "@/api/ecg/room"; import {ScreenQueueVO, ScreenApi} from "@/api/ecg/screen"; import {CallApi, CallVO} from "@/api/ecg/call"; import {queueStatusConvert} from "../../../utils/statusFormatter"; -import {useCheckTypeStore} from "@/store/modules/checkType"; +import {getCheckTypeName, getCheckTypeSeqPrefix} from "../../../utils/checkTypeFormatter"; defineOptions({ name: 'roomscreen' }) let roomId = ref<number>(0) - -const checkTypeStore = useCheckTypeStore() const checkRelatedPatientList = ref<ScreenQueueVO[]>([]) const installRelatedPatientList = ref<ScreenQueueVO[]>([]) @@ -78,9 +76,10 @@ return; curSpeakPat = await CallApi.getNextInstallCall() - if (curSpeakPat !== null) { - speak("璇枫��" + curSpeakPat.patName + "鍒�" + curSpeakPat.roomName + "瑁呮満"); - } + if (curSpeakPat == null) + return; + + speak("璇枫��" + curSpeakPat.patName + "鍒�" + curSpeakPat.roomName + "瑁呮満"); } const speak = (msg) => { @@ -106,7 +105,7 @@ <template> <el-container style="height: 100%;"> <el-header style="font-size: 25px"> - {{ roomProfile?.roomName||'-' }} + {{ roomProfile?.roomName||'-' }} {{roomProfile?.callingScreenType}} <el-input-number v-model="roomId" @change="getRoomByIp" /> </el-header> <el-main> @@ -123,7 +122,7 @@ label="棰勭害搴忓彿" width="60px"> <template #default="scope"> - <span style="display:inline-block; width:60px;">{{checkTypeStore.getCheckTypeSeqPrefix(scope.row.bookCheckType)}}{{scope.row.bookSeqNum}} </span> + <span style="display:inline-block; width:60px;">{{getCheckTypeSeqPrefix(scope.row.bookCheckType)}}{{scope.row.bookSeqNum}} </span> </template> </el-table-column> <el-table-column @@ -139,7 +138,7 @@ label="妫�鏌ラ」鐩�" width="80px"> <template #default="scope"> - <span style="display:inline-block; width:80px;">{{scope.row.bookCheckType && checkTypeStore.getCheckTypeName(scope.row.bookCheckType)}} </span> + <span style="display:inline-block; width:80px;">{{scope.row.bookCheckType && getCheckTypeName(scope.row.bookCheckType)}} </span> </template> </el-table-column> <el-table-column label="鐘舵��" align="center" width="200px"> @@ -162,7 +161,7 @@ label="棰勭害搴忓彿" width="60px"> <template #default="scope"> - <span style="display:inline-block; width:60px;">{{checkTypeStore.getCheckTypeSeqPrefix(scope.row.bookCheckType)}}{{scope.row.bookSeqNum}} </span> + <span style="display:inline-block; width:60px;">{{getCheckTypeSeqPrefix(scope.row.bookCheckType)}}{{scope.row.bookSeqNum}} </span> </template> </el-table-column> <el-table-column @@ -178,7 +177,7 @@ label="妫�鏌ラ」鐩�" width="80px"> <template #default="scope"> - <span style="display:inline-block; width:80px;">{{scope.row.bookCheckType && checkTypeStore.getCheckTypeName(scope.row.bookCheckType)}} </span> + <span style="display:inline-block; width:80px;">{{scope.row.bookCheckType && getCheckTypeName(scope.row.bookCheckType)}} </span> </template> </el-table-column> <el-table-column label="鐘舵��" align="center" width="200px"> @@ -242,6 +241,7 @@ flex: 1; border: 1px solid #ccc; padding: 10px; + min-width: 0; } </style> -- Gitblit v1.9.3