Browse Source

添加遮罩层,防止多次点击和传输中进行其它操作

laiguoran 5 years ago
parent
commit
7c75cbd07e

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

@@ -1946,5 +1946,6 @@ function checkAuditorFrom () {
         toastr.error('请先选择审批人,再上报数据');
         return false;
     }
+    $('#hide-all').show();
 }
 

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

@@ -144,4 +144,5 @@ function checkAuditorFrom () {
         toast('请先选择审批人,再上报数据', 'error', 'exclamation-circle');
         return false;
     }
+    $('#hide-all').show();
 }

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

@@ -148,4 +148,5 @@ function checkAuditorFrom () {
         toast.error('请先选择审批人,再上报数据');
         return false;
     }
+    $('#hide-all').show();
 }

+ 3 - 0
app/view/layout/layout.ejs

@@ -37,6 +37,9 @@
     <i class="icon fa"></i>
     <span class="message"></span>
 </div>
+<!-- 遮罩层 -->
+<div id="hide-all" style="display:none;position: absolute;width: 100%;height: 100%;top:0;left: 0;z-index:10000000">
+</div>
 <%- modal %>
 <script type="text/javascript">
     toastr.options = {

+ 2 - 0
app/view/material/list_modal.ejs

@@ -20,6 +20,7 @@
                         </thead>
                         <tbody id="materialBills">
                         <% for (const [index,m] of materialBillsData.entries()) { %>
+                        <% if (m.code !== null && m.code !== '') { %>
                         <tr class="table-secondary">
                             <td><%= index+1 %></td>
                             <td><input type="checkbox" checked disabled value="<%= m.id %>"></td>
@@ -29,6 +30,7 @@
                             <td><%= m.spec %></td>
                         </tr>
                         <% } %>
+                        <% } %>
                         </tbody>
                     </table>
                 </div>

+ 2 - 1
app/view/revise/info_modal.ejs

@@ -481,5 +481,6 @@
             toastr.error('请先选择审批人,再上报数据');
             return false;
         }
+        $('#hide-all').show();
     }
-</script>
+</script>