فهرست منبع

修复兼容性问题

laiguoran 2 سال پیش
والد
کامیت
a0f7e3cad1
2فایلهای تغییر یافته به همراه11 افزوده شده و 8 حذف شده
  1. 2 2
      app/view/layout/layout.ejs
  2. 9 6
      app/view/payment/modal.ejs

+ 2 - 2
app/view/layout/layout.ejs

@@ -32,7 +32,7 @@
 </div>
 <div class="main">
     <% include ./menu.ejs %>
-    
+
     <div class="main-panel">
         <%- content %>
     </div>
@@ -79,7 +79,7 @@
     }
     const userID = <%- ctx.session.sessionUser.accountId %>;
     let user = '<%= ctx.session.sessionUser.name %>';
-    const is_debug = ctx.session.sessionUser.loginStatus ? true : false;
+    const is_debug = <%= ctx.session.sessionUser.loginStatus ? true : false %>;
 </script>
 <style type="text/css">
 

+ 9 - 6
app/view/payment/modal.ejs

@@ -108,9 +108,11 @@
             /*.bootstrap-table .fixed-table-container.fixed-height:not(.has-footer) {*/
                 /*border-bottom: 0;*/
             /*}*/
-            /*table {*/
-                /*table-layout: fixed;*/
-            /*}*/
+            @-moz-document url-prefix() {
+                table {
+                    table-layout: fixed;
+                }
+            }
         </style>
 <!-- 弹窗编辑项目 -->
 <div class="modal fade" id="authority-list" data-backdrop="static">
@@ -207,7 +209,7 @@
 <% if (ctx.session.sessionUser.is_admin) { %>
     <script src="/public/js/bootstrap/bootstrap-table.min.js"></script>
     <script src="/public/js/bootstrap/locales/bootstrap-table-zh-CN.min.js"></script>
-    <script src="/public/js/bootstrap/bootstrap-table-fixed-columns.min.js"></script>
+    <!--<script src="/public/js/bootstrap/bootstrap-table-fixed-columns.min.js"></script>-->
 <script>
     $(function () {
         // $("#permission-audit-table").bootstrapTable('destroy').bootstrapTable({
@@ -325,9 +327,10 @@
         $('#authority-list').on('shown.bs.modal', function () {
             if (first) {
                 const option = {
-                    fixedColumns: true,
-                    fixedNumber: 1, //固定列数
+                    // fixedColumns: true,
+                    // fixedNumber: 1, //固定列数
                     locale: 'zh-CN',
+                    height: 300,
                 }
                 // if (permissionAudits.length === 0) {
                 //     option.formatName = function () {