设置单图上传控件
This commit is contained in:
		
							parent
							
								
									a118738d0f
								
							
						
					
					
						commit
						074b3c735d
					
				| 
						 | 
					@ -76,8 +76,8 @@ public class GenConstants
 | 
				
			||||||
    /** 日期控件 */
 | 
					    /** 日期控件 */
 | 
				
			||||||
    public static final String HTML_DATETIME = "datetime";
 | 
					    public static final String HTML_DATETIME = "datetime";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /** 上传控件 */
 | 
					    /** 单图上传 */
 | 
				
			||||||
    public static final String HTML_UPLOAD_IMAGE = "uploadImage";
 | 
					    public static final String HTML_IMAGE_UPLOAD = "imageUpload";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /** 富文本控件 */
 | 
					    /** 富文本控件 */
 | 
				
			||||||
    public static final String HTML_EDITOR = "editor";
 | 
					    public static final String HTML_EDITOR = "editor";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -112,10 +112,10 @@ public class GenUtils
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            column.setHtmlType(GenConstants.HTML_SELECT);
 | 
					            column.setHtmlType(GenConstants.HTML_SELECT);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        // 文件字段设置上传控件
 | 
					        // 图片字段设置单图控件
 | 
				
			||||||
        else if (StringUtils.endsWithIgnoreCase(columnName, "image"))
 | 
					        else if (StringUtils.endsWithIgnoreCase(columnName, "image"))
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            column.setHtmlType(GenConstants.HTML_UPLOAD_IMAGE);
 | 
					            column.setHtmlType(GenConstants.HTML_IMAGE_UPLOAD);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        // 内容字段设置富文本控件
 | 
					        // 内容字段设置富文本控件
 | 
				
			||||||
        else if (StringUtils.endsWithIgnoreCase(columnName, "content"))
 | 
					        else if (StringUtils.endsWithIgnoreCase(columnName, "content"))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue