diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugLogService.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugLogService.java index c8db032ba2..f7609dfaef 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugLogService.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugLogService.java @@ -39,7 +39,7 @@ public class BugLogService { * @return 日志 */ public LogDTO addLog(BugEditRequest request, List files) { - LogDTO dto = new LogDTO(request.getProjectId(), null, null, null, OperationLogType.ADD.name(), OperationLogModule.BUG_MANAGEMENT_CREATE, request.getTitle()); + LogDTO dto = new LogDTO(request.getProjectId(), null, null, null, OperationLogType.ADD.name(), OperationLogModule.BUG_MANAGEMENT_INDEX, request.getTitle()); dto.setHistory(true); dto.setPath("/bug/add"); dto.setMethod(HttpMethodConstants.POST.name()); @@ -56,7 +56,7 @@ public class BugLogService { */ public LogDTO updateLog(BugEditRequest request, List files) { BugDTO history = getOriginalValue(request.getId()); - LogDTO dto = new LogDTO(request.getProjectId(), null, request.getId(), null, OperationLogType.UPDATE.name(), OperationLogModule.BUG_MANAGEMENT_UPDATE, request.getTitle()); + LogDTO dto = new LogDTO(request.getProjectId(), null, request.getId(), null, OperationLogType.UPDATE.name(), OperationLogModule.BUG_MANAGEMENT_INDEX, request.getTitle()); dto.setHistory(true); dto.setPath("/bug/update"); dto.setMethod(HttpMethodConstants.POST.name()); diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/log/constants/OperationLogModule.java b/backend/services/system-setting/src/main/java/io/metersphere/system/log/constants/OperationLogModule.java index 8cfa47c15b..a32f5e7ba9 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/log/constants/OperationLogModule.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/log/constants/OperationLogModule.java @@ -145,8 +145,6 @@ public class OperationLogModule { // 缺陷管理 public static final String BUG_MANAGEMENT_INDEX = "BUG_MANAGEMENT_BUG_INDEX"; public static final String BUG_MANAGEMENT_RECYCLE = "BUG_MANAGEMENT_BUG_RECYCLE"; - public static final String BUG_MANAGEMENT_CREATE = "BUG_MANAGEMENT_BUG_INDEX_CREATE"; - public static final String BUG_MANAGEMENT_UPDATE = "BUG_MANAGEMENT_BUG_INDEX_UPDATE"; //测试计划 public static final String TEST_PLAN = "TEST_PLAN"; public static final String TEST_PLAN_MODULE = "TEST_PLAN_MODULE"; diff --git a/frontend/src/config/pathMap.ts b/frontend/src/config/pathMap.ts index 9a29c88cbc..1ca618aac4 100644 --- a/frontend/src/config/pathMap.ts +++ b/frontend/src/config/pathMap.ts @@ -124,22 +124,6 @@ export const pathMap: PathMapItem[] = [ route: RouteEnum.BUG_MANAGEMENT_INDEX, permission: [], level: MENU_LEVEL[2], - children: [ - { - key: 'BUG_MANAGEMENT_BUG_INDEX_CREATE', // 缺陷管理-创建缺陷 - locale: 'bugManagement.addBug', - route: RouteEnum.BUG_MANAGEMENT_DETAIL, - permission: [], - level: MENU_LEVEL[2], - }, - { - key: 'BUG_MANAGEMENT_BUG_INDEX_UPDATE', // 缺陷管理-更新缺陷 - locale: 'bugManagement.editBug', - route: RouteEnum.BUG_MANAGEMENT_DETAIL, - permission: [], - level: MENU_LEVEL[2], - }, - ], }, { key: 'BUG_MANAGEMENT_BUG_RECYCLE', // 缺陷管理-回收站 @@ -163,23 +147,6 @@ export const pathMap: PathMapItem[] = [ route: RouteEnum.CASE_MANAGEMENT_CASE, permission: [], level: MENU_LEVEL[2], - children: [ - { - key: 'CASE_MANAGEMENT_CASE_CREATE', // 功能测试-功能用例创建 - locale: 'menu.caseManagement.featureCaseDetail', - route: RouteEnum.CASE_MANAGEMENT_CASE_DETAIL, - permission: [], - level: MENU_LEVEL[2], - }, - { - key: 'CASE_MANAGEMENT_CASE_UPDATE', // 功能测试-功能用例更新 - locale: 'menu.caseManagement.featureCaseEdit', - route: RouteEnum.CASE_MANAGEMENT_CASE_DETAIL, - permission: [], - level: MENU_LEVEL[2], - alias: 'FUNCTIONAL_CASE_TASK', - }, - ], }, { key: 'CASE_MANAGEMENT_REVIEW', // 功能测试-功能用例-用例评审 @@ -187,46 +154,6 @@ export const pathMap: PathMapItem[] = [ route: RouteEnum.CASE_MANAGEMENT_REVIEW, permission: [], level: MENU_LEVEL[2], - children: [ - { - key: 'CASE_MANAGEMENT_REVIEW_LIST', // 功能测试-功能用例-用例评审列表 - locale: 'menu.caseManagement.caseManagementReview', - route: RouteEnum.CASE_MANAGEMENT_REVIEW, - permission: [], - level: MENU_LEVEL[2], - }, - { - key: 'CASE_MANAGEMENT_REVIEW_CREATE', // 功能测试-功能用例-创建评审 - locale: 'menu.caseManagement.caseManagementReviewCreate', - route: RouteEnum.CASE_MANAGEMENT_REVIEW_CREATE, - permission: [], - level: MENU_LEVEL[2], - }, - { - key: 'CASE_MANAGEMENT_REVIEW_UPDATE', // 功能测试-功能用例-更新评审 - locale: 'menu.caseManagement.caseManagementCaseReviewEdit', - route: RouteEnum.CASE_MANAGEMENT_REVIEW_CREATE, - permission: [], - level: MENU_LEVEL[2], - }, - { - key: 'CASE_MANAGEMENT_REVIEW_DETAIL', // 功能测试-功能用例-评审详情 - locale: 'menu.caseManagement.caseManagementReviewDetail', - route: RouteEnum.CASE_MANAGEMENT_REVIEW_DETAIL, - permission: [], - level: MENU_LEVEL[2], - alias: 'CASE_REVIEW_TASK', - children: [ - { - key: 'CASE_MANAGEMENT_REVIEW_DETAIL_CASE_DETAIL', // 功能测试-功能用例-评审详情-用例详情 - locale: 'menu.caseManagement.caseManagementReviewDetailCaseDetail', - route: RouteEnum.CASE_MANAGEMENT_REVIEW_DETAIL_CASE_DETAIL, - permission: [], - level: MENU_LEVEL[2], - }, - ], - }, - ], }, ], },