From 9219488d53d9ab234321ca1bb0b7322a9a2d1882 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期二, 08 十一月 2022 13:50:48 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/deptTree.js | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/static/js/deptTree.js b/src/main/webapp/static/js/deptTree.js index 0f5e93e..e14e7c2 100644 --- a/src/main/webapp/static/js/deptTree.js +++ b/src/main/webapp/static/js/deptTree.js @@ -35,12 +35,11 @@ data: res.data, click: function (obj) { currentDeptId = obj.data.id; - currentDeptName = obj.data.title.split(" - ")[0]; - // currentTemSsbm = obj.data.title.split(" - ")[1]; + currentDeptName = obj.data.title; 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 +47,7 @@ }); treeData = res.data; if (isEmpty(condition) && init) { - tableIns.reload({ + insTb2.reload({ where: {dept_id: ""}, page: {curr: 1} }); @@ -82,4 +81,4 @@ function findData(el) { var condition = $(el).val(); loadTree(condition) -} \ No newline at end of file +} -- Gitblit v1.9.1