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

@ -61,6 +61,13 @@ public class Module extends TreeItem {
return true;
}
public boolean hasHtml() {
for (Table table : tables) {
if (table.getHtml()) return true;
}
return false;
}
public List<Table> getTables() {
return tables;
}
@ -82,7 +89,7 @@ public class Module extends TreeItem {
}
public void setModulePrefix(String modulePrefix) {
this.modulePrefix = modulePrefix!=null?modulePrefix:"";
this.modulePrefix = modulePrefix != null ? modulePrefix : "";
}
public String getProjectName() {

@ -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-submenu>
<#list modules as item>
<#if item.hasHtml()>
<el-submenu index="${tool.uuid()}">
<template slot="title">
<i class="el-icon-document-copy"></i>
<span slot="title">${item.moduleComment}</span>
</template>
<#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>
</#if>
</#list>
</el-submenu>
</#if>
</#list>
</el-menu>
</div>

Loading…
Cancel
Save

Powered by TurnKey Linux.