diff --git a/WebRoot/html/study/TreeManage.html b/WebRoot/html/study/TreeManage.html
index 9b1a83a..74f5709 100644
--- a/WebRoot/html/study/TreeManage.html
+++ b/WebRoot/html/study/TreeManage.html
@@ -62,7 +62,16 @@
}
}
+ function showBtn(treeId, treeNode) {
+ if (treeNode.level == 0) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+
function addHoverDom(treeId, treeNode) {
+ if (treeNode.level_id > 1) return;//第二级开始,不能显示增加
let sObj = $("#" + treeNode.tId + "_span");
if (treeNode.editNameFlag || $("#addBtn_" + treeNode.tId).length > 0) return;
let addStr = " 0) {
+ layer.msg('存在子节点,请先删除子节点!', {icon: 2, time: 2000, shade: 0.1});
} else {
- layer.confirm('确定删除 ' + treeNode.org_name + ' 吗?', {icon: 0}, function () {
- onRemove(treeNode.org_id);
+ layer.confirm('确定删除 ' + treeNode.name + ' 吗?', {icon: 0}, function () {
+ onRemove(treeNode.id);
})
}
return b_del;
@@ -95,9 +104,9 @@
$.ajax({
type: "POST",
async: false,
- url: '/baseService/organization/deleteOrgById',
+ url: '/FengHuang/zjb/deleteNode',
data: {
- org_id: id
+ id: id
},
dataType: "json",
success: function (data) {
@@ -111,19 +120,11 @@
}
})
}
-
- function showBtn(treeId, treeNode) {
- if (treeNode.level == 0) {
- return false;
- } else {
- return true;
- }
- }
-
// 编辑
function beforeEditName(treeId, treeNode) {
- WeAdminShow('编辑', 'update.html?id=' + treeNode.id, 550, 400);
+ WeAdminShow('编辑', 'update.html?id=' + treeNode.id, 550, 200);
}
+
window.loadTree = function () {
let zNodes = [];
$.ajax({
diff --git a/WebRoot/html/study/update.html b/WebRoot/html/study/update.html
index 06949ea..acfba77 100644
--- a/WebRoot/html/study/update.html
+++ b/WebRoot/html/study/update.html
@@ -3,19 +3,14 @@
- 编辑部门
+ 编辑节点
-
-
-
-
-
+
+
+