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 @@