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 |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/static/js/deptTree.js b/src/main/webapp/static/js/deptTree.js
index 75413a6..e14e7c2 100644
--- a/src/main/webapp/static/js/deptTree.js
+++ b/src/main/webapp/static/js/deptTree.js
@@ -34,9 +34,8 @@
                         onlyIconControl: true,
                         data: res.data,
                         click: function (obj) {
-                            console.log(obj)
                             currentDeptId = obj.data.id;
-                            currentDeptName = obj.data.title.split(" - ")[0];
+                            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');

--
Gitblit v1.9.1