Browse Source

代码生成支持文件上传组件

tags/v2.5.0
RuoYi 4 years ago
parent
commit
dee4653b9b
  1. 2
      ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm
  2. 1
      ruoyi-ui/src/components/FileUpload/index.vue

2
ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm

@ -159,7 +159,7 @@ @@ -159,7 +159,7 @@
</el-form-item>
#elseif($column.htmlType == "fileUpload")
<el-form-item label="${comment}">
<imageUpload v-model="form.${field}"/>
<fileUpload v-model="form.${field}"/>
</el-form-item>
#elseif($column.htmlType == "editor")
<el-form-item label="${comment}">

1
ruoyi-ui/src/components/FileUpload/index.vue

@ -90,7 +90,6 @@ export default { @@ -90,7 +90,6 @@ export default {
return item;
});
} else {
//``fileList
this.fileList = [];
return [];
}

Loading…
Cancel
Save