refactor(任务中心): 查看接口测试用例结果时任务中心不自动关闭

This commit is contained in:
shiziyuan9527 2021-08-31 17:40:22 +08:00 committed by 刘瑞斌
parent fae6cd1797
commit dc8f4e8fc2
1 changed files with 3 additions and 2 deletions

View File

@ -203,7 +203,7 @@ export default {
}, },
close() { close() {
this.visible = false; this.visible = false;
this.taskVisible = false; // this.taskVisible = false;
this.showType = ""; this.showType = "";
if (this.websocket && this.websocket.close instanceof Function) { if (this.websocket && this.websocket.close instanceof Function) {
this.websocket.close(); this.websocket.close();
@ -240,14 +240,15 @@ export default {
if (status) { if (status) {
status = row.executionStatus.toLowerCase(); status = row.executionStatus.toLowerCase();
if (status === 'saved' || status === 'completed' || status === 'success' || status === 'error') { if (status === 'saved' || status === 'completed' || status === 'success' || status === 'error') {
this.taskVisible = false;
switch (row.executionModule) { switch (row.executionModule) {
case "SCENARIO": case "SCENARIO":
this.taskVisible = false;
this.$router.push({ this.$router.push({
path: '/api/automation/report/view/' + row.id, path: '/api/automation/report/view/' + row.id,
}); });
break; break;
case "PERFORMANCE": case "PERFORMANCE":
this.taskVisible = false;
this.$router.push({ this.$router.push({
path: '/performance/report/view/' + row.id, path: '/performance/report/view/' + row.id,
}); });