作者 RuoYi

设置单图上传控件

@@ -76,8 +76,8 @@ public class GenConstants @@ -76,8 +76,8 @@ public class GenConstants
76 /** 日期控件 */ 76 /** 日期控件 */
77 public static final String HTML_DATETIME = "datetime"; 77 public static final String HTML_DATETIME = "datetime";
78 78
79 - /** 上传控件 */  
80 - public static final String HTML_UPLOAD_IMAGE = "uploadImage"; 79 + /** 单图上传 */
  80 + public static final String HTML_IMAGE_UPLOAD = "imageUpload";
81 81
82 /** 富文本控件 */ 82 /** 富文本控件 */
83 public static final String HTML_EDITOR = "editor"; 83 public static final String HTML_EDITOR = "editor";
@@ -112,10 +112,10 @@ public class GenUtils @@ -112,10 +112,10 @@ public class GenUtils
112 { 112 {
113 column.setHtmlType(GenConstants.HTML_SELECT); 113 column.setHtmlType(GenConstants.HTML_SELECT);
114 } 114 }
115 - // 文件字段设置上传控件 115 + // 图片字段设置单图控件
116 else if (StringUtils.endsWithIgnoreCase(columnName, "image")) 116 else if (StringUtils.endsWithIgnoreCase(columnName, "image"))
117 { 117 {
118 - column.setHtmlType(GenConstants.HTML_UPLOAD_IMAGE); 118 + column.setHtmlType(GenConstants.HTML_IMAGE_UPLOAD);
119 } 119 }
120 // 内容字段设置富文本控件 120 // 内容字段设置富文本控件
121 else if (StringUtils.endsWithIgnoreCase(columnName, "content")) 121 else if (StringUtils.endsWithIgnoreCase(columnName, "content"))