|  | @ -578,9 +578,9 @@ export default { | 
		
	
		
			
				|  |  |     caseId: { |  |  |     caseId: { | 
		
	
		
			
				|  |  |       handler: function(newV, oldV) { |  |  |       handler: function(newV, oldV) { | 
		
	
		
			
				|  |  |         this.queryForm() |  |  |         this.queryForm() | 
		
	
		
			
				|  |  |         if (this.isSearch === '3') { |  |  |  | 
		
	
		
			
				|  |  |           this.initWebSoket() |  |  |  | 
		
	
		
			
				|  |  |         } |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         // if (this.isSearch === '3') { | 
		
	
		
			
				|  |  |  |  |  |         //   this.initWebSoket() | 
		
	
		
			
				|  |  |  |  |  |         // } | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
	
		
			
				|  | @ -591,6 +591,7 @@ export default { | 
		
	
		
			
				|  |  |       clearTimeout(this.timeoutObj) |  |  |       clearTimeout(this.timeoutObj) | 
		
	
		
			
				|  |  |       clearTimeout(this.serverTimeoutObj) |  |  |       clearTimeout(this.serverTimeoutObj) | 
		
	
		
			
				|  |  |       this.ws.close() |  |  |       this.ws.close() | 
		
	
		
			
				|  |  |  |  |  |       this.ws = null | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   mounted() { |  |  |   mounted() { | 
		
	
	
		
			
				|  | @ -749,6 +750,7 @@ export default { | 
		
	
		
			
				|  |  |         if (self.ws.readyState == 1) { // 如果连接正常 |  |  |         if (self.ws.readyState == 1) { // 如果连接正常 | 
		
	
		
			
				|  |  |           self.ws.send('heartCheck') |  |  |           self.ws.send('heartCheck') | 
		
	
		
			
				|  |  |         } else { // 否则重连 |  |  |         } else { // 否则重连 | 
		
	
		
			
				|  |  |  |  |  |           console.log('start') | 
		
	
		
			
				|  |  |           self.reconnect() |  |  |           self.reconnect() | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
		
			
				|  |  |         self.serverTimeoutObj = setTimeout(function() { |  |  |         self.serverTimeoutObj = setTimeout(function() { | 
		
	
	
		
			
				|  | @ -769,26 +771,26 @@ export default { | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
		
			
				|  |  |         this.ws.onclose = function() { |  |  |         this.ws.onclose = function() { | 
		
	
		
			
				|  |  |           self.connectFlag = false |  |  |           self.connectFlag = false | 
		
	
		
			
				|  |  |           self.reconnect() |  |  |  | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
		
			
				|  |  |         this.ws.onerror = function() { |  |  |         this.ws.onerror = function() { | 
		
	
		
			
				|  |  |           self.connectFlag = false |  |  |           self.connectFlag = false | 
		
	
		
			
				|  |  |           self.reconnect() |  |  |           self.reconnect() | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
		
			
				|  |  |         this.ws.onmessage = (msg) => { |  |  |         this.ws.onmessage = (msg) => { | 
		
	
		
			
				|  |  |           if (this.dataForm.ygjcDsOd || |  |  |  | 
		
	
		
			
				|  |  |               this.dataForm.ygjcDcOd || |  |  |  | 
		
	
		
			
				|  |  |               this.dataForm.ygjcAOd || |  |  |  | 
		
	
		
			
				|  |  |               this.dataForm.ygjcVaOd || |  |  |  | 
		
	
		
			
				|  |  |               this.dataForm.ygjcAddOd || |  |  |  | 
		
	
		
			
				|  |  |               this.dataForm.ygjcDsOs || |  |  |  | 
		
	
		
			
				|  |  |               this.dataForm.ygjcDcOs || |  |  |  | 
		
	
		
			
				|  |  |               this.dataForm.ygjcAOs || |  |  |  | 
		
	
		
			
				|  |  |               this.dataForm.ygjcVaOs || |  |  |  | 
		
	
		
			
				|  |  |               this.dataForm.ygjcAddOs) { |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           const message = JSON.parse(msg.data) | 
		
	
		
			
				|  |  |  |  |  |           if (!(this.dataForm.ygjcDsOd === message.RData.DS && | 
		
	
		
			
				|  |  |  |  |  |               this.dataForm.ygjcDcOd === message.RData.DC && | 
		
	
		
			
				|  |  |  |  |  |               this.dataForm.ygjcAOd === message.RData.AXIS && | 
		
	
		
			
				|  |  |  |  |  |               this.dataForm.ygjcVaOd === message.RData.VA && | 
		
	
		
			
				|  |  |  |  |  |               this.dataForm.ygjcAddOd === message.RData.ADD && | 
		
	
		
			
				|  |  |  |  |  |               this.dataForm.ygjcDsOs === message.LData.DS && | 
		
	
		
			
				|  |  |  |  |  |               this.dataForm.ygjcDcOs === message.LData.DC && | 
		
	
		
			
				|  |  |  |  |  |               this.dataForm.ygjcAOs === message.LData.AXIS && | 
		
	
		
			
				|  |  |  |  |  |               this.dataForm.ygjcVaOs === message.LData.VA && | 
		
	
		
			
				|  |  |  |  |  |               this.dataForm.ygjcAddOs === message.LData.ADD)) { | 
		
	
		
			
				|  |  |             this.$confirm('是否确定更新数据?').then(() => { |  |  |             this.$confirm('是否确定更新数据?').then(() => { | 
		
	
		
			
				|  |  |               this.setYgData(msg) |  |  |               this.setYgData(msg) | 
		
	
		
			
				|  |  |             }).catch() |  |  |  | 
		
	
		
			
				|  |  |  |  |  |             }).catch(() => {}) | 
		
	
		
			
				|  |  |           } |  |  |           } | 
		
	
		
			
				|  |  |           self.resetHeart() |  |  |           self.resetHeart() | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
	
		
			
				|  | 
 |