From e8313fda2b542932cc201209be97f2ee438103f4 Mon Sep 17 00:00:00 2001 From: republicline Date: Wed, 16 Jul 2025 13:01:39 +0800 Subject: [PATCH] =?UTF-8?q?1,=20=E8=BF=9C=E7=A8=8B=E6=8E=A7=E5=88=B6,?= =?UTF-8?q?=E5=BC=A0=E5=AE=B6=E6=B8=AF=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/routes.ts | 2 +- src/stores/remote-ws-store.ts | 8 ++++++-- src/views/remote-manage/remote-control.vue | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/router/routes.ts b/src/router/routes.ts index 6683d99..5ecf842 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -48,7 +48,7 @@ export const constantRoute = [ children: [ { path: '/patients-manage/patients-manage', - name: '患者管理', + name: '患者管理111', component: () => import('@/views/patients-manage/patients-manage.vue'), }, { diff --git a/src/stores/remote-ws-store.ts b/src/stores/remote-ws-store.ts index 7a82a5d..f19d6d6 100644 --- a/src/stores/remote-ws-store.ts +++ b/src/stores/remote-ws-store.ts @@ -3,9 +3,13 @@ import {Session} from "@/utils/storage"; import {ElMessage, ElMessageBox} from "element-plus"; // 本地调试版本: -const vitalUrl = "ws://" + window.location.host + "/socket.io/admin/rax/vitalSignsMedicine?token=" + Session.getToken() +// const vitalUrl = "ws://" + window.location.host + "/socket.io/admin/rax/vitalSignsMedicine?token=" + Session.getToken() +// // const medicineUrl = "ws://" + window.location.host + "/socket.io/admin/rax/addMedicine?token=" + Session.getToken() +// const chatUrl = "ws://" + window.location.host + "/socket.io/admin/rax/chatRoom?token=" + Session.getToken() + +const vitalUrl = "/socket.io/admin/rax/vitalSignsMedicine?token=" + Session.getToken() // const medicineUrl = "ws://" + window.location.host + "/socket.io/admin/rax/addMedicine?token=" + Session.getToken() -const chatUrl = "ws://" + window.location.host + "/socket.io/admin/rax/chatRoom?token=" + Session.getToken() +const chatUrl = "/socket.io/admin/rax/chatRoom?token=" + Session.getToken() // 服务器部署版本 diff --git a/src/views/remote-manage/remote-control.vue b/src/views/remote-manage/remote-control.vue index 36bcc67..5494bf5 100644 --- a/src/views/remote-manage/remote-control.vue +++ b/src/views/remote-manage/remote-control.vue @@ -341,7 +341,8 @@ const subscribeVital = () => { const data = JSON.parse(res.data); // 1 2 3 4 if (data.vitalSignsList != null) { - updateMedicineTable(data.aiMedicineList[0], undefined); + // updateMedicineTable(data.aiMedicineList[0], undefined); + updateMedicineTable(data.aiMedicine, undefined); chartDom1.value.updateChartData(data.vitalSignsList); chartDom2.value.updateChartData(data.vitalSignsList); chartDom3.value.updateChartData(data.vitalSignsList);