mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 04:54:58 +08:00
add: 一期代码
This commit is contained in:
parent
d90d5e4eef
commit
55320a8dd3
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -7,7 +7,7 @@ import ElementPlus, {ElDialog} from 'element-plus';
|
|||
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||||
import TableAbility from '@/components/table-ability.vue'
|
||||
|
||||
|
||||
import './assets/font/all.css'
|
||||
import 'element-plus/dist/index.css';
|
||||
import './assets/css/global.scss';
|
||||
import './assets/font/iconfont.css';
|
||||
|
|
|
@ -4,7 +4,7 @@ import {ElMessage} from "element-plus";
|
|||
|
||||
// 本地调试版本:
|
||||
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 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()
|
||||
|
||||
// 服务器部署版本
|
||||
|
@ -242,7 +242,7 @@ export const useRemoteWsStore = defineStore("remoteWs", {
|
|||
patientName: name,
|
||||
idNum: id,
|
||||
date: date,
|
||||
msg,
|
||||
msg: msg,
|
||||
msgType: "msg"
|
||||
}
|
||||
patient.chatWS.send(JSON.stringify(params))
|
||||
|
@ -256,6 +256,30 @@ export const useRemoteWsStore = defineStore("remoteWs", {
|
|||
})
|
||||
}
|
||||
},
|
||||
|
||||
sendAudio(name: string, id: string, date: string, audio: any, index: number, cb: any) {
|
||||
const patient: any = this.patient[name + id + date + index]
|
||||
if (patient) {
|
||||
const params = {
|
||||
patientName: name,
|
||||
idNum: id,
|
||||
date: date,
|
||||
content: audio,
|
||||
msgType: "audio"
|
||||
}
|
||||
patient.chatWS.send(JSON.stringify(params))
|
||||
cb({
|
||||
status: 0
|
||||
})
|
||||
} else {
|
||||
cb({
|
||||
status: 1,
|
||||
msg: "已断开连接"
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
disconnectVital(name: string, id: string, date: string, index: number) {
|
||||
const patient: any = this.patient[name + id + date + index]
|
||||
if (patient && patient.vitalWS) {
|
||||
|
@ -289,7 +313,7 @@ export const useRemoteWsStore = defineStore("remoteWs", {
|
|||
patient.chatWS.onmessage = (e: any) => {
|
||||
if (e && e.data) {
|
||||
const data = JSON.parse(e.data);
|
||||
if (data.msgType == "msg") {
|
||||
if (data.msgType == "msg" || data.msgType == "audio") {
|
||||
cb(e)
|
||||
} else {
|
||||
patient.chatWS.send(JSON.stringify({msgType: "heartbeat"}))
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -186,8 +186,9 @@ function getData() {
|
|||
remoteWsStore.subscribeVital(remoteItem.value.patient, remoteItem.value.patientId, remoteItem.value.date, currentIndex, (res: any) => {
|
||||
if (res && res.data) {
|
||||
const data = JSON.parse(res.data);
|
||||
if (data.vitalSignsList && data.vitalSignsList.length > 0) {
|
||||
Object.assign(patientInfo.value, data.vitalSignsList[0]);
|
||||
// if (data.vitalSignsList && data.vitalSignsList.length > 0) {
|
||||
if (data.vitalSignsList) {
|
||||
Object.assign(patientInfo.value, data.vitalSignsList);
|
||||
patientInfo.value.state = (patientInfo.value.BIS_except || patientInfo.value.SBP_except ||
|
||||
patientInfo.value.DBP_except || patientInfo.value.HR_except);
|
||||
setLog(patientInfo.value)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user