diff --git a/frontend/src/views/bug-management/index.vue b/frontend/src/views/bug-management/index.vue
index 31e2362b6c..f0babf5871 100644
--- a/frontend/src/views/bug-management/index.vue
+++ b/frontend/src/views/bug-management/index.vue
@@ -212,7 +212,6 @@
import MsButton from '@/components/pure/ms-button/index.vue';
import MsCard from '@/components/pure/ms-card/index.vue';
import { MsExportDrawerMap, MsExportDrawerOption } from '@/components/pure/ms-export-drawer/types';
- import MsBaseTable from '@/components/pure/ms-table/base-table.vue';
import { BatchActionParams, BatchActionQueryParams, MsTableColumn } from '@/components/pure/ms-table/type';
import useTable from '@/components/pure/ms-table/useTable';
import MsTableMoreAction from '@/components/pure/ms-table-more-action/index.vue';
@@ -255,6 +254,7 @@
const { t } = useI18n();
const MsExportDrawer = defineAsyncComponent(() => import('@/components/pure/ms-export-drawer/index.vue'));
const DeleteModal = defineAsyncComponent(() => import('./components/deleteModal.vue'));
+ const MsBaseTable = defineAsyncComponent(() => import('@/components/pure/ms-table/base-table.vue'));
const tableStore = useTableStore();
const appStore = useAppStore();
diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/tabDefect.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/tabDefect.vue
index e1690b21cc..dc1997d297 100644
--- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/tabDefect.vue
+++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/tabDefect.vue
@@ -2,7 +2,7 @@
-
+
{{ t('caseManagement.featureCase.noAssociatedDefect') }}
{{
@@ -10,7 +10,8 @@
}}
{{ t('caseManagement.featureCase.tableNoDataWidthComma') }}
- {{
- t('caseManagement.featureCase.please')
- }}
-
+ {{ t('caseManagement.featureCase.please') }}
+
{{ t('caseManagement.featureCase.linkDefect') }}
- {{
+ {{
t('caseManagement.featureCase.or')
}}
diff --git a/frontend/src/views/case-management/caseManagementFeature/components/utils.ts b/frontend/src/views/case-management/caseManagementFeature/components/utils.ts
index 39d04fbea9..f5ba600b85 100644
--- a/frontend/src/views/case-management/caseManagementFeature/components/utils.ts
+++ b/frontend/src/views/case-management/caseManagementFeature/components/utils.ts
@@ -185,8 +185,8 @@ export function initFormCreate(customFields: CustomAttributes[], permission: str
currentDefaultValue = item.defaultValue;
// 处理多选情况
} else if (multipleType.includes(item.type)) {
- const tempValue = JSON.parse(item.defaultValue);
if (item.type !== 'MULTIPLE_INPUT' && !item.type.includes('MEMBER')) {
+ const tempValue = JSON.parse(item.defaultValue);
const optionsIds = item.options?.map((e: any) => e.value);
currentDefaultValue = optionsIds.filter((e: any) => tempValue.includes(e));
// 多选成员
@@ -199,7 +199,16 @@ export function initFormCreate(customFields: CustomAttributes[], permission: str
value: userStore.id || '',
},
];
- currentDefaultValue = tempValue;
+ // 多选成员没有选择CREATE_USER
+ if (Array.isArray(item.defaultValue) && !item.defaultValue.includes('CREATE_USER')) {
+ currentDefaultValue = [];
+ // 选择了创建人
+ } else if (item.defaultValue.includes('CREATE_USER')) {
+ currentDefaultValue = [userStore.id];
+ // 已选择成员
+ } else {
+ currentDefaultValue = JSON.parse(item.defaultValue);
+ }
} else {
currentDefaultValue = JSON.parse(item.defaultValue);
}