| | |
| | | const startScrolling = () => { |
| | | setInterval(() => { |
| | | getList(); |
| | | if ( curSpeakPat === null ) { |
| | | if ( curSpeakPat == null ) { |
| | | initiateSpeak() |
| | | } |
| | | }, 5000); // 每X秒滚动一次 |
| | |
| | | |
| | | const initiateSpeak = async () => { |
| | | curSpeakPat = await CallApi.getNextCall() |
| | | if (curSpeakPat !== null) { |
| | | console.info( curSpeakPat ) |
| | | //console.info( "initiateSpeak", curSpeakPat, curSpeakPat?.called ) |
| | | if (curSpeakPat != null && curSpeakPat.called === 0) { |
| | | speak("请、" + curSpeakPat.patName + "到" + curSpeakPat.roomName + "就诊"); |
| | | } |
| | | } |
| | |
| | | </script> |
| | | |
| | | <template> |
| | | <div style="height: 100%; display:flex; flex-direction: column; padding-left: 5px; padding-right: 5px"> |
| | | <div style="height: 100%; display:flex; flex-direction: column; height: 100vh; overflow-y: auto; padding-left: 5px; padding-right: 5px"> |
| | | <div style="display:flex; justify-content: center; align-items: center; background: var(--el-color-primary-light-7); font-size: 22px; "> |
| | | <img height="40px" src="@/assets/imgs/jinhua.png"/> |
| | | 金华人民医院 |