diff --git a/backend/src/main/java/io/metersphere/commons/constants/TestPlanStatus.java b/backend/src/main/java/io/metersphere/commons/constants/TestPlanStatus.java index 557decfe54..7068ab5748 100644 --- a/backend/src/main/java/io/metersphere/commons/constants/TestPlanStatus.java +++ b/backend/src/main/java/io/metersphere/commons/constants/TestPlanStatus.java @@ -1,5 +1,5 @@ package io.metersphere.commons.constants; public enum TestPlanStatus { - Prepare, Underway, Completed, Finished + Prepare, Underway, Completed, Finished,Archived } diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index 6432dff2ab..355842e63e 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -470,6 +470,10 @@ public class TestPlanService { statusList.addAll(testPlanScenarioCaseService.getExecResultByPlanId(testPlanId)); statusList.addAll(testPlanLoadCaseService.getStatus(testPlanId)); TestPlanWithBLOBs testPlanWithBLOBs = testPlanMapper.selectByPrimaryKey(testPlanId); + //如果测试计划是已归档状态,不处理 + if(testPlanWithBLOBs.getStatus().equals(TestPlanStatus.Archived.name())){ + return; + } testPlanWithBLOBs.setId(testPlanId); if (statusList.size() == 0) { // 原先status不是prepare, 但删除所有关联用例的情况 testPlanWithBLOBs.setStatus(TestPlanStatus.Prepare.name()); diff --git a/frontend/src/business/components/common/components/table/MsTable.vue b/frontend/src/business/components/common/components/table/MsTable.vue index 4f5336e1b3..dbbb52763c 100644 --- a/frontend/src/business/components/common/components/table/MsTable.vue +++ b/frontend/src/business/components/common/components/table/MsTable.vue @@ -521,16 +521,6 @@ export default {