From fc6bbae5805da6c95fd675210999a03802cd62ad Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 23 十月 2025 15:39:12 +0800
Subject: [PATCH] fix: 数据看板
---
src/components/commonView/FourStreamsBatchMaterialFileDialog.vue | 39 +++++++++++++++++++++++++--------------
1 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/src/components/commonView/FourStreamsBatchMaterialFileDialog.vue b/src/components/commonView/FourStreamsBatchMaterialFileDialog.vue
index 3039c0c..ce9d56a 100644
--- a/src/components/commonView/FourStreamsBatchMaterialFileDialog.vue
+++ b/src/components/commonView/FourStreamsBatchMaterialFileDialog.vue
@@ -53,6 +53,8 @@
} from '@bole-core/components';
import { format, downloadFileByUrl, formatFileSize } from '@/utils';
import { downloadWithZip, Message, isFileCanPreview } from '@bole-core/core';
+import { CustomerApplyFileTypeListItem, EnterpriseApplyFileUtils } from './utils';
+import { FourStreamsExtraMaterialFileSearchType, SearchType } from '@/constants';
defineOptions({
name: 'FourStreamsBatchMaterialFileDialog',
@@ -62,10 +64,13 @@
name?: string;
zipName?: string;
showDeleteBtn?: boolean;
+ showMaterialExtraFileDeleteBtn?: boolean;
+ fileSearchTypeId?: string;
};
const props = withDefaults(defineProps<Props>(), {
showDeleteBtn: true,
+ showMaterialExtraFileDeleteBtn: false,
});
const visible = defineModel<boolean>('visible');
@@ -87,22 +92,22 @@
]);
const operationBtns = defineOperationBtns([
- // {
- // data: {
- // enCode: 'detailBtn',
- // name: '鏌ョ湅',
- // },
- // emits: {
- // onClick: (row) => handlePreview(row),
- // },
- // extraProps: {
- // hide: (row: UploadUserFile) => !isFileCanPreview(row.path),
- // },
- // },
+ {
+ data: {
+ enCode: 'detailBtn',
+ name: '鏌ョ湅',
+ },
+ emits: {
+ onClick: (row) => handlePreview(row),
+ },
+ extraProps: {
+ hide: (row: UploadUserFile) => !isFileCanPreview(row.path),
+ },
+ },
{
data: {
enCode: 'downloadBtn',
- name: '鏌ョ湅',
+ name: '涓嬭浇',
},
emits: {
onClick: (row) => handleDownload(row),
@@ -120,7 +125,13 @@
onClick: (row) => handleDelete(row),
},
extraProps: {
- hide: (row) => !props.showDeleteBtn,
+ hide: (row: API.CustomerUploadMonthApplyFileTypeDto) => {
+ if (EnterpriseApplyFileUtils.isApplyUploadExtraFileSearchTypeId(props.fileSearchTypeId)) {
+ return !props.showMaterialExtraFileDeleteBtn;
+ } else {
+ return !props.showDeleteBtn;
+ }
+ },
},
},
]);
--
Gitblit v1.9.1