mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-04 21:08:30 +08:00
tomcat管理
This commit is contained in:
parent
758137e092
commit
28236033e5
@ -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 + "/");
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user