diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java index d00060d89b..180ae76d78 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java @@ -1511,6 +1511,12 @@ public class BugService { BugPageRequest bugPageRequest = new BugPageRequest(); BeanUtils.copyBean(bugPageRequest, request); bugPageRequest.setUseTrash(false); + if (request.getCondition() != null) { + bugPageRequest.setCombine(request.getCondition().getCombine()); + bugPageRequest.setFilter(request.getCondition().getFilter()); + bugPageRequest.setSearchMode(request.getCondition().getSearchMode()); + bugPageRequest.setKeyword(request.getCondition().getKeyword()); + } List allBugs = extBugMapper.list(bugPageRequest, request.getSort()); if (CollectionUtils.isNotEmpty(request.getExcludeIds())) { allBugs.removeIf(bug -> request.getExcludeIds().contains(bug.getId())); @@ -1538,6 +1544,8 @@ public class BugService { if (request.getCondition() != null) { bugPageRequest.setCombine(request.getCondition().getCombine()); bugPageRequest.setFilter(request.getCondition().getFilter()); + bugPageRequest.setSearchMode(request.getCondition().getSearchMode()); + bugPageRequest.setKeyword(request.getCondition().getKeyword()); } List ids = extBugMapper.getIdsByPageRequest(bugPageRequest); if (CollectionUtils.isNotEmpty(request.getExcludeIds())) { diff --git a/frontend/src/components/pure/ms-export-drawer/index.vue b/frontend/src/components/pure/ms-export-drawer/index.vue index acc7308d21..2fef8eae51 100644 --- a/frontend/src/components/pure/ms-export-drawer/index.vue +++ b/frontend/src/components/pure/ms-export-drawer/index.vue @@ -2,7 +2,7 @@ - - {{ item.text }} + +
{{ item.text }}
@@ -51,8 +51,8 @@ :value="item.key" class="mt-[8px] w-[95px] pl-[0px]" > - - {{ item.text }} + +
{{ item.text }}
@@ -71,10 +71,8 @@ :value="item.key" class="mt-[8px] w-[95px] pl-[0px]" > - -
- {{ item.text }} -
+ +
{{ item.text }}
@@ -146,6 +144,7 @@ defaultSelectedKeys?: string[]; isArrayColumn?: boolean; arrayColumn?: EnvListItem[]; + exportLoading: boolean; titleProps?: { selectableTitle: string; // 可选字段 systemTitle: string; // 已选字段| 环境 @@ -155,6 +154,7 @@ const props = withDefaults(defineProps(), { visible: false, + exportLoading: false, defaultSelectedKeys: () => ['name', 'id', 'title', 'status', 'handle_user', 'content'], }); @@ -163,6 +163,7 @@ const emit = defineEmits<{ (e: 'update:visible', value: boolean): void; + (e: 'update:exportLoading', value: boolean): void; (e: 'confirm', value: MsExportDrawerOption[]): void; }>(); @@ -175,6 +176,15 @@ }, }); + const exportLoading = computed({ + get() { + return props.exportLoading; + }, + set(value) { + emit('update:exportLoading', value); + }, + }); + const systemList = computed(() => { if (props.isArrayColumn && props.arrayColumn) { return props.arrayColumn.map((item) => { @@ -310,4 +320,9 @@ border: 1px dashed rgba(var(--primary-5)); background-color: rgba(var(--primary-1)); } + + :deep(.arco-checkbox-group .arco-checkbox) { + margin-right: 20px; + margin-top: 10px; + } diff --git a/frontend/src/components/pure/ms-table/type.ts b/frontend/src/components/pure/ms-table/type.ts index 7c2425a94e..36d506fd84 100644 --- a/frontend/src/components/pure/ms-table/type.ts +++ b/frontend/src/components/pure/ms-table/type.ts @@ -150,7 +150,8 @@ export interface SetPaginationPrams { export interface BatchActionQueryParams { excludeIds?: string[]; // 排除的id - selectedIds?: string[]; // 选中的id + selectedIds?: string[]; + selectIds?: string[]; // 选中的id selectAll: boolean; // 是否跨页全选 params?: TableQueryParams; // 查询参数 currentSelectCount?: number; // 当前选中的数量 diff --git a/frontend/src/views/bug-management/components/batchEditModal.vue b/frontend/src/views/bug-management/components/batchEditModal.vue index edd1857567..3380c28bdc 100644 --- a/frontend/src/views/bug-management/components/batchEditModal.vue +++ b/frontend/src/views/bug-management/components/batchEditModal.vue @@ -123,7 +123,6 @@ import { updateBatchBug } from '@/api/modules/bug-management'; import { useI18n } from '@/hooks/useI18n'; import { useAppStore } from '@/store'; - import { tableParamsToRequestParams } from '@/utils'; import type { BugBatchUpdateFiledType } from '@/models/bug-management'; import { BugBatchUpdateFiledForm, BugEditCustomField } from '@/models/bug-management'; @@ -221,7 +220,7 @@ try { loading.value = true; const tmpObj = { - ...tableParamsToRequestParams(props.selectParam), + ...props.selectParam, projectId: appStore.currentProjectId, [form.attribute]: form.value || form.inputValue, append: form.append, diff --git a/frontend/src/views/bug-management/index.vue b/frontend/src/views/bug-management/index.vue index 4d9ad38bf6..c109dc456c 100644 --- a/frontend/src/views/bug-management/index.vue +++ b/frontend/src/views/bug-management/index.vue @@ -190,7 +190,12 @@ - +