|
@@ -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 = {
|
|
@@ -230,7 +232,8 @@ export default {
|
230
|
232
|
data: {page:1,size:10,sort:1}
|
231
|
233
|
};
|
232
|
234
|
this.websocketSend(obj)
|
233
|
|
- setTimeout(() => {
|
|
235
|
+
|
|
236
|
+ this.ds = setTimeout(() => {
|
234
|
237
|
this.queueInfo = {}
|
235
|
238
|
}, 60000);
|
236
|
239
|
|