diff --git a/frontend/src/views/bug-management/components/bugDetailTab.vue b/frontend/src/views/bug-management/components/bugDetailTab.vue
index 763e3b4bc6..e816549dcb 100644
--- a/frontend/src/views/bug-management/components/bugDetailTab.vue
+++ b/frontend/src/views/bug-management/components/bugDetailTab.vue
@@ -116,6 +116,20 @@
+
+
+
(false);
const previewVisible = ref(false);
+ const acceptType = ref('none'); // 模块-上传文件类型
// 富文本附件id
const fileIds = ref([]);
const imageUrl = ref('');
@@ -322,26 +338,6 @@
associatedDrawer.value = true;
}
- // 处理文件参数
- function getFilesParams() {
- const associateFileIds = attachmentsList.value.filter((item) => !item.local).map((item) => item.id);
- const newAssociateFileListIds = fileList.value
- .filter((item) => !item.local && !associateFileIds.includes(item.uid))
- .map((item) => item.uid);
-
- const currentOldLocalFileList = fileList.value
- .filter((item) => item.local && item.status !== 'init')
- .map((item) => item.uid);
-
- // 更新form的值
- form.value.deleteLocalFileIds = attachmentsList.value
- .filter((item) => item.local && !currentOldLocalFileList.includes(item.uid))
- .map((item) => item.uid);
-
- form.value.unLinkRefIds = associateFileIds.filter((id) => !newAssociateFileListIds.includes(id));
- form.value.linkFileIds = newAssociateFileListIds;
- }
-
async function startUpload() {
await sleep(300);
fileListRef.value?.startUpload();
@@ -388,17 +384,6 @@
return data;
}
- // 监视文件列表处理关联和本地文件
- watch(
- () => fileList.value,
- (val) => {
- if (val) {
- getListFunParams.value.combine.hiddenIds = fileList.value.filter((item) => !item.local).map((item) => item.uid);
- getFilesParams();
- }
- },
- { deep: true }
- );
// 保存操作
async function handleSave() {
try {
@@ -423,7 +408,7 @@
customFields,
};
// 执行保存操作。 保存成功后将富文本内容赋值给默认值
- const res = await createOrUpdateBug({ request: tmpObj, fileList: fileList.value as unknown as File[] });
+ const res = await createOrUpdateBug({ request: tmpObj, fileList: [] as unknown as File[] });
if (res) {
Message.success(t('common.updateSuccess'));
defaultContentValue.value = form.value.description;