tomcat管理

This commit is contained in:
Arno 2019-09-19 09:46:45 +08:00
parent 758137e092
commit 28236033e5
2 changed files with 8 additions and 8 deletions

View File

@ -72,7 +72,7 @@ public class TomcatInfoModel extends BaseModel {
public String getAppBase() {
if (StrUtil.isEmpty(appBase)) {
return StrUtil.EMPTY;
return FileUtil.normalize(path + "/webapps/");
}
return FileUtil.normalize(appBase + "/");
}

View File

@ -49,7 +49,7 @@
<script type="text/html" id="bar_projects">
<a th:if="${session.user.isDeleteTomcatFile(node.id)}" href="javascript:;"
<a th:if="${session.user.isSystemUser()}" href="javascript:;"
class="layui-btn layui-btn-sm layui-btn-danger" lay-event="delete">删除</a>
{{# if(!d.isDirectory){ }}
@ -109,12 +109,12 @@
zTreeObj.removeChildNodes(currentNode);
var temp = [];
for (var i in child) {
if (child[i].isDirectory) {
temp.push(child[i]);
}
if (child[i].isDirectory) {
child[i].hasChildren = true;
child[i].chkDisabled = true;
}
}
zTreeObj.addNodes(currentNode, temp, false);
}
}
@ -220,12 +220,12 @@
zTreeObj.removeChildNodes(currentNode);
var temp = [];
for (var i in child) {
if (child[i].isDirectory) {
temp.push(child[i]);
}
if (child[i].isDirectory) {
child[i].hasChildren = true;
child[i].chkDisabled = true;
}
}
zTreeObj.addNodes(currentNode, temp, false);
}
}