-
-
-
-
+
#elseif($column.htmlType == "textarea")
-
+
+#if($isDateTime)
+
#end
+#if($isUpload)
+
#end
-
+ }
+ });
+ }
+ #end
+
\ No newline at end of file
diff --git a/ruoyi-generator/src/main/resources/vm/html/list-tree.html.vm b/ruoyi-generator/src/main/resources/vm/html/list-tree.html.vm
index 59510d3d0..2129daf70 100644
--- a/ruoyi-generator/src/main/resources/vm/html/list-tree.html.vm
+++ b/ruoyi-generator/src/main/resources/vm/html/list-tree.html.vm
@@ -107,6 +107,8 @@
#foreach($column in $columns)
#set($dictType=$column.dictType)
#set($javaField=$column.javaField)
+#set($isUpload = $column.htmlType == 'upload')
+#set($isSummernote = $column.htmlType == 'summernote')
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
#set($comment=$column.columnComment.substring(0, $parentheseIndex))
@@ -124,11 +126,34 @@
}
},
#elseif($column.list && "" != $javaField)
+ #if($isUpload)
+ {
+ field: '${javaField}',
+ title: '${comment}',
+ formatter: function(value, row, index) {
+ if(row.${column.javaField}){
+ return '
'
+ // 如果是图片,把下面注释取消
+ // return $.table.imageView(row.${column.javaField});
+ }
+ return ''
+ }
+ },
+ #elseif($isSummernote)
+ {
+ field: '${javaField}',
+ title: '${comment}',
+ formatter: function(value, row, index) {
+ return '
'
+ }
+ },
+ #else
{
field: '${javaField}',
title: '${comment}',
align: 'left'
},
+ #end
#end
#end
{
diff --git a/ruoyi-generator/src/main/resources/vm/html/list.html.vm b/ruoyi-generator/src/main/resources/vm/html/list.html.vm
index 16b0ce511..d070350f6 100644
--- a/ruoyi-generator/src/main/resources/vm/html/list.html.vm
+++ b/ruoyi-generator/src/main/resources/vm/html/list.html.vm
@@ -103,6 +103,8 @@
},
#foreach($column in $columns)
#set($dictType=$column.dictType)
+#set($isUpload = $column.htmlType == 'upload')
+#set($isSummernote = $column.htmlType == 'summernote')
#set($javaField=$column.javaField)
#set($parentheseIndex=$column.columnComment.indexOf("("))
#if($parentheseIndex != -1)
@@ -125,10 +127,36 @@
}
},
#elseif($column.list && "" != $javaField)
+ #if($isUpload)
+ {
+ field: '${javaField}',
+ title: '${comment}',
+ formatter: function(value, row, index) {
+ if(row.${column.javaField}){
+ return '
'
+ // 如果是图片,把下面注释取消
+ // return $.table.imageView(row.${column.javaField});
+ }
+ return ''
+ }
+ },
+ #elseif($isSummernote)
+ {
+ field: '${javaField}',
+ title: '${comment}',
+ formatter: function(value, row, index) {
+ var actions = [];
+ actions.push('
查看 ');
+ return actions.join('');
+ }
+ },
+ #else
{
field: '${javaField}',
title: '${comment}'
},
+ #end
+
#end
#end
{