Former-commit-id: 10d81ffe554e419abacdf8300c7aac23b0c45850
master
wangbing 5 years ago
parent 1b54fcb6db
commit 1e0f2c8545

@ -61,6 +61,13 @@ public class Module extends TreeItem {
return true; return true;
} }
public boolean hasHtml() {
for (Table table : tables) {
if (table.getHtml()) return true;
}
return false;
}
public List<Table> getTables() { public List<Table> getTables() {
return tables; return tables;
} }

@ -20,15 +20,19 @@
<el-menu-item index="${tool.uuid()}" @click="addTab({title: '文件管理', name: 'file', url: '${r'${context}'}/system/file.htm'})">文件管理</el-menu-item> <el-menu-item index="${tool.uuid()}" @click="addTab({title: '文件管理', name: 'file', url: '${r'${context}'}/system/file.htm'})">文件管理</el-menu-item>
</el-submenu> </el-submenu>
<#list modules as item> <#list modules as item>
<#if item.hasHtml()>
<el-submenu index="${tool.uuid()}"> <el-submenu index="${tool.uuid()}">
<template slot="title"> <template slot="title">
<i class="el-icon-document-copy"></i> <i class="el-icon-document-copy"></i>
<span slot="title">${item.moduleComment}</span> <span slot="title">${item.moduleComment}</span>
</template> </template>
<#list item.tables as table> <#list item.tables as table>
<#if table.getHtml()>
<el-menu-item index="${tool.uuid()}" @click="addTab({title: '${table.tableComment}', name: '${table.tableName}', url: '${r"${context}"}/${item.moduleName}/${table.getFName()}.htm'})">${table.tableComment}</el-menu-item> <el-menu-item index="${tool.uuid()}" @click="addTab({title: '${table.tableComment}', name: '${table.tableName}', url: '${r"${context}"}/${item.moduleName}/${table.getFName()}.htm'})">${table.tableComment}</el-menu-item>
</#if>
</#list> </#list>
</el-submenu> </el-submenu>
</#if>
</#list> </#list>
</el-menu> </el-menu>
</div> </div>

Loading…
Cancel
Save

Powered by TurnKey Linux.