fix(项目设置): 日志操作对象显示有误

--bug=1035363 --user=宋昌昌 【系统设置】组织-日志,请确认操作对象下拉框中子选项是否正确 https://www.tapd.cn/55049933/s/1481324
This commit is contained in:
song-cc-rock 2024-03-26 19:57:31 +08:00 committed by Craftsman
parent 7df04bc7bb
commit e041b29562
3 changed files with 2 additions and 77 deletions

View File

@ -39,7 +39,7 @@ public class BugLogService {
* @return 日志
*/
public LogDTO addLog(BugEditRequest request, List<MultipartFile> 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<MultipartFile> 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());

View File

@ -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";

View File

@ -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],
},
],
},
],
},
],
},