fix(测试跟踪): 修复测试计划报告不同状态的用例没有展示的问题
This commit is contained in:
parent
1ce98885db
commit
bf9d09d539
|
@ -117,11 +117,8 @@ import FunctionalCases from "@/business/plan/view/comonents/report/detail/compon
|
||||||
import FunctionalIssueList from "@/business/plan/view/comonents/report/detail/component/FunctionalIssueList";
|
import FunctionalIssueList from "@/business/plan/view/comonents/report/detail/component/FunctionalIssueList";
|
||||||
import TestPlanReportContainer from "@/business/plan/view/comonents/report/detail/TestPlanReportContainer";
|
import TestPlanReportContainer from "@/business/plan/view/comonents/report/detail/TestPlanReportContainer";
|
||||||
import TabPaneCount from "@/business/plan/view/comonents/report/detail/component/TabPaneCount";
|
import TabPaneCount from "@/business/plan/view/comonents/report/detail/component/TabPaneCount";
|
||||||
import { hasPermission } from "metersphere-frontend/src/utils/permission";
|
import {hasPermission} from "metersphere-frontend/src/utils/permission";
|
||||||
import {
|
import {getPlanFunctionAllCase, getSharePlanFunctionAllCase,} from "@/api/remote/plan/test-plan";
|
||||||
getPlanFunctionAllCase,
|
|
||||||
getSharePlanFunctionAllCase,
|
|
||||||
} from "@/api/remote/plan/test-plan";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TestPlanFunctionalReport",
|
name: "TestPlanFunctionalReport",
|
||||||
|
@ -248,6 +245,9 @@ export default {
|
||||||
case "failure":
|
case "failure":
|
||||||
_failureTestCase.push(data[i]);
|
_failureTestCase.push(data[i]);
|
||||||
break;
|
break;
|
||||||
|
case "Failure":
|
||||||
|
_failureTestCase.push(data[i]);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -260,9 +260,9 @@ export default {
|
||||||
},
|
},
|
||||||
getAllFunctionalTestCase() {
|
getAllFunctionalTestCase() {
|
||||||
if (this.isTemplate || this.isDb) {
|
if (this.isTemplate || this.isDb) {
|
||||||
this.allTestCase = this.report.functionAllCases
|
this.initAllTestCase(this.report.functionAllCases
|
||||||
? this.report.functionAllCases
|
? this.report.functionAllCases
|
||||||
: [];
|
: []);
|
||||||
} else if (this.isShare) {
|
} else if (this.isShare) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
let param = this.getStatusList();
|
let param = this.getStatusList();
|
||||||
|
|
|
@ -158,7 +158,8 @@ export default {
|
||||||
this.currentPage = 1;
|
this.currentPage = 1;
|
||||||
this.filterCases = this.allTestCase.filter(
|
this.filterCases = this.allTestCase.filter(
|
||||||
(e) =>
|
(e) =>
|
||||||
e.name.includes(this.keyword) || e.customNum.includes(this.keyword)
|
(e.name && e.name.includes(this.keyword))
|
||||||
|
|| (e.num + '').includes(this.keyword)
|
||||||
);
|
);
|
||||||
this.handlePageChange(this.currentPage);
|
this.handlePageChange(this.currentPage);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue