From 6a18723546dde63ea93fbe453ae16186c635dac2 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期二, 10 十月 2023 13:48:01 +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