浏览代码

报表,多期汇总,提示调整

MaiXinRong 5 年之前
父节点
当前提交
f819147284
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/public/report/js/rpt_custom.js

+ 2 - 2
app/public/report/js/rpt_custom.js

@@ -451,10 +451,10 @@ const rptCustomObj = (function () {
         for (const sc of $('[name=stage-select-check]:checked')) {
             data[sStageSelect].stages.push(parseInt($(sc).attr('stage-order')));
         }
-        if (data[sStageSelect].stages.length <= parseInt(hintObj.attr('min-select'))) {
+        if (data[sStageSelect].stages.length < parseInt(hintObj.attr('min-select'))) {
             hintObj.html('请至少选择' + hintObj.attr('min-select') + '期数据').show();
             return;
-        } else if (data[sStageSelect].stages.length >= parseInt(hintObj.attr('max-select'))) {
+        } else if (data[sStageSelect].stages.length > parseInt(hintObj.attr('max-select'))) {
             hintObj.html('最多只能选择' + hintObj.attr('max-select') + '期数据').show();
             return;
         }