wip:调整轮博时间

main
@0Melon0 12 months ago
parent c09aafef8a
commit 370762174a

@ -104,7 +104,7 @@ export default {
patientList: [], patientList: [],
currentDateTime: dayjs().format('YYYY-MM-DD HH:mm dddd'), currentDateTime: dayjs().format('YYYY-MM-DD HH:mm dddd'),
dateTimer: null, dateTimer: null,
carouselCountDown: 3, carouselCountDown: 10,
carouselTimer: null, carouselTimer: null,
activeIndex: 0, activeIndex: 0,
getDataTimer: null, getDataTimer: null,
@ -155,7 +155,7 @@ export default {
this.carouselCountDown -= 1; this.carouselCountDown -= 1;
if (this.carouselCountDown == 0) { if (this.carouselCountDown == 0) {
this.$refs.carousel.next(); this.$refs.carousel.next();
this.carouselCountDown = 3; this.carouselCountDown = 10;
} }
}, 1000); }, 1000);
}); });

@ -86,7 +86,7 @@ export default {
patientList: [], patientList: [],
currentDateTime: dayjs().format('YYYY-MM-DD HH:mm dddd'), currentDateTime: dayjs().format('YYYY-MM-DD HH:mm dddd'),
dateTimer: null, dateTimer: null,
carouselCountDown: 3, carouselCountDown: 10,
carouselTimer: null, carouselTimer: null,
activeIndex: 0, activeIndex: 0,
getDataTimer: null, getDataTimer: null,
@ -139,7 +139,7 @@ export default {
this.carouselCountDown -= 1; this.carouselCountDown -= 1;
if (this.carouselCountDown == 0) { if (this.carouselCountDown == 0) {
this.$refs.carousel.next(); this.$refs.carousel.next();
this.carouselCountDown = 3; this.carouselCountDown = 10;
} }
}, 1000); }, 1000);
}); });
@ -224,7 +224,7 @@ export default {
Notification({ Notification({
title: '呼叫患者', title: '呼叫患者',
message: h('i', { style: 'color: teal;font-size:24px' }, newVal), message: h('i', { style: 'color: teal;font-size:24px' }, newVal),
duration: 10000, duration: 12000,
}); });
if ('speechSynthesis' in window) { if ('speechSynthesis' in window) {
const utterance = new SpeechSynthesisUtterance([newVal, newVal, newVal].join('')); const utterance = new SpeechSynthesisUtterance([newVal, newVal, newVal].join(''));

Loading…
Cancel
Save