From 2f9c270e09e4191885822e7a7b3970cc614c3d15 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 16 九月 2022 13:36:20 +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..1ad10e7 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',
@@ -48,7 +50,7 @@
                             $('#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 +73,7 @@
         page: true,
         limit: 15,
         limits: [15, 30, 50, 100, 200, 500],
-        cellMinWidth: 100,
+        // cellMinWidth: 100,
         height: 'full-148',
         // size: 'sm',
         skin: 'line',
@@ -260,6 +262,7 @@
     // 鎼滅储
     form.on('submit(search)', function (data) {
         pageCurr = 1;
+        pageCount = 0;
         tableReload();
     });
 

--
Gitblit v1.9.1