修改数据获取
This commit is contained in:
parent
3410e6d9b9
commit
af98a7ae8b
|
@ -189,23 +189,18 @@
|
||||||
},
|
},
|
||||||
websocketonmessage: function (e) {
|
websocketonmessage: function (e) {
|
||||||
var data = eval("(" + e.data + ")");
|
var data = eval("(" + e.data + ")");
|
||||||
console.log(data);
|
|
||||||
//处理订阅信息
|
|
||||||
if(data.content.length >0){
|
if(data.content.length >0){
|
||||||
var char = "当前同步百分比:";
|
|
||||||
let index = data.content.indexOf(char);
|
|
||||||
if (index >= 0) {
|
|
||||||
let result = data.content.substring(index + char.length,data.content.length - 1); // 获取 "V" 及其后所有字符
|
|
||||||
this.percent = parseInt(result) ;
|
|
||||||
}
|
|
||||||
this.contentList.unshift(data.content);
|
this.contentList.unshift(data.content);
|
||||||
}
|
}
|
||||||
|
if(data.currProgress != null){
|
||||||
|
this.percent = data.currProgress;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
websocketclose: function (e) {
|
websocketclose: function (e) {
|
||||||
console.log("connection closed (" + e + ")");
|
console.log("connection closed (" + e + ")");
|
||||||
},
|
},
|
||||||
dataAdd(){
|
dataAdd(){
|
||||||
getAction("/rawToStandard/syncMultipleSchemas?dataTaskId=123").then((res) => {
|
getAction("/dataCleaning/cleaning?taskId=3806ce79-dc28-48a3-9250-c7729e6b3ad4").then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user