feat: 呼叫家属功能

main
shengwen.chen 1 month ago
parent 1ad983b6e3
commit 4144b56141

@ -1,42 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>unicode-bidi 示例</title>
<style>
.normal {
unicode-bidi: normal;
direction: ltr;
}
.embed {
unicode-bidi: embed;
direction: rtl;
}
.isolate {
unicode-bidi: isolate;
direction: rtl;
}
.bidi-override {
unicode-bidi: bidi-override;
direction: rtl;
}
.isolate-override {
unicode-bidi: isolate-override;
direction: rtl;
}
.plaintext {
unicode-bidi: plaintext;
direction: rtl;
}
</style>
</head>
<body>
<p class="normal">normal: This is an English text with عربى text embedded.</p>
<p class="embed">embed: This is an English text with عربى text embedded.</p>
<p class="isolate">isolate: This is an English text with عربى text embedded.</p>
<p class="bidi-override">bidi-override: This is an English text with عربى text embedded.</p>
<p class="isolate-override">isolate-override: This is an English text with عربى text embedded.</p>
<p class="plaintext">plaintext: This is an English text with عربى text embedded.</p>
</body>
</html>

@ -130,7 +130,7 @@ export default {
queryCondition: [], queryCondition: [],
logoUrl: "", logoUrl: "",
logoUrlBackup: "", logoUrlBackup: "",
groupIndex: 0, groupIndex: -1,
roomNameList: [], roomNameList: [],
}; };
}, },
@ -233,6 +233,7 @@ export default {
try { try {
if (frame.body) { if (frame.body) {
let data = JSON.parse(frame.body); let data = JSON.parse(frame.body);
data['msg'] = JSON.parse(data['msg']);
if (this.groupIndex >= 0) { if (this.groupIndex >= 0) {
if (this.roomNameList[this.groupIndex]) { if (this.roomNameList[this.groupIndex]) {
if (!this.roomNameList[this.groupIndex].includes(data['msg']['patientRoomName'])) { if (!this.roomNameList[this.groupIndex].includes(data['msg']['patientRoomName'])) {
@ -251,7 +252,9 @@ export default {
} }
}, },
onFailed: function (frame) { onFailed: function (frame) {
console.warn('MQ Failed: ' + frame); console.group("MQ Failed:")
console.log(frame);
console.groupEnd();
setTimeout(() => { setTimeout(() => {
this.client = Stomp.client(MQTT_SERVICE); this.client = Stomp.client(MQTT_SERVICE);
Stomp.over(this.client); Stomp.over(this.client);
@ -264,6 +267,7 @@ export default {
this.popupMag = this.popupMsgList[0].replace(/[,]/g, '').split('#'); this.popupMag = this.popupMsgList[0].replace(/[,]/g, '').split('#');
this.showPopup = true; this.showPopup = true;
this.playNum++; this.playNum++;
if (this.synth) { if (this.synth) {
const utterance = new SpeechSynthesisUtterance(this.popupMsgList[0].replace(/#/g, '')); const utterance = new SpeechSynthesisUtterance(this.popupMsgList[0].replace(/#/g, ''));
utterance.rate = 0.6; utterance.rate = 0.6;
@ -340,9 +344,6 @@ export default {
this.getDataTimer = setInterval(() => { this.getDataTimer = setInterval(() => {
this.onGetPageData(); this.onGetPageData();
}, 35000); }, 35000);
this.popupTimer = setInterval(() => {
this.onPopupPlay();
}, 2000);
window.addEventListener('resize', this.onCalculate); window.addEventListener('resize', this.onCalculate);
this.setRabitMQ(); this.setRabitMQ();
}); });
@ -356,8 +357,14 @@ export default {
this.dateTimer = setInterval(() => { this.dateTimer = setInterval(() => {
this.currentDateTime = dayjs().format('YYYY-MM-DD HH:mm dddd'); this.currentDateTime = dayjs().format('YYYY-MM-DD HH:mm dddd');
}, 10000); }, 10000);
this.popupTimer = setInterval(() => {
this.onPopupPlay();
}, 2000);
// setTimeout(() => {
// this.popupMsgList.push(',,#,');
// this.popupMsgList.push(',,#,');
// this.popupMsgList.push(',,#,');
// }, 1000);
}); });
}, },
components: { components: {

Loading…
Cancel
Save