浏览代码

模块权限,滚动条相关

MaiXinRong 4 月之前
父节点
当前提交
827fbc7a10
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      app/view/sp_setting/permission.ejs

+ 6 - 1
app/view/sp_setting/permission.ejs

@@ -66,7 +66,7 @@
                                             <button class="btn btn-sm btn-warning" id="save-permission" style="display: none;">保存</button>
                                         </div>
                                     </div>
-                                    <div class="card-body py-2">
+                                    <div class="card-body py-2 scroll-y" id="sp-pageshow-content">
                                         <table class="table table-hover table-bordered table-sm">
                                             <thead><tr class="text-center">
                                                 <th width="120px">用户</th>
@@ -104,4 +104,9 @@
 <script>
     const accountGroup = JSON.parse(unescape('<%- escape(JSON.stringify(accountGroup)) %>'));
     const permissionConst = JSON.parse(unescape('<%- escape(JSON.stringify(permissionConst)) %>'));
+    const reCalcHeight = function () {
+        $('#sp-pageshow-content').height($(window).height() - 187);
+    }
+    reCalcHeight();
+    $(window).resize(reCalcHeight);
 </script>