From 210f43f605d486796018a838d8b8ca8bf1922675 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 16 九月 2022 09:10:45 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/deptTree.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/static/js/deptTree.js b/src/main/webapp/static/js/deptTree.js
index 0f5e93e..75413a6 100644
--- a/src/main/webapp/static/js/deptTree.js
+++ b/src/main/webapp/static/js/deptTree.js
@@ -34,13 +34,13 @@
onlyIconControl: true,
data: res.data,
click: function (obj) {
+ console.log(obj)
currentDeptId = obj.data.id;
currentDeptName = obj.data.title.split(" - ")[0];
- // currentTemSsbm = obj.data.title.split(" - ")[1];
selObj = obj;
$('#organizationTree').find('.ew-tree-click').removeClass('ew-tree-click');
$(obj.elem).children('.layui-tree-entry').addClass('ew-tree-click');
- tableIns.reload({
+ insTb2.reload({
where: {dept_id: obj.data.id},
page: {curr: 1}
});
@@ -48,7 +48,7 @@
});
treeData = res.data;
if (isEmpty(condition) && init) {
- tableIns.reload({
+ insTb2.reload({
where: {dept_id: ""},
page: {curr: 1}
});
@@ -82,4 +82,4 @@
function findData(el) {
var condition = $(el).val();
loadTree(condition)
-}
\ No newline at end of file
+}
--
Gitblit v1.9.1