报告列表查看报告时添加状态判断

This commit is contained in:
shiziyuan9527 2020-04-02 14:57:52 +08:00
parent d800a15a79
commit 75a8516e98
1 changed files with 13 additions and 0 deletions

View File

@ -145,6 +145,19 @@
this.multipleSelection = val;
},
handleEdit(report) {
if (report.status === "Error") {
this.$message({
type: 'warning',
message: "报告生成错误,无法查看!"
});
return false
} else if (report.status === "Starting") {
this.$message({
type: 'info',
message: "报告生成中..."
});
return false
}
this.$router.push({
path: '/performance/report/view/' + report.id
})