diff --git a/src/main/java/com/rebuild/core/metadata/impl/EasyFieldConfigProps.java b/src/main/java/com/rebuild/core/metadata/impl/EasyFieldConfigProps.java index dee5cc809..9405f6afa 100644 --- a/src/main/java/com/rebuild/core/metadata/impl/EasyFieldConfigProps.java +++ b/src/main/java/com/rebuild/core/metadata/impl/EasyFieldConfigProps.java @@ -111,7 +111,6 @@ public class EasyFieldConfigProps { * 允许上传数量 */ public static final String IMAGE_UPLOADNUMBER = FILE_UPLOADNUMBER; - /** * 图片获取方式(兼容附件) */ @@ -120,6 +119,10 @@ public class EasyFieldConfigProps { * 图片获取方式(兼容附件) */ public static final String IMAGE_CAPTURE_DEF = "imageCaptureDef"; + /** + * 指定上传路径 + */ + public static final String IMAGE_UPDIR = FILE_UPDIR; /** * 自动编号规则 diff --git a/src/main/resources/web/admin/metadata/field-edit.html b/src/main/resources/web/admin/metadata/field-edit.html index 8dbe1b55b..f309a7573 100644 --- a/src/main/resources/web/admin/metadata/field-edit.html +++ b/src/main/resources/web/admin/metadata/field-edit.html @@ -171,8 +171,8 @@
[[${bundle.L('常用')}]]
-
- +
+
diff --git a/src/main/resources/web/assets/js/general/rb-forms.js b/src/main/resources/web/assets/js/general/rb-forms.js index 4ea9fa29e..a990d31c3 100644 --- a/src/main/resources/web/assets/js/general/rb-forms.js +++ b/src/main/resources/web/assets/js/general/rb-forms.js @@ -1692,7 +1692,7 @@ class RbFormImage extends RbFormElement { ) })} - (this._fieldValue__input = c)} type="file" className="inputfile" id={this._htmlid} accept="image/*" multiple /> + (this._fieldValue__input = c)} type="file" className="inputfile" id={this._htmlid} accept="image/*" multiple data-updir={this.props.fileUpdir || null} />