Browse Source

所有审批流程界面无法滚动bug修复

laiguoran 5 năm trước cách đây
mục cha
commit
45cd022703

+ 5 - 0
app/public/js/change_set.js

@@ -113,6 +113,11 @@ $(document).ready(() => {
         }
     });
 
+    // 多层modal关闭后的滚动bug修复
+    $('#sub-sp2').on('hidden.bs.modal', function (e) {
+        $(document.body).addClass('modal-open');
+    });
+
     // 重新上报时按钮点击
     $('a[data-target="#sub-sp2"]').on('click', function () {
         let category = $(this).data('category');

+ 6 - 0
app/public/js/ledger.js

@@ -2382,6 +2382,12 @@ $(document).ready(function() {
     $('#hideSp').click(function () {
         $('#sp-list2').modal('hide');
     });
+
+    // 多层modal关闭后的滚动bug修复
+    $('#sp-list2').on('hidden.bs.modal', function (e) {
+        $(document.body).addClass('modal-open');
+    });
+
     // 显示层次
     (function (select, sheet) {
         $(select).click(function () {

+ 6 - 1
app/public/js/material_audit.js

@@ -146,7 +146,12 @@ $(document).ready(function () {
     });
     $('a[f-target]').click(function () {
         $($(this).attr('f-target')).modal('show');
-    })
+    });
+
+    // 多层modal关闭后的滚动bug修复
+    $('#sp-list2').on('hidden.bs.modal', function (e) {
+        $(document.body).addClass('modal-open');
+    });
 });
 // 检查上报情况
 function checkAuditorFrom () {

+ 6 - 1
app/public/js/stage_audit.js

@@ -146,7 +146,12 @@ $(document).ready(function () {
     });
     $('a[f-target]').click(function () {
         $($(this).attr('f-target')).modal('show');
-    })
+    });
+
+    // 多层modal关闭后的滚动bug修复
+    $('#sp-list2').on('hidden.bs.modal', function (e) {
+        $(document.body).addClass('modal-open');
+    });
 });
 // 检查上报情况
 function checkAuditorFrom () {

+ 5 - 0
app/view/revise/info_modal.ejs

@@ -577,6 +577,11 @@
     $('#hideSp').click(function () {
         $('#sub-sp2').modal('hide');
     });
+
+    // 多层modal关闭后的滚动bug修复
+    $('#sub-sp2').on('hidden.bs.modal', function (e) {
+        $(document.body).addClass('modal-open');
+    });
     <% } %>
 
     // 检查上报情况