+
{{ item.file.name.slice(0, item.file.name.indexOf('.')) }}
diff --git a/frontend/src/views/bug-management/components/bugDetailTab.vue b/frontend/src/views/bug-management/components/bugDetailTab.vue
index b77419887c..5abd2684e0 100644
--- a/frontend/src/views/bug-management/components/bugDetailTab.vue
+++ b/frontend/src/views/bug-management/components/bugDetailTab.vue
@@ -85,28 +85,32 @@
}"
:upload-func="uploadOrAssociationFile"
:handle-delete="deleteFileHandler"
- :show-delete="props.allowEdit"
:init-file-save-tips="t('ms.upload.waiting_save')"
+ :show-delete="false"
@finish="uploadFileOver"
>
-
+
{{ t('ms.upload.preview') }}
+
{{ t('caseManagement.featureCase.storage') }}
@@ -121,45 +125,73 @@
source-id-key="bugId"
@finish="emit('updateSuccess')"
/>
+
{{ t('caseManagement.featureCase.download') }}
+
+
+ {{ t(item.deleteContent) || t('ms.upload.delete') }}
+
-
+
{{ t('ms.upload.preview') }}
+
+
{{ t('caseManagement.featureCase.download') }}
+
+
{{ t('common.update') }}
+
+
+ {{ t(item.deleteContent) }}
+
diff --git a/frontend/src/views/bug-management/edit.vue b/frontend/src/views/bug-management/edit.vue
index 06a98fda7c..a651b809cc 100644
--- a/frontend/src/views/bug-management/edit.vue
+++ b/frontend/src/views/bug-management/edit.vue
@@ -59,24 +59,26 @@
v-model:file-list="fileList"
:init-file-save-tips="t('ms.upload.waiting_save')"
mode="static"
+ :show-delete="false"
>
-
+
{{ t('ms.upload.preview') }}
+
{{ t('caseManagement.featureCase.storage') }}
@@ -90,43 +92,67 @@
source-id-key="bugId"
@finish="getDetailInfo()"
/>
+
{{ t('common.download') }}
+
+
+ {{ t(item.deleteContent) || t('ms.upload.delete') }}
+
-
+
{{ t('ms.upload.preview') }}
-
+
+
{{ t('common.download') }}
+
{{ t('common.update') }}
+
+
+ {{ t(item.deleteContent) }}
+
- {{ t('caseManagement.featureCase.fileIsUpdated') }}
+
+ {{ t('caseManagement.featureCase.fileIsUpdated') }}
@@ -789,6 +815,13 @@
}
};
+ function deleteFile(item: MsFileItem) {
+ const index = fileList.value.findIndex((e) => e.uid === item.uid);
+ if (index !== -1) {
+ fileList.value.splice(index, 1);
+ }
+ }
+
// 监视自定义字段改变处理formCreate
watch(
() => formRules.value,
diff --git a/frontend/src/views/bug-management/index.vue b/frontend/src/views/bug-management/index.vue
index 3f9f37b12a..9558c7c096 100644
--- a/frontend/src/views/bug-management/index.vue
+++ b/frontend/src/views/bug-management/index.vue
@@ -79,6 +79,14 @@
+
+
+
+
+
+
+
+
@@ -765,6 +773,10 @@
} else {
item.showInTable = false;
}
+ if (item.title === '内容') {
+ item.slotName = 'description';
+ item.showTooltip = false;
+ }
});
} catch (error) {
// eslint-disable-next-line no-console
diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTemplateDetail.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTemplateDetail.vue
index 3ff8f68a22..541ae796ea 100644
--- a/frontend/src/views/case-management/caseManagementFeature/components/caseTemplateDetail.vue
+++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTemplateDetail.vue
@@ -67,19 +67,21 @@
mode="static"
:init-file-save-tips="t('ms.upload.waiting_save')"
:show-upload-type-desc="true"
+ :show-delete="false"
>
-
+
{{ t('ms.upload.preview') }}
+
{{ t('caseManagement.featureCase.storage') }}
+
{{ t('caseManagement.featureCase.download') }}
+
+
+ {{ t(item.deleteContent) || t('ms.upload.delete') }}
+
-
+
{{ t('ms.upload.preview') }}
-
+
+
{{ t('caseManagement.featureCase.download') }}
+
{{ t('common.update') }}
+
+
+ {{ t(item.deleteContent) }}
+
- {{ t('caseManagement.featureCase.fileIsUpdated') }}
+
+ {{ t('caseManagement.featureCase.fileIsUpdated') }}
@@ -611,6 +631,13 @@
featureCaseStore.setModuleId([value]);
}
+ function deleteFile(item: MsFileItem) {
+ const index = fileList.value.findIndex((e) => e.uid === item.uid);
+ if (index !== -1) {
+ fileList.value.splice(index, 1);
+ }
+ }
+
// 监视文件列表处理关联和本地文件
watch(
() => fileList.value,
diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDetail.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDetail.vue
index f16697faa5..d84ef667e9 100644
--- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDetail.vue
+++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabDetail.vue
@@ -113,23 +113,23 @@
projectId: currentProjectId,
}"
:upload-func="uploadOrAssociationFile"
- :handle-delete="deleteFileHandler"
- :show-delete="props.allowEdit && !props.isTestPlan"
+ :show-delete="false"
@finish="uploadFileOver"
>
-
+
{{ t('ms.upload.preview') }}
+
{{ t('caseManagement.featureCase.storage') }}
+
{{ t('caseManagement.featureCase.download') }}
+
+
+ {{ t(item.deleteContent) || t('ms.upload.delete') }}
+
-
+
{{ t('ms.upload.preview') }}
+
{{ t('caseManagement.featureCase.download') }}
+
{{ t('common.update') }}
+
+
+ {{ t(item.deleteContent) }}
+
@@ -262,6 +319,7 @@
import useAppStore from '@/store/modules/app';
import { characterLimit, downloadByteFile, getGenerateId, sleep } from '@/utils';
import { scrollIntoView } from '@/utils/dom';
+ import { hasAllPermission } from '@/utils/permission';
import type { AssociatedList, DetailCase, StepList } from '@/models/caseManagement/featureCase';
import type { TableQueryParams } from '@/models/common';
diff --git a/frontend/src/views/case-management/components/addDefectDrawer/index.vue b/frontend/src/views/case-management/components/addDefectDrawer/index.vue
index 1c5060410f..6585e2b253 100644
--- a/frontend/src/views/case-management/components/addDefectDrawer/index.vue
+++ b/frontend/src/views/case-management/components/addDefectDrawer/index.vue
@@ -2,7 +2,7 @@
+
+
+ {{ record.createUserName || '-' }}
+
+
@@ -142,7 +147,7 @@
},
{
title: 'caseManagement.featureCase.tableColumnCreateUser',
- slotName: 'createUser',
+ slotName: 'createUserName',
dataIndex: 'createUser',
showInTable: true,
showTooltip: true,