Browse Source

修复变更清单需求与bug 258列

laiguoran 6 years ago
parent
commit
8052a9c3a7
1 changed files with 8 additions and 1 deletions
  1. 8 1
      app/public/js/change_set.js

+ 8 - 1
app/public/js/change_set.js

@@ -250,7 +250,7 @@ $(document).ready(() => {
     // 打开签约清单modal并删除之前的操作
     $('#open-list-modal').click(function () {
        $('#table-list-select tr').removeClass('table-success');
-       $('#table-list-select tr').attr('data-detail', '');
+       $('#table-list-select tr').attr('data-bwmx', '');
        $('#code-list').html('');
     });
 
@@ -345,6 +345,13 @@ $(document).ready(() => {
         $(this).select();
     });
 
+    // 取消选中清单
+    $('#cancel-list-btn').click(function () {
+        $('#table-list-select tr').removeClass('table-success');
+        $('#table-list-select tr').attr('data-bwmx', '');
+        $('#code-list').html('');
+    });
+
     // 移除已选清单并重新编号
     $('body').on('click', '#list td a', function () {
         const index = $(this).parents('tr').data('index');