feige
2024-02-02 bd40473c9c634005bc7e62e7fc901bcd8b598fa0
ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java
@@ -15,7 +15,7 @@
/**
 * 模板处理工具类
 *
 *
 * @author ruoyi
 */
public class VelocityUtils
@@ -139,7 +139,7 @@
        templates.add("vm/js/api.js.vm");
        if (GenConstants.TPL_CRUD.equals(tplCategory))
        {
            templates.add("vm/vue/index.vue.vm");
            templates.add("vm/vue/shouye.vue.vm");
        }
        else if (GenConstants.TPL_TREE.equals(tplCategory))
        {
@@ -147,7 +147,7 @@
        }
        else if (GenConstants.TPL_SUB.equals(tplCategory))
        {
            templates.add("vm/vue/index.vue.vm");
            templates.add("vm/vue/shouye.vue.vm");
            templates.add("vm/java/sub-domain.java.vm");
        }
        return templates;
@@ -209,13 +209,13 @@
        {
            fileName = StringUtils.format("{}/api/{}/{}.js", vuePath, moduleName, businessName);
        }
        else if (template.contains("index.vue.vm"))
        else if (template.contains("shouye.vue.vm"))
        {
            fileName = StringUtils.format("{}/views/{}/{}/index.vue", vuePath, moduleName, businessName);
            fileName = StringUtils.format("{}/views/{}/{}/shouye.vue", vuePath, moduleName, businessName);
        }
        else if (template.contains("index-tree.vue.vm"))
        {
            fileName = StringUtils.format("{}/views/{}/{}/index.vue", vuePath, moduleName, businessName);
            fileName = StringUtils.format("{}/views/{}/{}/shouye.vue", vuePath, moduleName, businessName);
        }
        return fileName;
    }
@@ -234,7 +234,7 @@
    /**
     * 根据列类型获取导入包
     *
     *
     * @param genTable 业务表对象
     * @return 返回需要导入的包列表
     */
@@ -264,7 +264,7 @@
    /**
     * 根据列类型获取字典组
     *
     *
     * @param genTable 业务表对象
     * @return 返回字典组
     */
@@ -283,7 +283,7 @@
    /**
     * 添加字典列表
     *
     *
     * @param dicts 字典列表
     * @param columns 列集合
     */