Browse Source

计量台账,选中整列时,灰选部分菜单

MaiXinRong 3 năm trước cách đây
mục cha
commit
64d92d5b3b
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      app/public/js/stage.js

+ 8 - 0
app/public/js/stage.js

@@ -1508,6 +1508,10 @@ $(document).ready(() => {
                         toastr.error('无可定位中间计量');
                     }
                 },
+                disabled: function (key, opt) {
+                    const node = SpreadJsObj.getSelectObject(slSpread.getActiveSheet());
+                    return !node;
+                }
             },
             tagSpr: '----',
             tag: {
@@ -1535,6 +1539,10 @@ $(document).ready(() => {
                         closeWaitingView();
                     }, 100);
                 },
+                disabled: function (key, opt) {
+                    const node = SpreadJsObj.getSelectObject(slSpread.getActiveSheet());
+                    return !node;
+                }
             },
             exportSpr: '----',
             exportSelectNodeXlsx: {