hdw
2018-12-07 a3f3288d9814ab7404ead54ee8455f12fd5cff08
gx_tieta/WebRoot/js/dischargetest/sysData.js
@@ -86,9 +86,9 @@
   $('#sysSet_groupNum').testVal({
      pattern: /^[0-9]{1,4}$/,
      regVal: true,
      min: 1,
      min: 0,
      max: 2,
      msg: '取值范围1~2(整数)'
      msg: '取值范围0~2(整数)'
   });
   
   // 背光时长(0~999分钟)
@@ -117,6 +117,8 @@
      max: 2,
      msg: '取值范围0~2(整数)'
   });
   // 获取系统参数面板的所有文本框
   $('#sysSet_popup').on('input propertychange', 'input[type=text]', function() {
      checkSysData();
@@ -134,7 +136,7 @@
// 检测系统参数是否合法
function checkSysData() {
   var textList = sysSet_popup.popup.find('input[type=text]');
   //console.log(123);
   // 遍历检测文本框是否有错误的
   var allGood = true;
   textList.each(function(i) {
@@ -142,7 +144,7 @@
         allGood = false;
      }
   });
   //console.log(allGood);
   // 设置按钮的状态
   if(allGood) {
      sysDataBtn.active();