fix: 测试计划报告,测试计划结果为空

This commit is contained in:
chenjianxing 2020-12-23 17:21:07 +08:00
parent e61d0b7860
commit f6f142d7ba
2 changed files with 5 additions and 21 deletions

View File

@ -122,13 +122,13 @@
<select id="list" resultType="io.metersphere.track.dto.TestPlanCaseDTO">
select test_plan_test_case.id as id, test_case.id as caseId, test_case.name, test_case.priority,
test_case.type,test_case.test_id as testId,
test_case.type,test_case.test_id as testId,test_case.node_id,
test_case.node_path, test_case.method, test_case.num, test_plan_test_case.executor, test_plan_test_case.status,
test_plan_test_case.update_time, test_case_node.name as model, project.name as projectName,
test_plan_test_case.plan_id as planId
from test_plan_test_case
inner join test_case on test_plan_test_case.case_id = test_case.id
left join test_case_node on test_case_node.id=test_case.node_id
left join test_case_node on test_case_node.id = test_case.node_id
inner join project on project.id = test_case.project_id
<where>
<if test="request.combine != null">

View File

@ -2,8 +2,7 @@
<common-component :title="$t('test_track.plan_view.result_statistics')">
<div :class="{'show-one': isShowOne}">
<div class="char-component">
<div class="char-item" v-if="showFunctional">
<ms-pie-chart v-if="isShow" :text="'功能测试用例'"
:name="$t('test_track.plan_view.test_result')" :data="functionalCharData"/>
@ -18,8 +17,6 @@
<ms-pie-chart v-if="isShow" :text="'场景测试用例'"
:name="$t('test_track.plan_view.test_result')" :data="scenarioCharData"/>
</div>
</div>
</common-component>
@ -85,19 +82,6 @@
},
showScenario() {
return this.executeResult.scenarioResult.length > 0;
},
isShowOne() {
let count = 0;
if (this.showFunctional) {
count++;
}
if (this.showApi) {
count++;
}
if (this.showScenario) {
count++;
}
return count === 1;
}
},
watch: {
@ -165,8 +149,8 @@
display: inline-block;
}
.show-one .char-item {
display: block;
.char-component {
text-align: center;
}
</style>