feat(UI测试): UI编辑页支持生成报告

This commit is contained in:
chenjianxing 2022-04-01 14:39:30 +08:00 committed by jianxing
parent a14582f9f9
commit 8c0c74c6c4
5 changed files with 5 additions and 5 deletions

View File

@ -545,7 +545,7 @@ export default {
return getCurrentProjectID();
},
isUi() {
return this.report.reportType.startsWith("UI");
return this.report.reportType && this.report.reportType.startsWith("UI");
},
}
}

View File

@ -95,7 +95,7 @@ export default {
}
},
isUi() {
return this.report.reportType.startsWith("UI");
return this.report.reportType && this.report.reportType.startsWith("UI");
},
},
data() {

View File

@ -273,7 +273,7 @@ export default {
return this.content.errorCode + " / " + this.content.totalAssertions;
},
isUi() {
return this.report.reportType.startsWith("UI");
return this.report.reportType && this.report.reportType.startsWith("UI");
},
},
}

View File

@ -50,7 +50,7 @@ export default {
},
computed: {
isUi() {
return this.report.reportType.startsWith("UI");
return this.report.reportType && this.report.reportType.startsWith("UI");
},
},
methods: {

View File

@ -67,7 +67,7 @@ export default {
},
computed: {
label() {
return this.command.label ? commandDefinition[this.command.label].cnName : '';
return this.command.label && commandDefinition[this.command.label] ? commandDefinition[this.command.label].cnName : '';
},
isUnexecute() {
return this.result && this.result.status === 'unexecute';