|
@@ -48,7 +48,7 @@
|
48
|
48
|
<p style="width:10%">姓名</p>
|
49
|
49
|
<p style="width:14%">透析号</p>
|
50
|
50
|
<p style="width:55%">透析时间</p>
|
51
|
|
-
|
|
51
|
+
|
52
|
52
|
</div>
|
53
|
53
|
<!-- <div class="lineUpList">
|
54
|
54
|
<div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
|
|
@@ -72,7 +72,7 @@
|
72
|
72
|
<p style="width:16%">{{ item.end_time && item.start_time ? getDates(item.end_time) : '--' }}</p>
|
73
|
73
|
</div>
|
74
|
74
|
</div> -->
|
75
|
|
- </div>
|
|
75
|
+ </div>
|
76
|
76
|
<!-- <div class="callingBox">
|
77
|
77
|
<div :class="(queueConfig.jzjhyc == 1 && queueConfig.sjjhyc == 0) ? 'callingBoxLeft1' : 'callingBoxLeft'" v-if="queueConfig.jzjhyc == 1">
|
78
|
78
|
<div class="callingTitle"><span style="margin: 0 auto;">接<br />诊<br />叫<br />号</span></div>
|
|
@@ -121,10 +121,10 @@
|
121
|
121
|
</div>
|
122
|
122
|
</div>
|
123
|
123
|
</div> -->
|
124
|
|
- </div>
|
125
|
|
-
|
|
124
|
+ </div>
|
|
125
|
+
|
126
|
126
|
</div>
|
127
|
|
-
|
|
127
|
+
|
128
|
128
|
</div>
|
129
|
129
|
<div class="app-container">
|
130
|
130
|
<div class="page_lineUp">
|
|
@@ -142,23 +142,23 @@
|
142
|
142
|
</div>
|
143
|
143
|
<div class="lineUpList">
|
144
|
144
|
<div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
|
145
|
|
- <!-- <p style="width:12%" > {{ item.xuhao }} </p>
|
|
145
|
+ <p style="width:12%" > {{ item.xuhao }} </p>
|
146
|
146
|
<p style="width:14%">{{ item.name }}</p>
|
147
|
147
|
<p style="width:14%">{{ item.toux }}</p>
|
148
|
|
- <p style="width:55%">{{ item.touxtime }}</p> -->
|
149
|
|
-
|
|
148
|
+ <p style="width:55%">{{ item.touxtime }}</p>
|
|
149
|
+
|
150
|
150
|
<!-- <p style="width:14%">{{ item.patient_name }}</p>
|
151
|
151
|
<p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
|
152
|
152
|
<p style="width:14%">{{ item.start_time ? getDates(item.start_time) : '--' }}</p>
|
153
|
153
|
<p style="width:16%">{{ item.end_time && item.start_time ? getDates(item.end_time) : '--' }}</p> -->
|
154
|
154
|
</div>
|
155
|
155
|
</div>
|
156
|
|
- </div>
|
157
|
|
-
|
|
156
|
+ </div>
|
|
157
|
+
|
158
|
158
|
</div>
|
159
|
|
-
|
|
159
|
+
|
160
|
160
|
</div>
|
161
|
|
-
|
|
161
|
+
|
162
|
162
|
</div>
|
163
|
163
|
</div>
|
164
|
164
|
</template>
|
|
@@ -213,7 +213,7 @@ export default {
|
213
|
213
|
voice:true,
|
214
|
214
|
a:1,
|
215
|
215
|
newTimes:null
|
216
|
|
-
|
|
216
|
+
|
217
|
217
|
}
|
218
|
218
|
},
|
219
|
219
|
computed: {
|
|
@@ -267,45 +267,45 @@ export default {
|
267
|
267
|
// this.websocketMess();
|
268
|
268
|
},
|
269
|
269
|
mounted(){
|
270
|
|
-
|
271
|
|
- this.timer = setInterval(() => {
|
272
|
|
- if(this.page < Math.ceil(this.count / 6)){
|
273
|
|
- console.log('执行',Math.ceil(this.count / 6),this.page)
|
274
|
|
- this.page++
|
275
|
|
- let obj = {
|
276
|
|
- cmd: "queue/queuelist",
|
277
|
|
- data: {page:this.page,size:6,sort:0}
|
278
|
|
- };
|
279
|
|
- this.websocketSend(obj)
|
280
|
|
- setTimeout(() => {
|
281
|
|
- this.websocketMess();
|
282
|
|
- }, 1000);
|
283
|
|
- }
|
284
|
|
- else{
|
285
|
|
- console.log('执行22223333')
|
286
|
|
- this.page = 1
|
287
|
|
- let a = {
|
288
|
|
- cmd: "queue/queuelist",
|
289
|
|
- data: {page:this.page,size:6,sort:0}
|
290
|
|
- };
|
291
|
|
- this.websocketSend(a)
|
292
|
|
- setTimeout(() => {
|
293
|
|
- // this.websocketMess();
|
294
|
|
- this.lineUpList
|
295
|
|
- }, 1000);
|
296
|
|
-
|
297
|
|
- }
|
298
|
|
- console.log('切换时间',this.queueConfig)
|
299
|
|
- }, 1000 * parseInt(this.queueConfig.qhsj));
|
300
|
|
- this.timerID = setInterval(() => {
|
301
|
|
- this.updateTime()
|
302
|
|
- }, 1000);
|
303
|
|
- this.newTimes = setInterval(() => {
|
304
|
|
- // this.reload()
|
305
|
|
- console.log('1222222333333333');
|
306
|
|
- sessionStorage.setItem('lineUpKey',1);
|
307
|
|
- window.location.reload()
|
308
|
|
- }, 1000 * 60 * 30);
|
|
270
|
+
|
|
271
|
+ // this.timer = setInterval(() => {
|
|
272
|
+ // if(this.page < Math.ceil(this.count / 6)){
|
|
273
|
+ // console.log('执行',Math.ceil(this.count / 6),this.page)
|
|
274
|
+ // this.page++
|
|
275
|
+ // let obj = {
|
|
276
|
+ // cmd: "queue/queuelist",
|
|
277
|
+ // data: {page:this.page,size:6,sort:0}
|
|
278
|
+ // };
|
|
279
|
+ // this.websocketSend(obj)
|
|
280
|
+ // setTimeout(() => {
|
|
281
|
+ // this.websocketMess();
|
|
282
|
+ // }, 1000);
|
|
283
|
+ // }
|
|
284
|
+ // else{
|
|
285
|
+ // console.log('执行22223333')
|
|
286
|
+ // this.page = 1
|
|
287
|
+ // let a = {
|
|
288
|
+ // cmd: "queue/queuelist",
|
|
289
|
+ // data: {page:this.page,size:6,sort:0}
|
|
290
|
+ // };
|
|
291
|
+ // this.websocketSend(a)
|
|
292
|
+ // setTimeout(() => {
|
|
293
|
+ // // this.websocketMess();
|
|
294
|
+ // this.lineUpList
|
|
295
|
+ // }, 1000);
|
|
296
|
+
|
|
297
|
+ // }
|
|
298
|
+ // console.log('切换时间',this.queueConfig)
|
|
299
|
+ // }, 1000 * parseInt(this.queueConfig.qhsj));
|
|
300
|
+ // this.timerID = setInterval(() => {
|
|
301
|
+ // this.updateTime()
|
|
302
|
+ // }, 1000);
|
|
303
|
+ // this.newTimes = setInterval(() => {
|
|
304
|
+ // // this.reload()
|
|
305
|
+ // console.log('1222222333333333');
|
|
306
|
+ // sessionStorage.setItem('lineUpKey',1);
|
|
307
|
+ // window.location.reload()
|
|
308
|
+ // }, 1000 * 60 * 30);
|
309
|
309
|
},
|
310
|
310
|
beforeDestroy(){
|
311
|
311
|
clearInterval(this.timer);// 清除定时器
|
|
@@ -342,7 +342,7 @@ export default {
|
342
|
342
|
let res = JSON.parse(e.data);
|
343
|
343
|
// let res = re.data;
|
344
|
344
|
console.log('res',res)
|
345
|
|
-
|
|
345
|
+
|
346
|
346
|
if(res.channel == 'queue/join'){
|
347
|
347
|
if(res.data.type == 2){
|
348
|
348
|
this.queueConfig = res.data.queueConfig
|
|
@@ -373,7 +373,7 @@ export default {
|
373
|
373
|
console.log(999999999999,res.data)
|
374
|
374
|
let second = res.data.second
|
375
|
375
|
let newType = res.data.type
|
376
|
|
-
|
|
376
|
+
|
377
|
377
|
console.log('执行几次',this.voiceNum)
|
378
|
378
|
if(this.voice == true){
|
379
|
379
|
this.patient_id = res.data.patientInfo.patient_id
|
|
@@ -392,7 +392,7 @@ export default {
|
392
|
392
|
this.voicePrompt(res.data.callVolUrl)
|
393
|
393
|
}else{
|
394
|
394
|
this.voiceNum = 1;
|
395
|
|
- this.voice = true
|
|
395
|
+ this.voice = true
|
396
|
396
|
let obj = {
|
397
|
397
|
cmd: "queue/callreturn",
|
398
|
398
|
data: {patient_id:this.patient_id,type:newType},
|
|
@@ -410,13 +410,13 @@ export default {
|
410
|
410
|
}
|
411
|
411
|
}else if(res.channel == 'updateCallList'){
|
412
|
412
|
this.receivingPatient = res.data.queue_list
|
413
|
|
-
|
|
413
|
+
|
414
|
414
|
}else if(res.channel == 'updateWaitCallList'){
|
415
|
415
|
this.waitDoctorList = res.data.queue_list
|
416
|
416
|
}else if(res.channel == 'updateUpCallList'){
|
417
|
417
|
this.upPatientList = res.data.queue_list
|
418
|
418
|
}
|
419
|
|
-
|
|
419
|
+
|
420
|
420
|
// else if(res.channel == "patientQueueInfo"){
|
421
|
421
|
// this.queueInfo = res.data.queueInfo
|
422
|
422
|
// let obj = {
|
|
@@ -424,7 +424,7 @@ export default {
|
424
|
424
|
// data: {page:1,size:10}
|
425
|
425
|
// };
|
426
|
426
|
// this.websocketSend(obj)
|
427
|
|
-
|
|
427
|
+
|
428
|
428
|
// }
|
429
|
429
|
}
|
430
|
430
|
},
|
|
@@ -505,7 +505,7 @@ export default {
|
505
|
505
|
border-radius: 15px;
|
506
|
506
|
display: flex;
|
507
|
507
|
flex-direction: column;
|
508
|
|
-
|
|
508
|
+
|
509
|
509
|
}
|
510
|
510
|
.lineUpMainLeftTitle{
|
511
|
511
|
// display: flex;
|
|
@@ -539,13 +539,13 @@ export default {
|
539
|
539
|
.lineUpListOne{
|
540
|
540
|
height:16%;
|
541
|
541
|
padding: 0.5%;
|
542
|
|
- //
|
|
542
|
+ //
|
543
|
543
|
// display: flex;
|
544
|
544
|
// justify-content: space-between;
|
545
|
545
|
align-items: center;
|
546
|
546
|
color:#1C6895;
|
547
|
547
|
>p{
|
548
|
|
-
|
|
548
|
+
|
549
|
549
|
width:25%;
|
550
|
550
|
text-align: center;
|
551
|
551
|
display: inline-block;
|