|
@@ -42,7 +42,7 @@
|
42
|
42
|
</div>
|
43
|
43
|
<div class="signInMain">
|
44
|
44
|
<div style="display: flex;justify-content: space-between;padding:10px;">
|
45
|
|
- <div class="signInMainLeft">
|
|
45
|
+ <div :class="Object.keys(queueInfo).length>0 ? 'signInMainLeft' : 'signInMainLeft100'">
|
46
|
46
|
<div class="signInMainLeftTitle">
|
47
|
47
|
<p>排队号</p>
|
48
|
48
|
<p>姓名</p>
|
|
@@ -63,7 +63,7 @@
|
63
|
63
|
</div>
|
64
|
64
|
</div>
|
65
|
65
|
</div>
|
66
|
|
- <div class="signInMainRight">
|
|
66
|
+ <div :class="Object.keys(queueInfo).length>0 ? 'signInMainRight' : 'noneSignInMainRight'" v-if='Object.keys(queueInfo).length>0'>
|
67
|
67
|
<div class="signInMainRightTitle"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>{{ queueInfo.patient_name }}</span></div>
|
68
|
68
|
<div class="signInMainRightContent">
|
69
|
69
|
<p style="margin: 0 auto;display:flex;align-items: center;" v-if='Object.keys(queueInfo).length>0'><span>排队号 </span><span style="font-size:180px;">{{ queueInfo.queue_no }}</span></p>
|
|
@@ -85,7 +85,7 @@
|
85
|
85
|
</div>
|
86
|
86
|
<div class="signInMain">
|
87
|
87
|
<div style="display: flex;justify-content: space-between;padding:10px;">
|
88
|
|
- <div class="signInMainLeft">
|
|
88
|
+ <div :class="Object.keys(queueInfo).length>0 ? 'signInMainLeft' : 'signInMainLeft100'">
|
89
|
89
|
<div class="signInMainLeftTitle">
|
90
|
90
|
<p>排队号</p>
|
91
|
91
|
<p>姓名</p>
|
|
@@ -106,7 +106,7 @@
|
106
|
106
|
</div>
|
107
|
107
|
</div>
|
108
|
108
|
</div>
|
109
|
|
- <div class="signInMainRight">
|
|
109
|
+ <div :class="Object.keys(queueInfo).length>0 ? 'signInMainRight' : 'noneSignInMainRight'">
|
110
|
110
|
<div class="signInMainRightTitle"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>{{ queueInfo.patient_name }}</span></div>
|
111
|
111
|
<div class="signInMainRightContent">
|
112
|
112
|
<p style="margin: 0 auto;display:flex;align-items: center;" v-if='Object.keys(queueInfo).length>0'><span>排队号 </span><span style="font-size:180px;">{{ queueInfo.queue_no }}</span></p>
|
|
@@ -146,7 +146,8 @@ export default {
|
146
|
146
|
timer:null,
|
147
|
147
|
timerID:null,
|
148
|
148
|
time:'',
|
149
|
|
- newdate:''
|
|
149
|
+ newdate:'',
|
|
150
|
+ ds:null
|
150
|
151
|
}
|
151
|
152
|
},
|
152
|
153
|
computed: {
|
|
@@ -222,7 +223,8 @@ export default {
|
222
|
223
|
item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
|
223
|
224
|
})
|
224
|
225
|
}else if(res.channel == "patientQueueInfo"){
|
225
|
|
-
|
|
226
|
+ clearTimeout(this.ds)
|
|
227
|
+ this.ds = null
|
226
|
228
|
this.queueInfo = res.data.queueInfo
|
227
|
229
|
this.page = 1
|
228
|
230
|
let obj = {
|
|
@@ -231,6 +233,10 @@ export default {
|
231
|
233
|
};
|
232
|
234
|
this.websocketSend(obj)
|
233
|
235
|
|
|
236
|
+ this.ds = setTimeout(() => {
|
|
237
|
+ this.queueInfo = {}
|
|
238
|
+ }, 60000);
|
|
239
|
+
|
234
|
240
|
}else if(res.channel == 'queue/queuelist'){
|
235
|
241
|
console.log(11111111111,res.data)
|
236
|
242
|
this.signInList = res.data.patientQueueList.data
|
|
@@ -284,7 +290,7 @@ export default {
|
284
|
290
|
this.showSetting = false;
|
285
|
291
|
}
|
286
|
292
|
},
|
287
|
|
- }
|
|
293
|
+ },
|
288
|
294
|
}
|
289
|
295
|
</script>
|
290
|
296
|
|
|
@@ -313,6 +319,11 @@ export default {
|
313
|
319
|
height: 980px;
|
314
|
320
|
border-radius: 15px;
|
315
|
321
|
}
|
|
322
|
+ .signInMainLeft100{
|
|
323
|
+ width:100%;
|
|
324
|
+ height: 980px;
|
|
325
|
+ border-radius: 15px;
|
|
326
|
+ }
|
316
|
327
|
.signInMainLeftTitle{
|
317
|
328
|
display: flex;
|
318
|
329
|
justify-content: space-between;
|
|
@@ -365,6 +376,9 @@ export default {
|
365
|
376
|
width: 30%;
|
366
|
377
|
height: 980px;
|
367
|
378
|
}
|
|
379
|
+ .noneSignInMainRight{
|
|
380
|
+ display: none;
|
|
381
|
+ }
|
368
|
382
|
.signInMainRightTitle{
|
369
|
383
|
height: 260px;
|
370
|
384
|
border-radius: 15px 15px 0 0;
|