Browse Source

bug修改

wangfei 6 years ago
parent
commit
e66e4920d9
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      src/pages/system/newOrder/newOrderList/index.vue

+ 1
- 3
src/pages/system/newOrder/newOrderList/index.vue View File

128
     })
128
     })
129
   },
129
   },
130
   beforeRouteLeave (to, from, next) {
130
   beforeRouteLeave (to, from, next) {
131
-    console.log('离开案场')
132
     this.wsID = ''
131
     this.wsID = ''
133
     this.ws.close()
132
     this.ws.close()
134
     this.updateList([])
133
     this.updateList([])
169
       if (!this.businessStatus) {
168
       if (!this.businessStatus) {
170
         this.ws.close()
169
         this.ws.close()
171
       }
170
       }
172
-
173
       if (this.businessStatus && (this.wsID !== this.CaseId) && this.CaseId) {
171
       if (this.businessStatus && (this.wsID !== this.CaseId) && this.CaseId) {
174
         this.ws.close()
172
         this.ws.close()
175
         this.initWebSocket()
173
         this.initWebSocket()
174
+        this.wsID = this.CaseId
176
       }
175
       }
177
-      this.wsID = this.CaseId
178
     },
176
     },
179
     refreshList () {
177
     refreshList () {
180
       this.interval = setInterval(() => {
178
       this.interval = setInterval(() => {