Browse Source

fix: 标段概括-拷贝设置,未勾选属性,toast提示

lanjianrong 4 years ago
parent
commit
a1ea5bfe3f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/public/js/tender_copy_setting.js

+ 3 - 0
app/public/js/tender_copy_setting.js

@@ -168,6 +168,9 @@ $(document).ready(function () {
         $('#setting-custom').find('input:checked').each(function() {
             type.push($(this).data('type'))
         })
+        if (!type.length) {
+            return toastr.error('请勾选需要拷贝的属性')
+        }
         const id = $('#copyModalContent').find('input:checked').data('tid');
         if (id) {
             postData(window.location.pathname + '/copy-setting', { id, type }, function() {