代码生成模版支持多级模块设置,如模块管理:ai-core;功能生成模块名:ai.core;新增几个模版参数:moduleMinus、modulePath、subModuleNameDot、subModulePath

This commit is contained in:
thinkgem
2025-06-30 11:19:48 +08:00
parent 63dd5c161d
commit 3107ab8f3a
78 changed files with 131 additions and 131 deletions

View File

@@ -3,10 +3,10 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>controller</name>
<filePath>${baseDir}/src/main/java/${packagePath}/${moduleName}/web${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/java${packagePath}${modulePath}/web${subModulePath}</filePath>
<fileName>${ClassName}Controller.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.web${isNotEmpty(subModuleName)?'.'+subModuleName:''};
package ${packageName}.${moduleName}.web${subModuleNameDot};
<% if (table.isTreeEntity){ %>
import java.util.Map;
@@ -51,11 +51,11 @@ import com.alibaba.fastjson.JSONValidator;
import com.jeesite.common.codec.EncodeUtils;
<% } %>
import com.jeesite.common.web.BaseController;
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName};
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${ClassName};
<% for (child in table.childList){ %>
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${@StringUtils.cap(child.className)};
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${@StringUtils.cap(child.className)};
<% } %>
import ${packageName}.${moduleName}.service${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName}Service;
import ${packageName}.${moduleName}.service${subModuleNameDot}.${ClassName}Service;
/**
* ${functionName}Controller

View File

@@ -3,14 +3,14 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>dao</name>
<filePath>${baseDir}/src/main/java/${packagePath}/${moduleName}/dao${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/java${packagePath}${modulePath}/dao${subModulePath}</filePath>
<fileName>${ClassName}Dao.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.dao${isNotEmpty(subModuleName)?'.'+subModuleName:''};
package ${packageName}.${moduleName}.dao${subModuleNameDot};
import com.jeesite.common.dao.${table.isTreeEntity?'Tree':'Crud'}Dao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName};
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${ClassName};
/**
* ${functionName}DAO接口

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>entity</name>
<filePath>${baseDir}/src/main/java/${packagePath}/${moduleName}/entity${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/java${packagePath}${modulePath}/entity${subModulePath}</filePath>
<fileName>${ClassName}.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.entity${isNotBlank(subModuleName)?'.'+subModuleName:''};

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>mapper</name>
<filePath>${baseDir}/src/main/resources/mappings/${lastPackageName}/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/resources/mappings/${lastPackageName}${modulePath}${subModulePath}</filePath>
<fileName>${ClassName}Dao.xml</fileName>
<content><![CDATA[
<?xml version="1.0" encoding="UTF-8" ?>

View File

@@ -3,10 +3,10 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>service</name>
<filePath>${baseDir}/src/main/java/${packagePath}/${moduleName}/service${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/java${packagePath}${modulePath}/service${subModulePath}</filePath>
<fileName>${ClassName}Service.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.service${isNotEmpty(subModuleName)?'.'+subModuleName:''};
package ${packageName}.${moduleName}.service${subModuleNameDot};
import java.util.List;
<% if (table.childList.~size > 0){ %>
@@ -17,8 +17,8 @@ import org.springframework.transaction.annotation.Transactional;
import com.jeesite.common.entity.Page;
import com.jeesite.common.service.${table.isTreeEntity?'Tree':'Crud'}Service;
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName};
import ${packageName}.${moduleName}.dao${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName}Dao;
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${ClassName};
import ${packageName}.${moduleName}.dao${subModuleNameDot}.${ClassName}Dao;
<% if(toBoolean(table.optionMap['isBpmForm'])){ %>
import java.util.Map;
import com.jeesite.common.lang.StringUtils;
@@ -32,8 +32,8 @@ import com.jeesite.common.service.ServiceException;
import com.jeesite.modules.file.utils.FileUploadUtils;
<% } %>
<% for (child in table.childList){ %>
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${@StringUtils.cap(child.className)};
import ${packageName}.${moduleName}.dao${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${@StringUtils.cap(child.className)}Dao;
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${@StringUtils.cap(child.className)};
import ${packageName}.${moduleName}.dao${subModuleNameDot}.${@StringUtils.cap(child.className)}Dao;
<% } %>
<% if(toBoolean(table.optionMap['isImportExport'])){ %>
import com.jeesite.common.config.Global;

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>viewForm</name>
<filePath>${baseDir}/src/main/resources/views/${lastPackageName}/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/resources/views/${lastPackageName}${modulePath}${subModulePath}</filePath>
<fileName>${className}Form.html</fileName>
<content><![CDATA[
<% include('/templates/modules/gen/view/viewForm.html'){} %>]]>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>viewIndex</name>
<filePath>${baseDir}/src/main/resources/views/${lastPackageName}/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/resources/views/${lastPackageName}${modulePath}${subModulePath}</filePath>
<fileName>${className}Index.html</fileName>
<content><![CDATA[
<% include('/templates/modules/gen/view/viewIndex.html'){} %>]]>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>viewList</name>
<filePath>${baseDir}/src/main/resources/views/${lastPackageName}/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/resources/views/${lastPackageName}${modulePath}${subModulePath}</filePath>
<fileName>${className}List.html</fileName>
<content><![CDATA[
<% include('/templates/modules/gen/view/viewList.html'){} %>]]>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>viewSelect</name>
<filePath>${baseDir}/src/main/resources/views/${lastPackageName}/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/resources/views/${lastPackageName}${modulePath}${subModulePath}</filePath>
<fileName>${className}Select.html</fileName>
<content><![CDATA[
<% include('/templates/modules/gen/view/viewSelect.html'){} %>]]>

View File

@@ -3,15 +3,15 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>api</name>
<filePath>${baseDir}/${moduleName}-client/src/main/java/${packagePath}/${moduleName}/api${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}${modulePath}-client/src/main/java${packagePath}${modulePath}/api${subModulePath}</filePath>
<fileName>${ClassName}ServiceApi.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.api${isNotEmpty(subModuleName)?'.'+subModuleName:''};
package ${packageName}.${moduleName}.api${subModuleNameDot};
import org.springframework.web.bind.annotation.RequestMapping;
import com.jeesite.common.service.rest.${table.isTreeEntity?'Tree':'Crud'}ServiceRest;
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName};
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${ClassName};
/**
* ${functionName}API

View File

@@ -3,15 +3,15 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>client</name>
<filePath>${baseDir}/${moduleName}-client/src/main/java/${packagePath}/${moduleName}/client${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}${modulePath}-client/src/main/java${packagePath}${modulePath}/client${subModulePath}</filePath>
<fileName>${ClassName}ServiceClient.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.client${isNotEmpty(subModuleName)?'.'+subModuleName:''};
package ${packageName}.${moduleName}.client${subModuleNameDot};
import org.springframework.cloud.openfeign.FeignClient;
import com.jeesite.modules.cloud.feign.condition.ConditionalOnNotCurrentApplication;
import ${packageName}.${moduleName}.api${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName}ServiceApi;
import ${packageName}.${moduleName}.api${subModuleNameDot}.${ClassName}ServiceApi;
/**
* ${functionName}API

View File

@@ -3,10 +3,10 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>controller</name>
<filePath>${baseDir}/${moduleName}/src/main/java/${packagePath}/${moduleName}/web${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}${modulePath}/src/main/java${packagePath}${modulePath}/web${subModulePath}</filePath>
<fileName>${ClassName}Controller.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.web${isNotEmpty(subModuleName)?'.'+subModuleName:''};
package ${packageName}.${moduleName}.web${subModuleNameDot};
<% if (table.isTreeEntity){ %>
import java.util.Map;
@@ -51,11 +51,11 @@ import com.alibaba.fastjson.JSONValidator;
import com.jeesite.common.codec.EncodeUtils;
<% } %>
import com.jeesite.common.web.BaseController;
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName};
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${ClassName};
<% for (child in table.childList){ %>
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${@StringUtils.cap(child.className)};
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${@StringUtils.cap(child.className)};
<% } %>
import ${packageName}.${moduleName}.service${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName}Service;
import ${packageName}.${moduleName}.service${subModuleNameDot}.${ClassName}Service;
import org.apache.seata.spring.annotation.GlobalTransactional;

View File

@@ -3,14 +3,14 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>dao</name>
<filePath>${baseDir}/${moduleName}/src/main/java/${packagePath}/${moduleName}/dao${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}${modulePath}/src/main/java${packagePath}${modulePath}/dao${subModulePath}</filePath>
<fileName>${ClassName}Dao.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.dao${isNotEmpty(subModuleName)?'.'+subModuleName:''};
package ${packageName}.${moduleName}.dao${subModuleNameDot};
import com.jeesite.common.dao.${table.isTreeEntity?'Tree':'Crud'}Dao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName};
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${ClassName};
/**
* ${functionName}DAO接口

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>entity</name>
<filePath>${baseDir}/${moduleName}-client/src/main/java/${packagePath}/${moduleName}/entity${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}${modulePath}-client/src/main/java${packagePath}${modulePath}/entity${subModulePath}</filePath>
<fileName>${ClassName}.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.entity${isNotBlank(subModuleName)?'.'+subModuleName:''};

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>mapper</name>
<filePath>${baseDir}/${moduleName}/src/main/resources/mappings/${lastPackageName}/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}${modulePath}/src/main/resources/mappings/${lastPackageName}${modulePath}${subModulePath}</filePath>
<fileName>${ClassName}Dao.xml</fileName>
<content><![CDATA[
<?xml version="1.0" encoding="UTF-8" ?>

View File

@@ -3,10 +3,10 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>service</name>
<filePath>${baseDir}/${moduleName}/src/main/java/${packagePath}/${moduleName}/service${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}${modulePath}/src/main/java${packagePath}${modulePath}/service${subModulePath}</filePath>
<fileName>${ClassName}Service.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.service${isNotEmpty(subModuleName)?'.'+subModuleName:''};
package ${packageName}.${moduleName}.service${subModuleNameDot};
import java.util.List;
<% if (table.childList.~size > 0){ %>
@@ -18,9 +18,9 @@ import org.springframework.web.bind.annotation.RestController;
import com.jeesite.common.entity.Page;
import com.jeesite.common.service.${table.isTreeEntity?'Tree':'Crud'}Service;
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName};
import ${packageName}.${moduleName}.dao${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName}Dao;
import ${packageName}.${moduleName}.api${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName}ServiceApi;
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${ClassName};
import ${packageName}.${moduleName}.dao${subModuleNameDot}.${ClassName}Dao;
import ${packageName}.${moduleName}.api${subModuleNameDot}.${ClassName}ServiceApi;
<% if(toBoolean(table.optionMap['isBpmForm'])){ %>
import java.util.Map;
import com.jeesite.common.lang.StringUtils;
@@ -34,8 +34,8 @@ import com.jeesite.common.service.ServiceException;
import com.jeesite.modules.file.utils.FileUploadUtils;
<% } %>
<% for (child in table.childList){ %>
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${@StringUtils.cap(child.className)};
import ${packageName}.${moduleName}.dao${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${@StringUtils.cap(child.className)}Dao;
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${@StringUtils.cap(child.className)};
import ${packageName}.${moduleName}.dao${subModuleNameDot}.${@StringUtils.cap(child.className)}Dao;
<% } %>
<% if(toBoolean(table.optionMap['isImportExport'])){ %>
import com.jeesite.common.config.Global;

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>viewForm</name>
<filePath>${baseDir}/${moduleName}/src/main/resources/views/${lastPackageName}/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}${modulePath}/src/main/resources/views/${lastPackageName}${modulePath}${subModulePath}</filePath>
<fileName>${className}Form.html</fileName>
<content><![CDATA[
<% include('/templates/modules/gen/view/viewForm.html'){} %>]]>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>viewIndex</name>
<filePath>${baseDir}/${moduleName}/src/main/resources/views/${lastPackageName}/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}${modulePath}/src/main/resources/views/${lastPackageName}${modulePath}${subModulePath}</filePath>
<fileName>${className}Index.html</fileName>
<content><![CDATA[
<% include('/templates/modules/gen/view/viewIndex.html'){} %>]]>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>viewList</name>
<filePath>${baseDir}/${moduleName}/src/main/resources/views/${lastPackageName}/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}${modulePath}/src/main/resources/views/${lastPackageName}${modulePath}${subModulePath}</filePath>
<fileName>${className}List.html</fileName>
<content><![CDATA[
<% include('/templates/modules/gen/view/viewList.html'){} %>]]>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>viewSelect</name>
<filePath>${baseDir}/${moduleName}/src/main/resources/views/${lastPackageName}/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}${modulePath}/src/main/resources/views/${lastPackageName}${modulePath}${subModulePath}</filePath>
<fileName>${className}Select.html</fileName>
<content><![CDATA[
<% include('/templates/modules/gen/view/viewSelect.html'){} %>]]>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>deploy</name>
<filePath>${baseDir}/${moduleCode}/bin</filePath>
<filePath>${baseDir}/${modulePath}/bin</filePath>
<fileName>deploy.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>deploy</name>
<filePath>${baseDir}/${moduleCode}/bin</filePath>
<filePath>${baseDir}/${modulePath}/bin</filePath>
<fileName>deploy.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${baseDir}/${moduleCode}/bin</filePath>
<filePath>${baseDir}/${modulePath}/bin</filePath>
<fileName>package.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${baseDir}/${moduleCode}/bin</filePath>
<filePath>${baseDir}/${modulePath}/bin</filePath>
<fileName>package.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>erm</name>
<filePath>${baseDir}/${moduleCode}/db</filePath>
<filePath>${baseDir}/${modulePath}/db</filePath>
<fileName>${moduleCode}.erm</fileName>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<diagram>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>pom</name>
<filePath>${baseDir}/${moduleCode}</filePath>
<filePath>${baseDir}/${modulePath}</filePath>
<fileName>pom.xml</fileName>
<charset></charset>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${baseDir}/${moduleCode}/src/main/java/com/jeesite/modules/${@StringUtils.replace(moduleCode, '-', '/')}</filePath>
<filePath>${baseDir}/${modulePath}/src/main/java/com/jeesite/modules/${@StringUtils.replace(moduleCode, '-', '/')}</filePath>
<fileName></fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>jeesite</name>
<filePath>${baseDir}/${moduleCode}/src/main/resources/config</filePath>
<filePath>${baseDir}/${modulePath}/src/main/resources/config</filePath>
<fileName>jeesite-${moduleCode}.yml</fileName>
<content><![CDATA[
# 温馨提示不建议直接修改此文件为了平台升级方便建议将需要修改的参数值复制到application.yml里进行覆盖该参数值。

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>versions</name>
<filePath>${baseDir}/${moduleCode}/src/main/resources/db/upgrade/${moduleCode}</filePath>
<filePath>${baseDir}/${modulePath}/src/main/resources/db/upgrade/${moduleCode}</filePath>
<fileName>versions</fileName>
<content><![CDATA[${module.currentVersion}]]>
</content>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>static</name>
<filePath>${baseDir}/${moduleCode}/src/main/resources/static/modules/${@StringUtils.replace(moduleCode, '-', '/')}</filePath>
<filePath>${baseDir}/${modulePath}/src/main/resources/static/modules/${@StringUtils.replace(moduleCode, '-', '/')}</filePath>
<fileName></fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>deploy</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}-client/bin</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}-client/bin</filePath>
<fileName>deploy.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>deploy</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}-client/bin</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}-client/bin</filePath>
<fileName>deploy.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}-client/bin</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}-client/bin</filePath>
<fileName>package.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}-client/bin</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}-client/bin</filePath>
<fileName>package.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>pom</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}-client</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}-client</filePath>
<fileName>pom.xml</fileName>
<charset></charset>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}-client/src/main/java/com/jeesite/modules/${@StringUtils.replace(moduleCode, '-', '/')}</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}-client/src/main/java/com/jeesite/modules/${@StringUtils.replace(moduleCode, '-', '/')}</filePath>
<fileName></fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>pom</name>
<filePath>${baseDir}/${moduleCode}</filePath>
<filePath>${baseDir}/${modulePath}</filePath>
<fileName>pom.xml</fileName>
<charset></charset>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>docker-build</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/bin</filePath>
<fileName>docker-build.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>docker-build</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/bin</filePath>
<fileName>docker-build.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>Dockerfile</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin/docker</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/bin/docker</filePath>
<fileName>Dockerfile</fileName>
<content><![CDATA[FROM docker.m.daocloud.io/openjdk:17
LABEL maintainer="ThinkGem@163.com"

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/bin</filePath>
<fileName>package.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/bin</filePath>
<fileName>package.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>run-tomcat</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/bin</filePath>
<fileName>run-tomcat.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>run-tomcat</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/bin</filePath>
<fileName>run-tomcat.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>run-web</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/bin</filePath>
<fileName>run-web.bat</fileName>
<charset>GBK</charset>
<content><![CDATA[@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>run-web</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/bin</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/bin</filePath>
<fileName>run-web.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>erm</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/db</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/db</filePath>
<fileName>${moduleCode}.erm</fileName>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<diagram>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>pom</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}</filePath>
<fileName>pom.xml</fileName>
<charset></charset>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/java/com/jeesite/modules/${@StringUtils.replace(moduleCode, '-', '/')}</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/src/main/java/com/jeesite/modules/${@StringUtils.replace(moduleCode, '-', '/')}</filePath>
<fileName></fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>start-class</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/java/com/jeesite/modules</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/src/main/java/com/jeesite/modules</filePath>
<fileName>${@StringUtils.capCamelCase(moduleCode)}Application.java</fileName>
<content><![CDATA[
/**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>application-elk</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/src/main/resources/config</filePath>
<fileName>application-elk.yml</fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>application-prod</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/src/main/resources/config</filePath>
<fileName>application-prod.yml</fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>application</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/src/main/resources/config</filePath>
<fileName>application.yml</fileName>
<content><![CDATA[
#======================================#

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>logback-spring-elk</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/src/main/resources/config</filePath>
<fileName>logback-spring-elk.xml</fileName>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false" scan="false">

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>logback-spring-prod</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/src/main/resources/config</filePath>
<fileName>logback-spring-prod.xml</fileName>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false" scan="false">

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>logback-spring</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/config</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/src/main/resources/config</filePath>
<fileName>logback-spring.xml</fileName>
<content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false" scan="false">

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>static</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/resources/static/modules/${@StringUtils.replace(moduleCode, '-', '/')}</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/src/main/resources/static/modules/${@StringUtils.replace(moduleCode, '-', '/')}</filePath>
<fileName></fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>run-web</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/webapp/WEB-INF</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/src/main/webapp/WEB-INF</filePath>
<fileName>startup.bat</fileName>
<content><![CDATA[chcp 65001
@echo off

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>run-web</name>
<filePath>${baseDir}/${moduleCode}/${moduleCode}/src/main/webapp/WEB-INF</filePath>
<filePath>${baseDir}/${modulePath}/${moduleCode}/src/main/webapp/WEB-INF</filePath>
<fileName>startup.sh</fileName>
<content><![CDATA[#!/bin/sh
# /**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>README</name>
<filePath>${baseDir}/packages/${moduleCode}</filePath>
<filePath>${baseDir}/packages/${modulePath}</filePath>
<fileName>README.md</fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>api</name>
<filePath>${baseDir}/packages/${moduleCode}/api</filePath>
<filePath>${baseDir}/packages/${modulePath}/api</filePath>
<fileName></fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>index</name>
<filePath>${baseDir}/packages/${moduleCode}</filePath>
<filePath>${baseDir}/packages/${modulePath}</filePath>
<fileName>index.ts</fileName>
<content><![CDATA[

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${baseDir}/packages/${moduleCode}</filePath>
<filePath>${baseDir}/packages/${modulePath}</filePath>
<fileName>package.json</fileName>
<content><![CDATA[
{

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>tsconfig</name>
<filePath>${baseDir}/packages/${moduleCode}</filePath>
<filePath>${baseDir}/packages/${modulePath}</filePath>
<fileName>tsconfig.json</fileName>
<content><![CDATA[
{

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>views</name>
<filePath>${baseDir}/packages/${moduleCode}/views</filePath>
<filePath>${baseDir}/packages/${modulePath}/views</filePath>
<fileName></fileName>
<content><![CDATA[

View File

@@ -3,10 +3,10 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>controller</name>
<filePath>${baseDir}/src/main/java/${packagePath}/${moduleName}/web${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/java${packagePath}${modulePath}/web${subModulePath}</filePath>
<fileName>${ClassName}Controller.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.web${isNotEmpty(subModuleName)?'.'+subModuleName:''};
package ${packageName}.${moduleName}.web${subModuleNameDot};
<% if (table.isTreeEntity){ %>
import java.util.List;
@@ -36,11 +36,11 @@ import com.jeesite.modules.sys.utils.UserUtils;
import com.jeesite.common.entity.Page;
<% } %>
import com.jeesite.common.web.BaseController;
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName};
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${ClassName};
<% for (child in table.childList){ %>
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${@StringUtils.cap(child.className)};
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${@StringUtils.cap(child.className)};
<% } %>
import ${packageName}.${moduleName}.service${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName}Service;
import ${packageName}.${moduleName}.service${subModuleNameDot}.${ClassName}Service;
/**
* ${functionName}Controller

View File

@@ -3,14 +3,14 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>dao</name>
<filePath>${baseDir}/src/main/java/${packagePath}/${moduleName}/dao${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/java${packagePath}${modulePath}/dao${subModulePath}</filePath>
<fileName>${ClassName}Dao.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.dao${isNotEmpty(subModuleName)?'.'+subModuleName:''};
package ${packageName}.${moduleName}.dao${subModuleNameDot};
import com.jeesite.common.dao.${table.isTreeEntity?'Tree':'Query'}Dao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName};
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${ClassName};
/**
* ${functionName}DAO接口

View File

@@ -3,10 +3,10 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>service</name>
<filePath>${baseDir}/src/main/java/${packagePath}/${moduleName}/service${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/java${packagePath}${modulePath}/service${subModulePath}</filePath>
<fileName>${ClassName}Service.java</fileName>
<content><![CDATA[
package ${packageName}.${moduleName}.service${isNotEmpty(subModuleName)?'.'+subModuleName:''};
package ${packageName}.${moduleName}.service${subModuleNameDot};
import java.util.List;
<% if (table.childList.~size > 0){ %>
@@ -16,11 +16,11 @@ import org.springframework.stereotype.Service;
import com.jeesite.common.entity.Page;
import com.jeesite.common.service.${table.isTreeEntity?'Tree':'Query'}Service;
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName};
import ${packageName}.${moduleName}.dao${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${ClassName}Dao;
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${ClassName};
import ${packageName}.${moduleName}.dao${subModuleNameDot}.${ClassName}Dao;
<% for (child in table.childList){ %>
import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${@StringUtils.cap(child.className)};
import ${packageName}.${moduleName}.dao${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${@StringUtils.cap(child.className)}Dao;
import ${packageName}.${moduleName}.entity${subModuleNameDot}.${@StringUtils.cap(child.className)};
import ${packageName}.${moduleName}.dao${subModuleNameDot}.${@StringUtils.cap(child.className)}Dao;
<% } %>
/**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>viewForm</name>
<filePath>${baseDir}/src/main/resources/views/${lastPackageName}/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/resources/views/${lastPackageName}${modulePath}${subModulePath}</filePath>
<fileName>${className}Form.html</fileName>
<content><![CDATA[
<%

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>viewList</name>
<filePath>${baseDir}/src/main/resources/views/${lastPackageName}/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${baseDir}/src/main/resources/views/${lastPackageName}${modulePath}${subModulePath}</filePath>
<fileName>${className}List.html</fileName>
<content><![CDATA[
\<% layout('/layouts/default.html', {title: '${functionNameSimple}查询', libs: ['dataGrid']}){ %>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>vueApi</name>
<filePath>${frontDir}/packages/${moduleName}/api/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}</filePath>
<filePath>${frontDir}/packages${modulePath}/api${modulePath}${subModulePath}</filePath>
<fileName>${className}.ts</fileName>
<content><![CDATA[
/**

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>vueForm</name>
<filePath>${frontDir}/packages/${moduleName}/views/${urlPrefix}</filePath>
<filePath>${frontDir}/packages${modulePath}/views/${urlPrefix}</filePath>
<fileName>form.vue</fileName>
<content><![CDATA[
<% var modalOrDrawer = @StringUtils.contains(table.tplCategory, '_modal') ? 'Modal' : 'Drawer'; %>
@@ -63,7 +63,7 @@
import { Icon } from '@jeesite/core/components/Icon';
import { BasicForm, FormSchema, useForm } from '@jeesite/core/components/Form';
import { Basic${modalOrDrawer}, use${modalOrDrawer}Inner } from '@jeesite/core/components/${modalOrDrawer}';
import { ${ClassName}, ${className}Save, ${className}Form<% if(table.isTreeEntity){ %>, ${className}TreeData<% } %> } from '@jeesite/${moduleName}/api/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}/${className}';
import { ${ClassName}, ${className}Save, ${className}Form<% if(table.isTreeEntity){ %>, ${className}TreeData<% } %> } from '@jeesite/${moduleMinus}/api${modulePath}${subModulePath}/${className}';
<%
var userselectExists = false;
var officeselectExists = false;
@@ -101,7 +101,7 @@
const emit = defineEmits(['success', 'register']);
const { t } = useI18n('${moduleName}${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${className}');
const { t } = useI18n('${moduleName}${subModuleNameDot}.${className}');
const { showMessage } = useMessage();
const { meta } = unref(router.currentRoute);
const record = ref<${ClassName}>({} as ${ClassName});

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>vueFormChildList</name>
<filePath>${frontDir}/packages/${moduleName}/views/${urlPrefix}</filePath>
<filePath>${frontDir}/packages${modulePath}/views/${urlPrefix}</filePath>
<fileName>form${@StringUtils.cap(table.classNameSimple)}List.vue</fileName>
<content><![CDATA[
<!--
@@ -26,7 +26,7 @@
import { useI18n } from '@jeesite/core/hooks/web/useI18n';
import { Icon } from '@jeesite/core/components/Icon';
import { BasicTable, BasicColumn, useTable } from '@jeesite/core/components/Table';
import { ${ParentClassName} } from '@jeesite/${moduleName}/api/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}/${parentClassName}';
import { ${ParentClassName} } from '@jeesite/${moduleMinus}/api${modulePath}${subModulePath}/${parentClassName}';
<%
var userselectExists = false;
var officeselectExists = false;
@@ -56,7 +56,7 @@
import { areaTreeData } from '@jeesite/core/api/sys/area';
<% } %>
const { t } = useI18n('${moduleName}${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${className}');
const { t } = useI18n('${moduleName}${subModuleNameDot}.${className}');
const record = ref<${ParentClassName}>({} as ${ParentClassName});
const tableColumns: BasicColumn[] = [

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>vueFormRoute</name>
<filePath>${frontDir}/packages/${moduleName}/views/${urlPrefix}</filePath>
<filePath>${frontDir}/packages${modulePath}/views/${urlPrefix}</filePath>
<fileName>formRoute.vue</fileName>
<content><![CDATA[
<!--
@@ -72,7 +72,7 @@
<% if (table.childList.~size > 0){ %>
import { BasicTable, useTable } from '@jeesite/core/components/Table';
<% } %>
import { ${ClassName}, ${className}Save, ${className}Form<% if(table.isTreeEntity){ %>, ${className}TreeData<% } %> } from '@jeesite/${moduleName}/api/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}/${className}';
import { ${ClassName}, ${className}Save, ${className}Form<% if(table.isTreeEntity){ %>, ${className}TreeData<% } %> } from '@jeesite/${moduleMinus}/api${modulePath}${subModulePath}/${className}';
<%
var userselectExists = false;
var officeselectExists = false;
@@ -124,7 +124,7 @@ for(c in table.columnList){
const emitter = useEmitter();
const { t } = useI18n('${moduleName}${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${className}');
const { t } = useI18n('${moduleName}${subModuleNameDot}.${className}');
const { showMessage } = useMessage();
const { setTitle, close } = useTabs(router);
const record = ref<${ClassName}>({} as ${ClassName});

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>vueFormImport</name>
<filePath>${frontDir}/packages/${moduleName}/views/${urlPrefix}</filePath>
<filePath>${frontDir}/packages${modulePath}/views/${urlPrefix}</filePath>
<fileName>formImport.vue</fileName>
<content><![CDATA[
<% if(toBoolean(table.optionMap['isImportExport'])){ %>
@@ -51,13 +51,13 @@
import { downloadByUrl } from '@jeesite/core/utils/file/download';
import { Icon } from '@jeesite/core/components/Icon';
import { BasicModal, useModalInner } from '@jeesite/core/components/Modal';
import { ${className}ImportData } from '@jeesite/${moduleName}/api/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}/${className}';
import { ${className}ImportData } from '@jeesite/${moduleMinus}/api${modulePath}${subModulePath}/${className}';
import { FileType } from 'ant-design-vue/es/upload/interface';
import { AxiosProgressEvent } from 'axios';
const emit = defineEmits(['success', 'register']);
const { t } = useI18n('${moduleName}${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${className}');
const { t } = useI18n('${moduleName}${subModuleNameDot}.${className}');
const { showMessage, showMessageModal } = useMessage();
const fileList = ref<FileType[]>([]);

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>vueIndex</name>
<filePath>${frontDir}/packages/${moduleName}/views/${urlPrefix}</filePath>
<filePath>${frontDir}/packages${modulePath}/views/${urlPrefix}</filePath>
<fileName>index.vue</fileName>
<content><![CDATA[
<% if(table.isTreeEntity || isNotBlank(table.optionMap['leftTreeRightTableUrl'])){ %>
@@ -33,10 +33,10 @@
import { useI18n } from '@jeesite/core/hooks/web/useI18n';
import { PageWrapper } from '@jeesite/core/components/Page';
import { BasicTree } from '@jeesite/core/components/Tree';
import { ${className}TreeData } from '@jeesite/${moduleName}/api/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}/${className}';
import { ${className}TreeData } from '@jeesite/${moduleMinus}/api${modulePath}${subModulePath}/${className}';
import ListView from './list.vue';
const { t } = useI18n('${moduleName}${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${className}');
const { t } = useI18n('${moduleName}${subModuleNameDot}.${className}');
const treeCodes = ref<string[]>([]);
</script>
<% } %>

View File

@@ -3,7 +3,7 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>vueList</name>
<filePath>${frontDir}/packages/${moduleName}/views/${urlPrefix}</filePath>
<filePath>${frontDir}/packages/${modulePath}/views/${urlPrefix}</filePath>
<fileName>list.vue</fileName>
<content><![CDATA[
<% var modalOrDrawer = @StringUtils.contains(table.tplCategory, '_modal') ? 'Modal' : 'Drawer'; %>
@@ -111,9 +111,9 @@ if(table.isTreeEntity){
import { router } from '@jeesite/core/router';
import { Icon } from '@jeesite/core/components/Icon';
import { BasicTable, BasicColumn, useTable } from '@jeesite/core/components/Table';
import { ${className}Delete, ${className}ListData } from '@jeesite/${moduleName}/api/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}/${className}';
import { ${className}Delete, ${className}ListData } from '@jeesite/${moduleMinus}/api${modulePath}${subModulePath}/${className}';
<% if(toBoolean(table.optionMap['isHaveDisableEnable'])){ %>
import { ${className}Disable, ${className}Enable } from '@jeesite/${moduleName}/api/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}/${className}';
import { ${className}Disable, ${className}Enable } from '@jeesite/${moduleMinus}/api${modulePath}${subModulePath}/${className}';
<% } %>
<%
var userselectExists = false;
@@ -176,7 +176,7 @@ if(table.isTreeEntity){
const emitter = useEmitter();
<% } %>
const { t } = useI18n('${moduleName}${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${className}');
const { t } = useI18n('${moduleName}${subModuleNameDot}.${className}');
const { showMessage } = useMessage();
const { meta } = unref(router.currentRoute);

View File

@@ -3,12 +3,12 @@
No deletion without permission, or be held responsible to law. -->
<template>
<name>vueSelect</name>
<filePath>${frontDir}/packages/${moduleName}/views/${urlPrefix}</filePath>
<filePath>${frontDir}/packages${modulePath}/views/${urlPrefix}</filePath>
<fileName>select.ts</fileName>
<content><![CDATA[
import { useI18n } from '@jeesite/core/hooks/web/useI18n';
import { BasicColumn, BasicTableProps, FormProps } from '@jeesite/core/components/Table';
import { ${className}ListData } from '@jeesite/${moduleName}/api/${moduleName}${isNotEmpty(subModuleName)?'/'+subModuleName:''}/${className}';
import { ${className}ListData } from '@jeesite/${moduleMinus}/api${modulePath}${subModulePath}/${className}';
<%
var userselectExists = false;
var officeselectExists = false;
@@ -38,7 +38,7 @@ import { companyTreeData } from '@jeesite/core/api/sys/company';
import { areaTreeData } from '@jeesite/core/api/sys/area';
<% } %>
const { t } = useI18n('${moduleName}${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${className}');
const { t } = useI18n('${moduleName}${subModuleNameDot}.${className}');
const modalProps = {
title: t('${functionNameSimple}选择'),