|
@@ -656,8 +656,6 @@ let params = {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
request(params)
|
|
request(params)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
@@ -686,10 +684,10 @@ let params = {
|
|
},
|
|
},
|
|
websocketonmessage(e){ //数据接收
|
|
websocketonmessage(e){ //数据接收
|
|
|
|
|
|
- this.loadingopen();
|
|
|
|
|
|
+ this.loadingopen();
|
|
console.log(e);
|
|
console.log(e);
|
|
// setTimeout(() => {
|
|
// setTimeout(() => {
|
|
- // this.loadingend(this.loadingopen());
|
|
|
|
|
|
+ // this.loadingend(this.loadingopen());
|
|
// // loading.close();
|
|
// // loading.close();
|
|
// }, 30000);
|
|
// }, 30000);
|
|
|
|
|
|
@@ -716,14 +714,9 @@ let params = {
|
|
if(data.msgType=='vector_param'){
|
|
if(data.msgType=='vector_param'){
|
|
sessionStorage.setItem("vectorparam",JSON.stringify(data));
|
|
sessionStorage.setItem("vectorparam",JSON.stringify(data));
|
|
this.vectorparam=redata;
|
|
this.vectorparam=redata;
|
|
-
|
|
|
|
}
|
|
}
|
|
if(data.msgType=='stream_param'){
|
|
if(data.msgType=='stream_param'){
|
|
- // sessionStorage.setItem("streamparam",JSON.stringify(data));
|
|
|
|
- // this.vectorparam=redata;
|
|
|
|
this.$refs.hcfd.streamdata(JSON.stringify(data))
|
|
this.$refs.hcfd.streamdata(JSON.stringify(data))
|
|
- } else{
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}else if(redata.action=='LineDisplay'){
|
|
}else if(redata.action=='LineDisplay'){
|
|
@@ -738,8 +731,6 @@ let params = {
|
|
sessionStorage.setItem("dataslicedisplay",JSON.stringify(redata.paramJson));
|
|
sessionStorage.setItem("dataslicedisplay",JSON.stringify(redata.paramJson));
|
|
this.$refs.hcfd.addparam();
|
|
this.$refs.hcfd.addparam();
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}else if(redata.action=='SliceDisplayUpdate'){
|
|
}else if(redata.action=='SliceDisplayUpdate'){
|
|
@@ -750,13 +741,11 @@ let params = {
|
|
sessionStorage.setItem("updateparam",JSON.stringify(redata.paramJson));
|
|
sessionStorage.setItem("updateparam",JSON.stringify(redata.paramJson));
|
|
this.$refs.hcfd.updataparam();
|
|
this.$refs.hcfd.updataparam();
|
|
}
|
|
}
|
|
-
|
|
|
|
}else if(redata.action=='StreamDisplayCreate'){
|
|
}else if(redata.action=='StreamDisplayCreate'){
|
|
let streamError=JSON.parse(redata.paramJson)
|
|
let streamError=JSON.parse(redata.paramJson)
|
|
if(streamError.hasOwnProperty('Error')){
|
|
if(streamError.hasOwnProperty('Error')){
|
|
this.loadingend(this.loadingopen());
|
|
this.loadingend(this.loadingopen());
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
return true;
|
|
return true;
|
|
@@ -765,10 +754,6 @@ let params = {
|
|
return false;
|
|
return false;
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
websocketsend(Data){//数据发送
|
|
websocketsend(Data){//数据发送
|
|
this.websock.send(Data);
|
|
this.websock.send(Data);
|