From c8e147509a41dc16e80a4fbc60055a18a4de9318 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 15 八月 2023 09:01:00 +0800
Subject: [PATCH] 34
---
src/samples/sockteStomp.ts | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/src/samples/sockteStomp.ts b/src/samples/sockteStomp.ts
index 34e6db5..63189f3 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'
@@ -87,10 +86,25 @@
name:resultInfo.patientInfo===null?'':resultInfo.patientInfo.patientName,
patientAvatarIcon:resultInfo.patientInfo===null?'':resultInfo.patientInfo.patientAvatarIcon,
deviceCode:resultInfo.deviceCode===null?"":resultInfo.deviceCode,
+ patientGender:resultInfo.patientInfo.patientGender,
hemoCode:resultInfo.hemoCode===null?"":resultInfo.hemoCode,
pureWeight:resultInfo.pureWeight===null?"":resultInfo.pureWeight,
datetime:da,
- isScheduled:resultInfo.isScheduled
+ clothesWeight:resultInfo.clothesWeight===null?0:resultInfo.clothesWeight,
+ isScheduled:resultInfo.isScheduled,
+ isAfterMed:resultInfo.isAfterMed,
+ deviceNo:resultInfo.deviceNo,
+ preWeight:resultInfo.preWeight,
+ // s上次体重
+ lastTimeAfterWeight:resultInfo.lastTimeAfterWeight,
+ // 上次血压
+ lastTimeAfterBP:resultInfo.lastTimeAfterBP,
+ txq:resultInfo.txq,
+ medMethod:resultInfo.medMethod,
+ glq:resultInfo.glq,
+ preBP:resultInfo.preBP,
+ nextRecordDate:resultInfo.nextRecordDate,
+ actuallyClliang:resultInfo.actuallyClliang
}
// 写入vuex里
patientInfoStore().setpatientInfo(info)
@@ -157,7 +171,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