From 02cda108e3d49036fbfd628458e84ca9c360d257 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 10 六月 2025 10:56:50 +0800
Subject: [PATCH] 优化细节

---
 src/samples/sockteStomp.ts |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/samples/sockteStomp.ts b/src/samples/sockteStomp.ts
index d85e949..2320f04 100644
--- a/src/samples/sockteStomp.ts
+++ b/src/samples/sockteStomp.ts
@@ -1,6 +1,5 @@
 import Stomp from 'stompjs'
 import os from 'os'
-import { ipcRenderer } from 'electron'
 let stompClient: Stomp.Client | null=null
 
 import { confingInfoStore } from '@/stores/StoresConfing'
@@ -79,7 +78,7 @@
 }
 const writePatient=(resultInfo:any)=>{
     // 给一个时间变化
-    const da=new Date().toTimeString()  
+    const da=new Date()
     console.log(da)
     const info={
         id:resultInfo.patientInfo===null?0:resultInfo.patientInfo.id,
@@ -95,6 +94,7 @@
         isScheduled:resultInfo.isScheduled,
         isAfterMed:resultInfo.isAfterMed,
         deviceNo:resultInfo.deviceNo,
+        设备分区名称:resultInfo.设备分区名称,
         preWeight:resultInfo.preWeight,
         // s上次体重
         lastTimeAfterWeight:resultInfo.lastTimeAfterWeight,
@@ -103,7 +103,9 @@
         txq:resultInfo.txq,
         medMethod:resultInfo.medMethod,
         glq:resultInfo.glq,
-        preBP:resultInfo.preBP
+        preBP:resultInfo.preBP,
+        nextRecordDate:resultInfo.nextRecordDate,
+        actuallyClliang:resultInfo.actuallyClliang
     }
     // 写入vuex里
     patientInfoStore().setpatientInfo(info)
@@ -170,7 +172,7 @@
 // 创建客户端链接
 const creatorClient=(configObj:any)=>{
     config=configObj
-    devices=configObj.deviceList
+    // devices=configObj.deviceList
     clientCode=configObj.clientCode
     console.log(devices,'设备列表','chong')
     const socket = new WebSocket('ws://hemobs.icoldchain.cn/broadcast')

--
Gitblit v1.8.0