...
|
...
|
@@ -132,8 +132,8 @@ |
|
|
getExitDataAnalysis(_this.queryInfo).catch(error => {
|
|
|
// _this.$message.info("即将结束!请您稍候");
|
|
|
});
|
|
|
}
|
|
|
,
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 下载excel
|
|
|
*/
|
...
|
...
|
@@ -159,8 +159,8 @@ |
|
|
this.$message.error(error.toString());
|
|
|
});
|
|
|
|
|
|
}
|
|
|
,
|
|
|
},
|
|
|
|
|
|
down() {
|
|
|
// 创建a标签
|
|
|
const link = document.createElement('a');
|
...
|
...
|
@@ -172,8 +172,8 @@ |
|
|
document.body.appendChild(link);
|
|
|
// 自执行点击事件
|
|
|
link.click()
|
|
|
}
|
|
|
,
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 生成excel
|
|
|
*/
|
...
|
...
|
@@ -189,8 +189,8 @@ |
|
|
}).catch(error => {
|
|
|
this.$message.error(error.toString());
|
|
|
});
|
|
|
}
|
|
|
,
|
|
|
},
|
|
|
|
|
|
socket_onmessage: function (e) {
|
|
|
console.log("从websocket接收到新的消息-->>" + e.data);
|
|
|
//this.message = this.message + e.data + "\n";
|
...
|
...
|
@@ -211,19 +211,19 @@ |
|
|
this.socketResponse.socketTotalNum !== 0 && this.socketResponse.socketCurrentNum !== 0) {
|
|
|
this.generateExcel();
|
|
|
}
|
|
|
}
|
|
|
,
|
|
|
},
|
|
|
|
|
|
socket_onopen: function (e) {
|
|
|
console.log("websocket->>链接已链接");
|
|
|
}
|
|
|
,
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 重写日期函数格式化日期
|
|
|
*/
|
|
|
dataFormat(time) {
|
|
|
return `${time.getFullYear()}-${time.getMonth() + 1 >= 10 ? (time.getMonth() + 1) : '0' + (time.getMonth() + 1)}-${time.getDate() >= 10 ? time.getDate() : '0' + time.getDate()} ${time.getHours() >= 10 ? time.getHours() : '0' + time.getHours()}:${time.getMinutes() >= 10 ? time.getMinutes() : '0' + time.getMinutes()}:${time.getSeconds() >= 10 ? time.getSeconds() : '0' + time.getSeconds()}`;
|
|
|
}
|
|
|
,
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 将小数转换成百分比
|
|
|
* @param point
|
...
|
...
|
|