parent
fa4dca6682
commit
7d97ac5705
|
@ -605,7 +605,7 @@ public class TestPlanReportService {
|
||||||
public void delete(QueryTestPlanReportRequest request) {
|
public void delete(QueryTestPlanReportRequest request) {
|
||||||
List<String> deleteReportIds = request.getDataIds();
|
List<String> deleteReportIds = request.getDataIds();
|
||||||
if (request.isSelectAllDate()) {
|
if (request.isSelectAllDate()) {
|
||||||
deleteReportIds = this.getAllApiIdsByFontedSelect(request.getFilters(), request.getName(), request.getProjectId(), request.getUnSelectIds(), request.getCombine());
|
deleteReportIds = this.getAllApiIdsByFrontedSelect(request.getFilters(), request.getName(), request.getProjectId(), request.getUnSelectIds(), request.getCombine());
|
||||||
}
|
}
|
||||||
if (CollectionUtils.isNotEmpty(deleteReportIds)) {
|
if (CollectionUtils.isNotEmpty(deleteReportIds)) {
|
||||||
TestPlanReportExample deleteReportExample = new TestPlanReportExample();
|
TestPlanReportExample deleteReportExample = new TestPlanReportExample();
|
||||||
|
@ -623,7 +623,7 @@ public class TestPlanReportService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<String> getAllApiIdsByFontedSelect(Map<String, List<String>> filters, String name, String projectId, List<String> unSelectIds, Map<String, Object> combine) {
|
private List<String> getAllApiIdsByFrontedSelect(Map<String, List<String>> filters, String name, String projectId, List<String> unSelectIds, Map<String, Object> combine) {
|
||||||
QueryTestPlanReportRequest request = new QueryTestPlanReportRequest();
|
QueryTestPlanReportRequest request = new QueryTestPlanReportRequest();
|
||||||
request.setFilters(filters);
|
request.setFilters(filters);
|
||||||
request.setName(name);
|
request.setName(name);
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
<ms-tag v-if="value == 'Prepare'" type="info" :content="$t('test_track.plan.plan_status_prepare')"/>
|
<ms-tag v-if="value == 'Prepare'" type="info" :content="$t('test_track.plan.plan_status_prepare')"/>
|
||||||
<ms-tag v-if="value == 'Underway'" type="primary" :content="$t('test_track.plan.plan_status_running')"/>
|
<ms-tag v-if="value == 'Underway'" type="primary" :content="$t('test_track.plan.plan_status_running')"/>
|
||||||
<ms-tag v-if="value == 'Pass'" type="success" :content="$t('test_track.plan_view.pass')"/>
|
<ms-tag v-if="value == 'Pass'" type="success" :content="$t('test_track.plan_view.pass')"/>
|
||||||
<ms-tag v-if="value == 'UnPass'" type="danger" content="$t('test_track.plan_view.not_pass')"/>
|
<ms-tag v-if="value == 'UnPass'" type="danger" :content="$t('test_track.plan_view.not_pass')"/>
|
||||||
|
<ms-tag v-if="value == 'STOP'" type="info" :content="$t('test_track.plan_view.stop')"/>
|
||||||
|
<ms-tag v-if="value == 'stop'" type="info" :content="$t('test_track.plan_view.stop')"/>
|
||||||
<ms-tag v-if="value == 'Failure'" type="danger" :content="$t('test_track.plan_view.failure')"/>
|
<ms-tag v-if="value == 'Failure'" type="danger" :content="$t('test_track.plan_view.failure')"/>
|
||||||
<ms-tag v-if="value == 'Blocking'" type="warning" :content="$t('test_track.plan_view.blocking')"/>
|
<ms-tag v-if="value == 'Blocking'" type="warning" :content="$t('test_track.plan_view.blocking')"/>
|
||||||
<ms-tag v-if="value == 'Skip'" type="info" :content="$t('test_track.plan_view.skip')"/>
|
<ms-tag v-if="value == 'Skip'" type="info" :content="$t('test_track.plan_view.skip')"/>
|
||||||
|
|
|
@ -42,8 +42,9 @@
|
||||||
prop="lastResult">
|
prop="lastResult">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<status-table-item v-if="scope.row.execResult === 'success'" :value="'Pass'"/>
|
<status-table-item v-if="scope.row.execResult === 'success'" :value="'Pass'"/>
|
||||||
<status-table-item v-if="scope.row.execResult === 'error'" :value="'Failure'"/>
|
<status-table-item v-else-if="scope.row.execResult === 'error'" :value="'Failure'"/>
|
||||||
<status-table-item v-if="scope.row.execResult != 'error' && scope.row.execResult != 'success'" :value="'Prepare'"/>
|
<status-table-item v-else-if="scope.row.execResult === 'STOP'" :value="'STOP'"/>
|
||||||
|
<status-table-item v-else :value="'Prepare'"/>
|
||||||
</template>
|
</template>
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
</ms-table>
|
</ms-table>
|
||||||
|
|
|
@ -42,8 +42,9 @@
|
||||||
prop="lastResult">
|
prop="lastResult">
|
||||||
<template v-slot:default="{row}">
|
<template v-slot:default="{row}">
|
||||||
<status-table-item v-if="row.lastResult === 'Success'" :value="'Pass'"/>
|
<status-table-item v-if="row.lastResult === 'Success'" :value="'Pass'"/>
|
||||||
<status-table-item v-if="row.lastResult === 'Fail'" :value="'Failure'"/>
|
<status-table-item v-else-if="row.lastResult === 'Fail'" :value="'Failure'"/>
|
||||||
<status-table-item v-if="row.lastResult != 'Fail' && row.lastResult != 'Success'" :value="'Prepare'"/>
|
<status-table-item v-else-if="row.lastResult === 'STOP'" :value="'STOP'"/>
|
||||||
|
<status-table-item v-else :value="'Prepare'"/>
|
||||||
</template>
|
</template>
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
</ms-table>
|
</ms-table>
|
||||||
|
|
|
@ -2153,6 +2153,7 @@ export default {
|
||||||
not_pass: "UnPass",
|
not_pass: "UnPass",
|
||||||
failure: "Failure",
|
failure: "Failure",
|
||||||
blocking: "Blocking",
|
blocking: "Blocking",
|
||||||
|
stop: "Stop",
|
||||||
skip: "Skip",
|
skip: "Skip",
|
||||||
actual_result: "Actual result",
|
actual_result: "Actual result",
|
||||||
step_result: "Step result",
|
step_result: "Step result",
|
||||||
|
|
|
@ -2157,6 +2157,7 @@ export default {
|
||||||
not_pass: "不通过",
|
not_pass: "不通过",
|
||||||
failure: "失败",
|
failure: "失败",
|
||||||
blocking: "阻塞",
|
blocking: "阻塞",
|
||||||
|
stop: "停止",
|
||||||
skip: "跳过",
|
skip: "跳过",
|
||||||
actual_result: "实际结果",
|
actual_result: "实际结果",
|
||||||
step_result: "步骤执行结果",
|
step_result: "步骤执行结果",
|
||||||
|
|
|
@ -2157,6 +2157,7 @@ export default {
|
||||||
not_pass: "不通過",
|
not_pass: "不通過",
|
||||||
failure: "失敗",
|
failure: "失敗",
|
||||||
blocking: "阻塞",
|
blocking: "阻塞",
|
||||||
|
stop: "停止",
|
||||||
skip: "跳過",
|
skip: "跳過",
|
||||||
actual_result: "實際結果",
|
actual_result: "實際結果",
|
||||||
step_result: "步驟執行結果",
|
step_result: "步驟執行結果",
|
||||||
|
|
Loading…
Reference in New Issue