|
@@ -1,79 +1,423 @@
|
1
|
1
|
<template>
|
2
|
|
- <div class="app-container">
|
3
|
|
- <div class="page_lineUp">
|
4
|
|
- <div class="lineUpTitle">
|
5
|
|
- <div>唐山朝阳医院<span>温馨提示:请注意排队叫号,依次叫号就诊上机,谢谢配合</span></div>
|
6
|
|
- <div>2020.8.18 07:22(星期四)</div>
|
7
|
|
- </div>
|
8
|
|
- <div class="lineUpMain">
|
9
|
|
- <div class="lineUpMainLeft">
|
10
|
|
- <div class="lineUpMainLeftTitle">
|
11
|
|
- <p style="width:14%">排号</p>
|
12
|
|
- <p style="width:14%">姓名</p>
|
13
|
|
- <p style="width:14%">病例号</p>
|
14
|
|
- <p style="width:14%">床位号</p>
|
15
|
|
- <p style="width:14%">治疗状态</p>
|
16
|
|
- <p style="width:14%">上机时间</p>
|
17
|
|
- <p style="width:14%">预计下机时间</p>
|
18
|
|
- </div>
|
19
|
|
- <div class="lineUpList">
|
20
|
|
- <div class="lineUpListOne" v-for="item in 8" :key="item">
|
21
|
|
- <p style="width:14%">P01</p>
|
22
|
|
- <p style="width:14%">张*等</p>
|
23
|
|
- <p style="width:14%">001</p>
|
24
|
|
- <p style="width:14%">普通区1号床</p>
|
25
|
|
- <p style="width:14%">已下机</p>
|
26
|
|
- <p style="width:14%">09:01</p>
|
27
|
|
- <p style="width:14%">09:01</p>
|
|
2
|
+ <div class="main-contain">
|
|
3
|
+ <div class="position">
|
|
4
|
+ <bread-crumb :crumbs="crumbs"></bread-crumb>
|
|
5
|
+ <el-button
|
|
6
|
+ size="small"
|
|
7
|
+ icon="el-icon-menu"
|
|
8
|
+ @click="fullscreenboard"
|
|
9
|
+ type="primary"
|
|
10
|
+ >全屏投影</el-button
|
|
11
|
+ >
|
|
12
|
+ </div>
|
|
13
|
+ <div id="fullscreenbroad" v-show="dialogTableVisible">
|
|
14
|
+ <el-row class="fullRow">
|
|
15
|
+ <el-button
|
|
16
|
+ @click="openSetting"
|
|
17
|
+ icon="el-icon-setting"
|
|
18
|
+ circle
|
|
19
|
+ id="fullscreenbroad-setting"
|
|
20
|
+ ></el-button>
|
|
21
|
+ <el-button
|
|
22
|
+ type="primary"
|
|
23
|
+ icon="el-icon-rank"
|
|
24
|
+ v-if="showSetting"
|
|
25
|
+ id="fullscreenbroad-setting"
|
|
26
|
+ @click="togglefullscreen"
|
|
27
|
+ >切换模式</el-button
|
|
28
|
+ >
|
|
29
|
+ <el-button
|
|
30
|
+ type="primary"
|
|
31
|
+ icon="el-icon-menu"
|
|
32
|
+ v-if="showSetting"
|
|
33
|
+ id="fullscreenbroad-setting"
|
|
34
|
+ @click="outfullscreenboard"
|
|
35
|
+ >退出全屏投影</el-button
|
|
36
|
+ >
|
|
37
|
+ </el-row>
|
|
38
|
+ <div class="page_lineUp">
|
|
39
|
+ <div class="lineUpTitle">
|
|
40
|
+ <div>{{ this.$store.getters.xt_user.org.org_name }}<span> 温馨提示:请注意排队叫号,依次叫号就诊上机,谢谢配合</span></div>
|
|
41
|
+ <div>{{ newdate }} {{ time }}</div>
|
|
42
|
+ </div>
|
|
43
|
+ <div class="lineUpMain">
|
|
44
|
+ <div class="lineUpMainLeft">
|
|
45
|
+ <div class="lineUpMainLeftTitle">
|
|
46
|
+ <p style="width:12%">排号</p>
|
|
47
|
+ <p style="width:14%">姓名</p>
|
|
48
|
+ <p style="width:14%">病例号</p>
|
|
49
|
+ <p style="width:14%">床位号</p>
|
|
50
|
+ <p style="width:14%">治疗状态</p>
|
|
51
|
+ <p style="width:14%">上机时间</p>
|
|
52
|
+ <p style="width:16%">预计下机时间</p>
|
28
|
53
|
</div>
|
29
|
|
- </div>
|
30
|
|
- </div>
|
31
|
|
- <div class="callingBox">
|
32
|
|
- <div class="callingBoxLeft">
|
33
|
|
- <div class="callingTitle"><span style="margin: 0 auto;">接<br />诊<br />叫<br />号</span></div>
|
34
|
|
- <div style="flex: 1;">
|
35
|
|
- <div class="callingTop" style="margin-bottom:4px;">
|
36
|
|
- <div class="callingTopTip"><span style="margin: 0 auto;">正在<br />接诊</span></div>
|
37
|
|
- <div class="callingContent">
|
38
|
|
- <p style="margin-top:13px;">请李四宋到1号诊台就诊</p>
|
39
|
|
- <p>请王岐岐到2号诊台就诊</p>
|
|
54
|
+ <div class="lineUpList">
|
|
55
|
+ <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
|
|
56
|
+ <p style="width:12%">{{ item.queue_no }}</p>
|
|
57
|
+ <p style="width:14%">{{ item.patient_name }}</p>
|
|
58
|
+ <p style="width:14%">{{ item.dialysis_no }}</p>
|
|
59
|
+ <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
|
|
60
|
+ <p style="width:14%">
|
|
61
|
+ <span v-if="item.status == 1">待接诊</span>
|
|
62
|
+ <span v-if="item.status == 2">接诊中</span>
|
|
63
|
+ <span v-if="item.status == 3">接诊中</span>
|
|
64
|
+ <span v-if="item.status == 4">待上机</span>
|
|
65
|
+ <span v-if="item.status == 5">透析中</span>
|
|
66
|
+ <span v-if="item.status == 6">已下机</span>
|
|
67
|
+ </p>
|
|
68
|
+ <p style="width:14%">--</p>
|
|
69
|
+ <p style="width:16%">--</p>
|
|
70
|
+ </div>
|
|
71
|
+ </div>
|
|
72
|
+ </div>
|
|
73
|
+ <div class="callingBox">
|
|
74
|
+ <div class="callingBoxLeft">
|
|
75
|
+ <div class="callingTitle"><span style="margin: 0 auto;">接<br />诊<br />叫<br />号</span></div>
|
|
76
|
+ <div style="flex: 1;">
|
|
77
|
+ <div class="callingTop" style="margin-bottom:10px;">
|
|
78
|
+ <div class="callingTopTip"><span style="margin: 0 auto;">正在<br />接诊</span></div>
|
|
79
|
+ <div class="callingContent">
|
|
80
|
+ <p style="margin:50px 0 14px;"><span v-for="(item,index) in receivingPatient.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
|
|
81
|
+ <p><span v-for="(item,index) in receivingPatient.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
|
|
82
|
+ </div>
|
|
83
|
+ </div>
|
|
84
|
+ <div class="callingTop" style="border-radius: 0 0 15px 0;">
|
|
85
|
+ <div class="callingTopTip"><span style="margin: 0 auto;">等待<br />接诊</span></div>
|
|
86
|
+ <div class="callingContent">
|
|
87
|
+ <p style="margin:50px 0 14px;"><span v-for="(item,index) in waitDoctorList.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
|
|
88
|
+ <p><span v-for="(item,index) in waitDoctorList.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
|
|
89
|
+ </div>
|
40
|
90
|
</div>
|
41
|
91
|
</div>
|
42
|
|
- <div class="callingTop" style="border-radius: 0 0 15px 0;">
|
43
|
|
- <div class="callingTopTip"><span style="margin: 0 auto;">等待<br />接诊</span></div>
|
44
|
|
- <div class="callingContent">
|
45
|
|
- <p style="margin-top:13px;">欧大大、王思思、陈啦啦、吴东汉、</p>
|
46
|
|
- <p>孔豆豆、陈米春、孔豆豆、陈米春、</p>
|
|
92
|
+ </div>
|
|
93
|
+ <div class="callingBoxLeft">
|
|
94
|
+ <div class="callingTitle newCallingTitle"><span style="margin: 0 auto;">上<br />机<br />叫<br />号</span></div>
|
|
95
|
+ <div style="flex: 1;">
|
|
96
|
+ <div class="callingTop" style="margin-bottom:10px;">
|
|
97
|
+ <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">正在<br />叫号</span></div>
|
|
98
|
+ <div class="callingContent newCallingContent">
|
|
99
|
+ <p style="margin:50px 0 14px;"><span v-for="(item,index) in upPatientList.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
|
|
100
|
+ <p><span v-for="(item,index) in upPatientList.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
|
|
101
|
+ </div>
|
|
102
|
+ </div>
|
|
103
|
+ <div class="callingTop" style="border-radius: 0 0 15px 0;">
|
|
104
|
+ <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">等待<br />叫号</span></div>
|
|
105
|
+ <div class="callingContent newCallingContent">
|
|
106
|
+ <p style="margin:50px 0 14px;"><span v-for="(item,index) in receivingPatient.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
|
|
107
|
+ <p><span v-for="(item,index) in receivingPatient.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
|
|
108
|
+ </div>
|
47
|
109
|
</div>
|
48
|
110
|
</div>
|
49
|
111
|
</div>
|
50
|
112
|
</div>
|
51
|
|
- <div class="callingBoxLeft">
|
52
|
|
- <div class="callingTitle newCallingTitle"><span style="margin: 0 auto;">上<br />机<br />叫<br />号</span></div>
|
53
|
|
- <div style="flex: 1;">
|
54
|
|
- <div class="callingTop" style="margin-bottom:4px;">
|
55
|
|
- <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">正在<br />叫号</span></div>
|
56
|
|
- <div class="callingContent">
|
57
|
|
- <p style="margin-top:13px;">请李四宋到普通区2号床上机</p>
|
58
|
|
- <p>请王岐岐到普通区3号床上机</p>
|
|
113
|
+ </div>
|
|
114
|
+
|
|
115
|
+ </div>
|
|
116
|
+ </div>
|
|
117
|
+ <div class="app-container">
|
|
118
|
+ <div class="page_lineUp">
|
|
119
|
+ <div class="lineUpTitle">
|
|
120
|
+ <div>{{ this.$store.getters.xt_user.org.org_name }}<span> 温馨提示:请注意排队叫号,依次叫号就诊上机,谢谢配合</span></div>
|
|
121
|
+ <div>{{ newdate }} {{ time }}</div>
|
|
122
|
+ </div>
|
|
123
|
+ <div class="lineUpMain">
|
|
124
|
+ <div class="lineUpMainLeft">
|
|
125
|
+ <div class="lineUpMainLeftTitle">
|
|
126
|
+ <p style="width:12%">排号</p>
|
|
127
|
+ <p style="width:14%">姓名</p>
|
|
128
|
+ <p style="width:14%">病例号</p>
|
|
129
|
+ <p style="width:14%">床位号</p>
|
|
130
|
+ <p style="width:14%">治疗状态</p>
|
|
131
|
+ <p style="width:14%">上机时间</p>
|
|
132
|
+ <p style="width:16%">预计下机时间</p>
|
|
133
|
+ </div>
|
|
134
|
+ <div class="lineUpList">
|
|
135
|
+ <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
|
|
136
|
+ <p style="width:12%">{{ item.queue_no }}</p>
|
|
137
|
+ <p style="width:14%">{{ item.patient_name }}</p>
|
|
138
|
+ <p style="width:14%">{{ item.dialysis_no }}</p>
|
|
139
|
+ <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
|
|
140
|
+ <p style="width:14%">
|
|
141
|
+ <span v-if="item.status == 1">待接诊</span>
|
|
142
|
+ <span v-if="item.status == 2">接诊中</span>
|
|
143
|
+ <span v-if="item.status == 3">接诊中</span>
|
|
144
|
+ <span v-if="item.status == 4">待上机</span>
|
|
145
|
+ <span v-if="item.status == 5">透析中</span>
|
|
146
|
+ <span v-if="item.status == 6">已下机</span>
|
|
147
|
+ </p>
|
|
148
|
+ <p style="width:14%">--</p>
|
|
149
|
+ <p style="width:16%">--</p>
|
|
150
|
+ </div>
|
|
151
|
+ </div>
|
|
152
|
+ </div>
|
|
153
|
+ <div class="callingBox">
|
|
154
|
+ <div class="callingBoxLeft">
|
|
155
|
+ <div class="callingTitle"><span style="margin: 0 auto;">接<br />诊<br />叫<br />号</span></div>
|
|
156
|
+ <div style="flex: 1;">
|
|
157
|
+ <div class="callingTop" style="margin-bottom:10px;">
|
|
158
|
+ <div class="callingTopTip"><span style="margin: 0 auto;">正在<br />接诊</span></div>
|
|
159
|
+ <div class="callingContent">
|
|
160
|
+ <p style="margin:50px 0 14px;"><span v-for="(item,index) in receivingPatient.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
|
|
161
|
+ <p><span v-for="(item,index) in receivingPatient.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
|
|
162
|
+ </div>
|
|
163
|
+ </div>
|
|
164
|
+ <div class="callingTop" style="border-radius: 0 0 15px 0;">
|
|
165
|
+ <div class="callingTopTip"><span style="margin: 0 auto;">等待<br />接诊</span></div>
|
|
166
|
+ <div class="callingContent">
|
|
167
|
+ <p style="margin:50px 0 14px;"><span v-for="(item,index) in waitDoctorList.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
|
|
168
|
+ <p><span v-for="(item,index) in waitDoctorList.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
|
|
169
|
+ </div>
|
59
|
170
|
</div>
|
60
|
171
|
</div>
|
61
|
|
- <div class="callingTop" style="border-radius: 0 0 15px 0;">
|
62
|
|
- <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">等待<br />叫号</span></div>
|
63
|
|
- <div class="callingContent">
|
64
|
|
- <p style="margin-top:13px;">欧大大、王思思、陈啦啦、吴东汉、</p>
|
65
|
|
- <p>孔豆豆、陈米春、孔豆豆、陈米春、</p>
|
|
172
|
+ </div>
|
|
173
|
+ <div class="callingBoxLeft">
|
|
174
|
+ <div class="callingTitle newCallingTitle"><span style="margin: 0 auto;">上<br />机<br />叫<br />号</span></div>
|
|
175
|
+ <div style="flex: 1;">
|
|
176
|
+ <div class="callingTop" style="margin-bottom:10px;">
|
|
177
|
+ <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">正在<br />叫号</span></div>
|
|
178
|
+ <div class="callingContent newCallingContent">
|
|
179
|
+ <p style="margin:50px 0 14px;"><span v-for="(item,index) in upPatientList.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
|
|
180
|
+ <p><span v-for="(item,index) in upPatientList.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
|
|
181
|
+ </div>
|
|
182
|
+ </div>
|
|
183
|
+ <div class="callingTop" style="border-radius: 0 0 15px 0;">
|
|
184
|
+ <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">等待<br />叫号</span></div>
|
|
185
|
+ <div class="callingContent newCallingContent">
|
|
186
|
+ <p style="margin:50px 0 14px;"><span v-for="(item,index) in receivingPatient.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
|
|
187
|
+ <p><span v-for="(item,index) in receivingPatient.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
|
|
188
|
+ </div>
|
66
|
189
|
</div>
|
67
|
190
|
</div>
|
68
|
191
|
</div>
|
69
|
192
|
</div>
|
70
|
193
|
</div>
|
|
194
|
+
|
71
|
195
|
</div>
|
72
|
|
-
|
73
|
196
|
</div>
|
74
|
197
|
</div>
|
75
|
198
|
</template>
|
76
|
199
|
|
|
200
|
+<script>
|
|
201
|
+const moment = require('moment')
|
|
202
|
+import BreadCrumb from "../components/bread-crumb";
|
|
203
|
+import screenfull from "screenfull";
|
|
204
|
+export default {
|
|
205
|
+ components:{
|
|
206
|
+ BreadCrumb
|
|
207
|
+ },
|
|
208
|
+ data(){
|
|
209
|
+ return{
|
|
210
|
+ crumbs: [
|
|
211
|
+ { path: false, name: "签到排队" },
|
|
212
|
+ { path: false, name: "排队窗口" }
|
|
213
|
+ ],
|
|
214
|
+ dialogTableVisible:false,
|
|
215
|
+ showSetting: false,
|
|
216
|
+ lineUpList:[],
|
|
217
|
+ count:0,
|
|
218
|
+ page:1,
|
|
219
|
+ timer:null,
|
|
220
|
+ receivingPatient:[],
|
|
221
|
+ waitDoctorList:[],
|
|
222
|
+ upPatientList:[],
|
|
223
|
+ patient_id:'',
|
|
224
|
+ timerID:null,
|
|
225
|
+ time:'',
|
|
226
|
+ newdate:'',
|
|
227
|
+ voiceNum:1,
|
|
228
|
+ voiceTime:null,
|
|
229
|
+
|
|
230
|
+ voice:true,
|
|
231
|
+ a:1
|
|
232
|
+ }
|
|
233
|
+ },
|
|
234
|
+ computed: {
|
|
235
|
+ websocket() {
|
|
236
|
+ return this.$store.state.user.websocket;
|
|
237
|
+ },
|
|
238
|
+ },
|
|
239
|
+ created(){
|
|
240
|
+ this.initData = {
|
|
241
|
+ cmd: "queue/join",
|
|
242
|
+ data: {type:2,page:1,size:6},
|
|
243
|
+ };
|
|
244
|
+ this.websocketSend(this.initData)
|
|
245
|
+ let newobj = {
|
|
246
|
+ cmd: "queue/callreturn",
|
|
247
|
+ data: {patient_id:0},
|
|
248
|
+ };
|
|
249
|
+ this.websocketSend(newobj)
|
|
250
|
+ },
|
|
251
|
+ beforeMount() {
|
|
252
|
+ this.websocketMess();
|
|
253
|
+ },
|
|
254
|
+ mounted(){
|
|
255
|
+ this.timer = setInterval(() => {
|
|
256
|
+ if(this.page < Math.ceil(this.count / 10)){
|
|
257
|
+ console.log('执行')
|
|
258
|
+ this.page++
|
|
259
|
+ let obj = {
|
|
260
|
+ cmd: "queue/queuelist",
|
|
261
|
+ data: {page:this.page,size:6}
|
|
262
|
+ };
|
|
263
|
+ this.websocketSend(obj)
|
|
264
|
+ }else{
|
|
265
|
+ console.log('执行2222')
|
|
266
|
+ this.page = 0
|
|
267
|
+ let obj = {
|
|
268
|
+ cmd: "queue/queuelist",
|
|
269
|
+ data: {page:this.page,size:6}
|
|
270
|
+ };
|
|
271
|
+ this.websocketSend(obj)
|
|
272
|
+ }
|
|
273
|
+ }, 5000);
|
|
274
|
+ this.timerID = setInterval(() => {
|
|
275
|
+ this.updateTime()
|
|
276
|
+ }, 1000);
|
|
277
|
+ },
|
|
278
|
+ beforeDestroy(){
|
|
279
|
+ clearInterval(this.timer); // 清除定时器
|
|
280
|
+ this.timer = null
|
|
281
|
+ clearInterval(this.timerID);
|
|
282
|
+ this.timerID = null; // 清除定时器
|
|
283
|
+ // this.timer = null;
|
|
284
|
+ // let obj = {
|
|
285
|
+ // cmd: "queue/join",
|
|
286
|
+ // data: {type:1},
|
|
287
|
+ // };
|
|
288
|
+ // this.websocketSend(obj)
|
|
289
|
+ console.log('hhhhhhhhhhhhhhhhhhhhhh',this.timerID)
|
|
290
|
+ },
|
|
291
|
+ methods:{
|
|
292
|
+ websocketSend(data) {
|
|
293
|
+ try {
|
|
294
|
+ this.websocket.send(JSON.stringify(data))
|
|
295
|
+
|
|
296
|
+ } catch (error) {
|
|
297
|
+ this.showError = true;
|
|
298
|
+ this.showIndex = 4;
|
|
299
|
+ this.errorInfo = "网络异常,请稍后退出重试!";
|
|
300
|
+ }
|
|
301
|
+ },
|
|
302
|
+ websocketMess() {
|
|
303
|
+ this.websocket.onmessage = e => {
|
|
304
|
+ let res = JSON.parse(e.data);
|
|
305
|
+ // let res = re.data;
|
|
306
|
+ console.log('res',res)
|
|
307
|
+ if(res.channel == 'queue/join'){
|
|
308
|
+ this.lineUpList = res.data.patientQueueList.data
|
|
309
|
+ this.receivingPatient = res.data.receivingPatient
|
|
310
|
+ this.waitDoctorList = res.data.waitDoctorList
|
|
311
|
+ this.upPatientList = res.data.upPatientList
|
|
312
|
+ this.count = res.data.patientQueueList.count
|
|
313
|
+ this.lineUpList.map(item => {
|
|
314
|
+ item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
|
|
315
|
+ // item.start_time = moment(item.start_time * 1000).format('HH:mm')
|
|
316
|
+ })
|
|
317
|
+ }else if(res.channel == 'queue/queuelist'){
|
|
318
|
+ this.lineUpList = res.data.patientQueueList.data
|
|
319
|
+ this.count = res.data.patientQueueList.count
|
|
320
|
+ this.lineUpList.map(item => {
|
|
321
|
+ item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
|
|
322
|
+ // item.start_time = moment(item.start_time * 1000).format('HH:mm')
|
|
323
|
+ })
|
|
324
|
+ }else if(res.channel == 'patientCallInfo'){
|
|
325
|
+ console.log(999999999999,res.data)
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+ console.log('执行几次',this.voiceNum)
|
|
329
|
+ if(this.voice == true){
|
|
330
|
+ this.patient_id = res.data.patientInfo.patient_id
|
|
331
|
+ this.voice = false
|
|
332
|
+ // let time1 = null
|
|
333
|
+ this.voicePrompt(res.data.callVolUrl)
|
|
334
|
+ this.voiceTime = setInterval(() => {
|
|
335
|
+ if(this.voiceNum < 3){
|
|
336
|
+ this.voiceNum++
|
|
337
|
+ this.voicePrompt(res.data.callVolUrl)
|
|
338
|
+ }else{
|
|
339
|
+ this.voiceNum = 1;
|
|
340
|
+ this.voice = true
|
|
341
|
+ let obj = {
|
|
342
|
+ cmd: "queue/callreturn",
|
|
343
|
+ data: {patient_id:this.patient_id},
|
|
344
|
+ };
|
|
345
|
+ this.websocketSend(obj)
|
|
346
|
+ clearInterval(this.voiceTime);
|
|
347
|
+ this.voiceTime = null
|
|
348
|
+ }
|
|
349
|
+ },6000)
|
|
350
|
+ }else {
|
|
351
|
+ this.$message({
|
|
352
|
+ message: '警告哦,这是一条警告消息',
|
|
353
|
+ type: 'warning'
|
|
354
|
+ });
|
|
355
|
+ }
|
|
356
|
+ }else if(res.channel == 'updateCallList'){
|
|
357
|
+ this.receivingPatient = res.data.queue_list
|
|
358
|
+
|
|
359
|
+ }else if(res.channel == 'updateWaitCallList'){
|
|
360
|
+ this.waitDoctorList = res.data.queue_list
|
|
361
|
+ }else if(res.channel == 'updateUpCallList'){
|
|
362
|
+ this.upPatientList = res.data.queue_list
|
|
363
|
+ }
|
|
364
|
+ // else if(res.channel == "patientQueueInfo"){
|
|
365
|
+ // this.queueInfo = res.data.queueInfo
|
|
366
|
+ // let obj = {
|
|
367
|
+ // cmd: "queue/queuelist",
|
|
368
|
+ // data: {page:1,size:10}
|
|
369
|
+ // };
|
|
370
|
+ // this.websocketSend(obj)
|
|
371
|
+
|
|
372
|
+ // }
|
|
373
|
+ }
|
|
374
|
+ },
|
|
375
|
+ updateTime() {
|
|
376
|
+ var cd = new Date();
|
|
377
|
+ var week = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
|
378
|
+ console.log(1111111)
|
|
379
|
+ this.time = this.zeroPadding(cd.getHours(), 2) + ':' + this.zeroPadding(cd.getMinutes(), 2) + ':' + this.zeroPadding(cd.getSeconds(), 2) + ' (' + week[cd.getDay()] + ")";
|
|
380
|
+ this.newdate = this.zeroPadding(cd.getFullYear(), 4) + '-' + this.zeroPadding(cd.getMonth() + 1, 2) + '-' + this.zeroPadding(cd.getDate(), 2);
|
|
381
|
+ },
|
|
382
|
+
|
|
383
|
+ zeroPadding(num, digit) {
|
|
384
|
+ var zero = '';
|
|
385
|
+ for (var i = 0; i < digit; i++) {
|
|
386
|
+ zero += '0';
|
|
387
|
+ }
|
|
388
|
+ return (zero + num).slice(-digit);
|
|
389
|
+ },
|
|
390
|
+ fullscreenboard: function() {
|
|
391
|
+ this.dialogTableVisible = true;
|
|
392
|
+ // let routeData = this.$router.resolve({ path: '/fullscreenboard' })
|
|
393
|
+ // window.open(routeData.href, '_blank')
|
|
394
|
+ },
|
|
395
|
+ outfullscreenboard: function() {
|
|
396
|
+ this.dialogTableVisible = false;
|
|
397
|
+ this.showSetting = false;
|
|
398
|
+ },
|
|
399
|
+ togglefullscreen: function() {
|
|
400
|
+ if (!screenfull.enabled) {
|
|
401
|
+ this.$message({
|
|
402
|
+ message: "你的浏览器不支持",
|
|
403
|
+ type: "warning"
|
|
404
|
+ });
|
|
405
|
+ return false;
|
|
406
|
+ }
|
|
407
|
+ screenfull.toggle();
|
|
408
|
+ this.showSetting = false;
|
|
409
|
+ },
|
|
410
|
+ openSetting() {
|
|
411
|
+ if (this.showSetting == false) {
|
|
412
|
+ this.showSetting = true;
|
|
413
|
+ } else {
|
|
414
|
+ this.showSetting = false;
|
|
415
|
+ }
|
|
416
|
+ },
|
|
417
|
+ }
|
|
418
|
+}
|
|
419
|
+</script>
|
|
420
|
+
|
77
|
421
|
<style lang="scss" scoped>
|
78
|
422
|
.page_lineUp{
|
79
|
423
|
.lineUpTitle{
|
|
@@ -89,11 +433,11 @@
|
89
|
433
|
}
|
90
|
434
|
.lineUpMain{
|
91
|
435
|
background: linear-gradient(0deg, #76ECEC, #479CD2);
|
92
|
|
- height: 550px;
|
|
436
|
+ height: 1080px;
|
93
|
437
|
padding:10px;
|
94
|
438
|
}
|
95
|
439
|
.lineUpMainLeft{
|
96
|
|
- height: 370px;
|
|
440
|
+ height: 620px;
|
97
|
441
|
border-radius: 15px;
|
98
|
442
|
|
99
|
443
|
}
|
|
@@ -102,9 +446,9 @@
|
102
|
446
|
justify-content: space-between;
|
103
|
447
|
align-items: center;
|
104
|
448
|
color:#fff;
|
105
|
|
- font-size: 18px;
|
|
449
|
+ font-size: 38px;
|
106
|
450
|
font-weight: 600;
|
107
|
|
- height:50px;
|
|
451
|
+ height:80px;
|
108
|
452
|
background: #1A82BF;
|
109
|
453
|
border-radius: 15px 15px 0 0;
|
110
|
454
|
>p{
|
|
@@ -112,7 +456,7 @@
|
112
|
456
|
}
|
113
|
457
|
}
|
114
|
458
|
.lineUpList{
|
115
|
|
- font-size: 18px;
|
|
459
|
+ font-size: 35px;
|
116
|
460
|
font-weight: 600;
|
117
|
461
|
>div:nth-child(odd){
|
118
|
462
|
background: #F9FDFF;
|
|
@@ -124,7 +468,7 @@
|
124
|
468
|
border-radius: 0 0 15px 15px;
|
125
|
469
|
}
|
126
|
470
|
.lineUpListOne{
|
127
|
|
- height:40px;
|
|
471
|
+ height:90px;
|
128
|
472
|
display: flex;
|
129
|
473
|
justify-content: space-between;
|
130
|
474
|
align-items: center;
|
|
@@ -136,20 +480,20 @@
|
136
|
480
|
}
|
137
|
481
|
}
|
138
|
482
|
.callingBox{
|
139
|
|
- height: 150px;
|
|
483
|
+ height: 430px;
|
140
|
484
|
margin-top: 10px;
|
141
|
485
|
display: flex;
|
142
|
486
|
justify-content: space-between;
|
143
|
487
|
.callingBoxLeft{
|
144
|
|
- width: 49%;
|
|
488
|
+ width: 49.5%;
|
145
|
489
|
height: 100%;
|
146
|
490
|
display: flex;
|
147
|
491
|
justify-content: space-between;
|
148
|
492
|
.callingTitle{
|
149
|
|
- width: 60px;
|
|
493
|
+ width: 130px;
|
150
|
494
|
height: 100%;
|
151
|
495
|
border-radius: 15px 0 0 15px;
|
152
|
|
- font-size: 30px;
|
|
496
|
+ font-size: 66px;
|
153
|
497
|
font-weight:600;
|
154
|
498
|
text-align: center;
|
155
|
499
|
color: #fff;
|
|
@@ -159,43 +503,74 @@
|
159
|
503
|
margin-right: 5px;
|
160
|
504
|
}
|
161
|
505
|
.newCallingTitle{
|
162
|
|
- background: linear-gradient(90deg, rgba(66, 231, 167, 1), rgba(26, 191, 84, 1), rgba(157, 254, 31, 1));
|
|
506
|
+ background: #1aa680;
|
163
|
507
|
}
|
164
|
508
|
}
|
165
|
509
|
.callingTop{
|
166
|
|
- height: 73px;
|
|
510
|
+ height: 210px;
|
167
|
511
|
border-radius: 0 15px 0 0;
|
168
|
512
|
background: #F9FDFF;
|
169
|
513
|
display: flex;
|
170
|
514
|
justify-content: space-between;
|
171
|
515
|
.callingTopTip{
|
172
|
|
- width: 73px;
|
|
516
|
+ width: 130px;
|
173
|
517
|
height: 100%;
|
174
|
518
|
color: #fff;
|
175
|
|
- font-size: 18px;
|
|
519
|
+ font-size: 40px;
|
176
|
520
|
font-weight: 600;
|
177
|
521
|
background: #1A82BF;
|
178
|
522
|
display: flex;
|
179
|
523
|
align-items: center;
|
180
|
524
|
}
|
181
|
525
|
.newCallingTopTip{
|
182
|
|
- background: linear-gradient(90deg, rgba(66, 231, 167, 1), rgba(26, 191, 84, 1), rgba(157, 254, 31, 1));
|
|
526
|
+ background: #1aa680;
|
183
|
527
|
}
|
184
|
528
|
.callingContent{
|
185
|
529
|
flex: 1;
|
186
|
530
|
display: flex;
|
187
|
531
|
flex-direction: column;
|
188
|
|
- font-size: 16px;
|
|
532
|
+ font-size: 50px;
|
189
|
533
|
color:#1C6895;
|
190
|
534
|
font-weight: 600;
|
191
|
535
|
padding-left: 20px;
|
192
|
536
|
>p{
|
193
|
537
|
width:100%;
|
194
|
538
|
text-align: left;
|
195
|
|
- line-height: 24px;
|
|
539
|
+ line-height: 50px;
|
196
|
540
|
}
|
197
|
541
|
}
|
|
542
|
+ .newCallingContent{
|
|
543
|
+ color:#1aa680;
|
|
544
|
+ }
|
198
|
545
|
}
|
199
|
546
|
}
|
200
|
547
|
}
|
|
548
|
+#fullscreenbroad {
|
|
549
|
+ position: fixed;
|
|
550
|
+ top: 0;
|
|
551
|
+ right: 0;
|
|
552
|
+ bottom: 0;
|
|
553
|
+ left: 0;
|
|
554
|
+ overflow: auto;
|
|
555
|
+ margin: 0;
|
|
556
|
+ background: #fff;
|
|
557
|
+ padding: 20px;
|
|
558
|
+ z-index:5000;
|
|
559
|
+}
|
|
560
|
+#fullscreenbroad #fullscreenbroad-setting {
|
|
561
|
+ float: right;
|
|
562
|
+}
|
|
563
|
+
|
|
564
|
+#fullscreenbroad .el-button + .el-button {
|
|
565
|
+ margin-left: 0px;
|
|
566
|
+}
|
|
567
|
+#fullscreenbroad .el-button:nth-child(1) {
|
|
568
|
+ margin-left: 10px;
|
|
569
|
+}
|
|
570
|
+#fullscreenbroad .el-button:nth-child(2) {
|
|
571
|
+ margin-left: 10px;
|
|
572
|
+}
|
|
573
|
+.fullRow{
|
|
574
|
+ margin-bottom: 10px;
|
|
575
|
+}
|
201
|
576
|
</style>
|