From e098d44d29df017557cc4b1ac23a9125a98ffc56 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Wed, 6 Dec 2023 18:47:07 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E6=96=87=E4=BB=B6=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Detail/src/TemplateDetails.vue | 6 +-
src/components/UploadFile/src/Preview.vue | 100 +++++++++++++++++-
src/components/UploadFile/src/UploadFile.vue | 7 +-
src/utils/globalConst.js | 90 ++++++++++++++++
4 files changed, 195 insertions(+), 8 deletions(-)
create mode 100644 src/utils/globalConst.js
diff --git a/src/components/Detail/src/TemplateDetails.vue b/src/components/Detail/src/TemplateDetails.vue
index 2f2463c..5a1e95d 100644
--- a/src/components/Detail/src/TemplateDetails.vue
+++ b/src/components/Detail/src/TemplateDetails.vue
@@ -281,8 +281,8 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
- if(type=='update')
- console.log(row)
+ if(type=='update'){
+ console.log(row)
TemplateItemDetails.allSchemas.formSchema.forEach(item=>{
if(item.component == 'UploadFile'){
if(row[item.field]){
@@ -296,6 +296,8 @@ const openForm = (type: string, row?: any) => {
}
})
+ }
+
basicFormRef.value.open(type, row)
}
diff --git a/src/components/UploadFile/src/Preview.vue b/src/components/UploadFile/src/Preview.vue
index db78c27..a6e2554 100644
--- a/src/components/UploadFile/src/Preview.vue
+++ b/src/components/UploadFile/src/Preview.vue
@@ -1,11 +1,105 @@