From e0033702b08aa53d186b7784dcce2f83a9969654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Fri, 17 Apr 2026 15:09:16 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E9=87=8D?= =?UTF-8?q?=E6=9E=84=E6=8A=BD=E5=87=BA=E4=B8=80=E4=BA=9B=E5=B8=B8=E7=94=A8?= =?UTF-8?q?hooks=E7=BB=84=E4=BB=B6=E7=AE=80=E5=8C=96=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/vm/vue/index-tree.vue.vm | 93 +++++++++++-------- .../src/main/resources/vm/vue/index.vue.vm | 82 ++++++++-------- 2 files changed, 93 insertions(+), 82 deletions(-) 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 @@