diff --git a/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm b/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm index 1daf156d0..36db7dda9 100644 --- a/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm +++ b/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm @@ -89,6 +89,12 @@ :default-expand-all="isExpandAll" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" > +#set($firstTreeListField = "") +#foreach($tempColumn in $columns) +#if(!$tempColumn.pk && $tempColumn.list && "" != $tempColumn.javaField && $firstTreeListField == "") +#set($firstTreeListField = $tempColumn.javaField) +#end +#end #foreach($column in $columns) #set($javaField=$column.javaField) #set($parentheseIndex=$column.columnComment.indexOf("(")) @@ -99,19 +105,31 @@ #end #if($column.pk) #elseif($column.list && $column.htmlType == "datetime") +#if($javaField == $firstTreeListField) + +#else +#end #elseif($column.list && $column.htmlType == "imageUpload") +#if($javaField == $firstTreeListField) + +#else +#end #elseif($column.list && $column.dictType && "" != $column.dictType) +#if($javaField == $firstTreeListField) + +#else +#end #elseif($column.list && "" != $javaField) -#if(${foreach.index} == 1) +#if($javaField == $firstTreeListField) #else @@ -277,6 +295,10 @@