From 89f387786da0e4383cf06ee162526db54971f9cf Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 23 十月 2025 15:21:16 +0800
Subject: [PATCH] fix: s

---
 src/components/commonView/MaterialInfoView.vue |   21 ++++++++-------------
 1 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/src/components/commonView/MaterialInfoView.vue b/src/components/commonView/MaterialInfoView.vue
index 5308a1b..402c453 100644
--- a/src/components/commonView/MaterialInfoView.vue
+++ b/src/components/commonView/MaterialInfoView.vue
@@ -1,11 +1,9 @@
 <template>
-  <!-- <ProFormCol>
-    <ProFormColItem :span="12"> -->
   <ProFormItemV2
     :label="`${item.fileTypeName}:`"
     :prop="`parkCollectFileList.${index}.listFiles`"
-    :check-rules="[{ message: `璇蜂笂浼�${item.fileTypeName}`, type: 'upload' }]"
     :label-width="160"
+    :mode="mode"
     :style="{ marginBottom: index === form.parkCollectFileList.length - 1 ? 0 : '22px' }"
     v-for="(item, index) in form.parkCollectFileList"
     :key="item.fileSearchTypeId"
@@ -18,18 +16,10 @@
       accept="doc,docx,pdf,xls,xlsx,jpg/jpeg,png"
     ></ProFormUpload>
   </ProFormItemV2>
-  <!-- </ProFormColItem>
-  </ProFormCol> -->
 </template>
 
 <script setup lang="ts">
-import {
-  ProFormCol,
-  ProFormColItem,
-  ProFormItemV2,
-  ProFormUpload,
-  UploadUserFile,
-} from '@bole-core/components';
+import { ProFormItemV2, ProFormUpload } from '@bole-core/components';
 import { CustomerApplyFileTypeListItem } from './utils';
 
 defineOptions({
@@ -37,12 +27,17 @@
 });
 
 type Props = {
+  isEdit?: boolean;
   form: {
     parkCollectFileList: CustomerApplyFileTypeListItem[];
   };
 };
 
-const props = withDefaults(defineProps<Props>(), {});
+const props = withDefaults(defineProps<Props>(), {
+  isEdit: false,
+});
+
+const mode = computed(() => (props.isEdit ? 'read' : 'edit'));
 </script>
 
 <style lang="scss" scoped>

--
Gitblit v1.9.1