diff --git a/docs/java/VelocityUtils.java b/docs/java/VelocityUtils.java index a6f5ce9b..cb745c54 100644 --- a/docs/java/VelocityUtils.java +++ b/docs/java/VelocityUtils.java @@ -4,16 +4,16 @@ import cn.hutool.core.collection.CollUtil; import cn.hutool.core.convert.Convert; import cn.hutool.core.lang.Dict; import cn.hutool.core.util.StrUtil; -import org.dromara.generator.constant.GenConstants; +import lombok.AccessLevel; +import lombok.NoArgsConstructor; +import org.apache.velocity.VelocityContext; import org.dromara.common.core.utils.DateUtils; import org.dromara.common.core.utils.StringUtils; import org.dromara.common.json.utils.JsonUtils; import org.dromara.common.mybatis.helper.DataBaseHelper; +import org.dromara.generator.constant.GenConstants; import org.dromara.generator.domain.GenTable; import org.dromara.generator.domain.GenTableColumn; -import lombok.AccessLevel; -import lombok.NoArgsConstructor; -import org.apache.velocity.VelocityContext; import java.util.*; @@ -143,6 +143,7 @@ public class VelocityUtils { templates.add("vm/soybean/soy.index.vue.vm"); } else if (GenConstants.TPL_TREE.equals(tplCategory)) { templates.add("vm/vue/index-tree.vue.vm"); + templates.add("vm/soybean/soy.index-tree.vue.vm"); } return templates; } @@ -177,6 +178,8 @@ public class VelocityUtils { } if (template.contains("soy.index.vue.vm")) { fileName = StringUtils.format("soybean/views/{}/{}/index.vue", moduleName, StrUtil.toSymbolCase(businessName, '-')); + } else if (template.contains("soy.index-tree.vue.vm")) { + fileName = StringUtils.format("soybean/views/{}/{}/index.vue", moduleName, StrUtil.toSymbolCase(businessName, '-')); } else if (template.contains("soy.api.d.ts.vm")) { fileName = StringUtils.format("soybean/typings/api/{}.api.d.ts", moduleName); } else if (template.contains("soy.api.ts.vm")) { diff --git a/docs/template/soy.index-tree.vue.vm b/docs/template/soy.index-tree.vue.vm new file mode 100644 index 00000000..cc3149f8 --- /dev/null +++ b/docs/template/soy.index-tree.vue.vm @@ -0,0 +1,217 @@ + + + + +