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 @@ diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index eb52749..1921838 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -6,7 +6,7 @@ name="file" v-model="valueRef" v-model:file-list="fileList" - :show-file-list="true" + :show-file-list="isShowFileList" :auto-upload="autoUpload" :action="updateUrl + '?tableId=' + upData?.tableId + '&tableName=' + upData?.tableName" :headers="uploadHeaders" @@ -29,7 +29,7 @@
格式为 {{ fileType.join(',') }} 的文件
- +