From 17362f5075d91d26bca2231396c624902049e12d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 16 九月 2022 13:24:35 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/cstmr/cstmr.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/static/js/cstmr/cstmr.js b/src/main/webapp/static/js/cstmr/cstmr.js
index c2cac53..70fd30e 100644
--- a/src/main/webapp/static/js/cstmr/cstmr.js
+++ b/src/main/webapp/static/js/cstmr/cstmr.js
@@ -29,6 +29,7 @@
     var organizationTree;
     var selObj;
     window.loadTree = function(condition){
+        var loadIndex = layer.load(2);
         $.ajax({
             url: baseUrl+"/dept/user/tree/auth",
             headers: {'token': localStorage.getItem('token')},
@@ -37,6 +38,7 @@
             },
             method: 'POST',
             success: function (res) {
+                layer.close(loadIndex);
                 if (res.code === 200){
                     organizationTree = tree.render({
                         elem: '#organizationTree',
@@ -44,11 +46,12 @@
                         onlyIconControl: true,
                         data: res.data,
                         click: function (obj) {
+                            console.log(obj)
                             selObj = obj;
                             $('#organizationTree').find('.ew-tree-click').removeClass('ew-tree-click');
                             $(obj.elem).children('.layui-tree-entry').addClass('ew-tree-click');
                             tableIns.reload({
-                                where: {dept_id: obj.data.id},
+                                where: {[obj.data.key]: obj.data.id},
                                 page: {curr: 1}
                             });
                         }
@@ -71,7 +74,7 @@
         page: true,
         limit: 15,
         limits: [15, 30, 50, 100, 200, 500],
-        cellMinWidth: 100,
+        // cellMinWidth: 100,
         height: 'full-148',
         // size: 'sm',
         skin: 'line',

--
Gitblit v1.9.1