| | |
| | | import Stomp from 'stompjs' |
| | | import os from 'os' |
| | | import { ipcRenderer } from 'electron' |
| | | let stompClient: Stomp.Client | null=null |
| | | |
| | | import { confingInfoStore } from '@/stores/StoresConfing' |
| | |
| | | } |
| | | 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, |
| | |
| | | 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) |
| | |
| | | // 创建客户端链接 |
| | | 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') |