diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/mapper/ExtBugRelateCaseMapper.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/mapper/ExtBugRelateCaseMapper.java index e80e10679d..04598646d6 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/mapper/ExtBugRelateCaseMapper.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/mapper/ExtBugRelateCaseMapper.java @@ -21,10 +21,9 @@ public interface ExtBugRelateCaseMapper { /** * 获取缺陷关联的用例模块树 * @param request 请求参数 - * @param deleted 是否删除状态 * @return 模块树集合 */ - List getRelateCaseModule(@Param("request") AssociateCaseModuleRequest request, @Param("deleted") boolean deleted); + List getRelateCaseModule(@Param("request") AssociateCaseModuleRequest request); /** * 获取缺陷关联的用例模块树数量 diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/mapper/ExtBugRelateCaseMapper.xml b/backend/services/bug-management/src/main/java/io/metersphere/bug/mapper/ExtBugRelateCaseMapper.xml index e51bb44f57..aaa4beb8c9 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/mapper/ExtBugRelateCaseMapper.xml +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/mapper/ExtBugRelateCaseMapper.xml @@ -9,8 +9,7 @@ fcm.pos, fcm.project_id from functional_case_module fcm left join functional_case fc on fc.module_id = fcm.id - where fc.deleted = #{deleted} - and fc.project_id = #{request.projectId} + where fcm.project_id = #{request.projectId} and fc.id not in ( select brc.case_id from bug_relation_case brc where brc.bug_id = #{request.sourceId} and brc.case_type = #{request.sourceType} diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugRelateCaseCommonService.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugRelateCaseCommonService.java index 6144ec80a9..56b0b9f7f0 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugRelateCaseCommonService.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugRelateCaseCommonService.java @@ -68,7 +68,7 @@ public class BugRelateCaseCommonService extends ModuleTreeService { */ public List getRelateCaseTree(AssociateCaseModuleRequest request) { // 目前只保留功能用例的左侧模块树方法调用, 后续其他用例根据RelateCaseType扩展 - List relateCaseModules = extBugRelateCaseMapper.getRelateCaseModule(request, false); + List relateCaseModules = extBugRelateCaseMapper.getRelateCaseModule(request); // 构建模块树层级数量为通用逻辑 return super.buildTreeAndCountResource(relateCaseModules, true, Translator.get("api_unplanned_request")); } @@ -85,7 +85,7 @@ public class BugRelateCaseCommonService extends ModuleTreeService { List moduleCounts = extBugRelateCaseMapper.countRelateCaseModuleTree(request, false); AssociateCaseModuleRequest moduleRequest = new AssociateCaseModuleRequest(); BeanUtils.copyBean(moduleRequest, request); - List relateCaseModules = extBugRelateCaseMapper.getRelateCaseModule(moduleRequest, false); + List relateCaseModules = extBugRelateCaseMapper.getRelateCaseModule(moduleRequest); List relateCaseModuleWithCount = buildTreeAndCountResource(relateCaseModules, moduleCounts, true, Translator.get("api_unplanned_request")); Map moduleCountMap = getIdCountMapByBreadth(relateCaseModuleWithCount); long total = getAllCount(moduleCounts); diff --git a/frontend/src/components/business/ms-link-file/linkFileTable.vue b/frontend/src/components/business/ms-link-file/linkFileTable.vue index 933fc45d08..d2fd1ad53c 100644 --- a/frontend/src/components/business/ms-link-file/linkFileTable.vue +++ b/frontend/src/components/business/ms-link-file/linkFileTable.vue @@ -180,7 +180,7 @@ tableKey: TableKeyEnum.FILE_MANAGEMENT_FILE, showSetting: false, selectable: true, - showSelectAll: true, + showSelectorAll: false, heightUsed: 300, selectorType: props.selectorType || 'checkbox', }, diff --git a/frontend/src/views/bug-management/components/bug-detail-drawer.vue b/frontend/src/views/bug-management/components/bug-detail-drawer.vue index 662a80c4ec..e36fb6715d 100644 --- a/frontend/src/views/bug-management/components/bug-detail-drawer.vue +++ b/frontend/src/views/bug-management/components/bug-detail-drawer.vue @@ -127,7 +127,7 @@ :is-platform-default-template="isPlatformDefaultTemplate" :platform-system-fields="platformSystemFields" :current-platform="props.currentPlatform" - @update-success="updateSuccess" + @update-success="detailDrawerRef?.initDetail()" /> (false); function updateSuccess() { - rightLoading.value = false; emit('submit'); } @@ -785,4 +784,8 @@ // width: 100%; // word-wrap: break-word; //} + + :deep(.arco-form-item-content) { + overflow-wrap: anywhere; + } diff --git a/frontend/src/views/bug-management/edit.vue b/frontend/src/views/bug-management/edit.vue index 067dc004b4..794327e06b 100644 --- a/frontend/src/views/bug-management/edit.vue +++ b/frontend/src/views/bug-management/edit.vue @@ -828,4 +828,8 @@ font-size: 14px; color: var(--color-text-4); } + + :deep(.arco-form-item-content) { + overflow-wrap: anywhere; + }