1、Ajax优化

Former-commit-id: 6439bbce8656096090f5ee74b5ac072e367b1e16
master
王兵 5 years ago
parent 2cb4cb0107
commit e7f36c47c1

@ -127,25 +127,25 @@ public class RoleInit {
<#list project.modules as module>
<#list module.tables as table>
<#if table.html>
createRes(roleId, roleCode, "WEB_${table.tableName}", "${table.tableComment}新增", "网页地址", "/system/${table.getCName()}.htm");
createRes(roleId, roleCode, "WEB_${table.tableName}", "${table.tableComment}新增", "网页地址", "/${module.moduleName}/${table.getCName()}.htm");
</#if>
<#if table.create>
createRes(roleId, roleCode, "WEB_${table.tableName}_CREATE", "${table.tableComment}新增", "异步请求", "/ajax/system/${table.getCName()}/create");
createRes(roleId, roleCode, "WEB_${table.tableName}_CREATE", "${table.tableComment}新增", "异步请求", "/ajax/${module.moduleName}/${table.getCName()}/create");
</#if>
<#if table.delete>
createRes(roleId, roleCode, "WEB_${table.tableName}_DELETE", "${table.tableComment}删除", "异步请求", "/ajax/system/${table.getCName()}/delete");
createRes(roleId, roleCode, "WEB_${table.tableName}_DELETE", "${table.tableComment}删除", "异步请求", "/ajax/${module.moduleName}/${table.getCName()}/delete");
</#if>
<#if table.update>
createRes(roleId, roleCode, "WEB_${table.tableName}_UPDATE", "${table.tableComment}更新", "异步请求", "/ajax/system/${table.getCName()}/update");
createRes(roleId, roleCode, "WEB_${table.tableName}_UPDATE", "${table.tableComment}更新", "异步请求", "/ajax/${module.moduleName}/${table.getCName()}/update");
</#if>
<#if table.find>
createRes(roleId, roleCode, "WEB_${table.tableName}_FIND", "${table.tableComment}查询", "异步请求", "/ajax/system/${table.getCName()}/find");
createRes(roleId, roleCode, "WEB_${table.tableName}_FIND", "${table.tableComment}查询", "异步请求", "/ajax/${module.moduleName}/${table.getCName()}/find");
</#if>
<#if table.get>
createRes(roleId, roleCode, "WEB_${table.tableName}_GET", "${table.tableComment}获取", "异步请求", "/ajax/system/${table.getCName()}/get");
createRes(roleId, roleCode, "WEB_${table.tableName}_GET", "${table.tableComment}获取", "异步请求", "/ajax/${module.moduleName}/${table.getCName()}/get");
</#if>
<#if table.search>
createRes(roleId, roleCode, "WEB_${table.tableName}_SEARCH", "${table.tableComment}搜索", "异步请求", "/ajax/system/${table.getCName()}/search");
createRes(roleId, roleCode, "WEB_${table.tableName}_SEARCH", "${table.tableComment}搜索", "异步请求", "/ajax/${module.moduleName}/${table.getCName()}/search");
</#if>
</#list>

Loading…
Cancel
Save

Powered by TurnKey Linux.