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,11 +109,11 @@
|
||||
zTreeObj.removeChildNodes(currentNode);
|
||||
var temp = [];
|
||||
for (var i in child) {
|
||||
temp.push(child[i]);
|
||||
if (child[i].isDirectory) {
|
||||
temp.push(child[i]);
|
||||
child[i].hasChildren = true;
|
||||
child[i].chkDisabled = true;
|
||||
}
|
||||
child[i].hasChildren = true;
|
||||
child[i].chkDisabled = true;
|
||||
}
|
||||
zTreeObj.addNodes(currentNode, temp, false);
|
||||
}
|
||||
@ -220,11 +220,11 @@
|
||||
zTreeObj.removeChildNodes(currentNode);
|
||||
var temp = [];
|
||||
for (var i in child) {
|
||||
temp.push(child[i]);
|
||||
if (child[i].isDirectory) {
|
||||
temp.push(child[i]);
|
||||
child[i].hasChildren = true;
|
||||
child[i].chkDisabled = true;
|
||||
}
|
||||
child[i].hasChildren = true;
|
||||
child[i].chkDisabled = true;
|
||||
}
|
||||
zTreeObj.addNodes(currentNode, temp, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user