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/MaterialInfoView.vue | 65 +++++++++++++-------------------
1 files changed, 26 insertions(+), 39 deletions(-)
diff --git a/src/components/commonView/MaterialInfoView.vue b/src/components/commonView/MaterialInfoView.vue
index 1f3c877..402c453 100644
--- a/src/components/commonView/MaterialInfoView.vue
+++ b/src/components/commonView/MaterialInfoView.vue
@@ -1,56 +1,43 @@
<template>
- <ProFormCol>
- <ProFormColItem :span="12">
- <ProFormItemV2
- label="浼佷笟缂寸◣鏄庣粏姹囨�昏〃:"
- prop="enterpriseTaxSubFileUrl"
- style="margin-bottom: 22px"
- >
- <ProFormUpload v-model:file-url="form.enterpriseTaxSubFileUrl"></ProFormUpload>
- </ProFormItemV2>
- </ProFormColItem>
- </ProFormCol>
- <ProFormCol>
- <ProFormColItem :span="12">
- <ProFormItemV2
- label="浼佷笟钀ユ敹姹囨�昏〃:"
- prop="enterpriseOperateFileUrl"
- style="margin-bottom: 22px"
- >
- <ProFormUpload v-model:file-url="form.enterpriseOperateFileUrl"></ProFormUpload>
- </ProFormItemV2>
- </ProFormColItem>
- </ProFormCol>
- <ProFormCol>
- <ProFormColItem :span="12">
- <ProFormItemV2 label="鍏ラ┗鎯呭喌鍏宠仈璇存槑:" prop="enterpriseOperateFileUrl">
- <ProFormUpload v-model:file-url="form.enterpriseOperateFileUrl"></ProFormUpload>
- </ProFormItemV2>
- </ProFormColItem>
- </ProFormCol>
+ <ProFormItemV2
+ :label="`${item.fileTypeName}:`"
+ :prop="`parkCollectFileList.${index}.listFiles`"
+ :label-width="160"
+ :mode="mode"
+ :style="{ marginBottom: index === form.parkCollectFileList.length - 1 ? 0 : '22px' }"
+ v-for="(item, index) in form.parkCollectFileList"
+ :key="item.fileSearchTypeId"
+ >
+ <ProFormUpload
+ v-model:file-url="item.listFiles"
+ :limitFileSize="50"
+ :showTip="false"
+ :limitShowViewMoreBtnCount="4"
+ accept="doc,docx,pdf,xls,xlsx,jpg/jpeg,png"
+ ></ProFormUpload>
+ </ProFormItemV2>
</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({
name: 'MaterialInfoView',
});
type Props = {
+ isEdit?: boolean;
form: {
- enterpriseTaxSubFileUrl: UploadUserFile[];
- enterpriseOperateFileUrl: UploadUserFile[];
+ 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