Authored by 王涛

#298 【告警压制】测试告警压制测试过长后端是否报错

@@ -3479,6 +3479,12 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele @@ -3479,6 +3479,12 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
3479 var num = res.object?res.object.ignoreCnt:""; 3479 var num = res.object?res.object.ignoreCnt:"";
3480 layer.prompt({id: "kpi_press_times_id", title: '压制次数', area: ['400px'], formType: 2}, 3480 layer.prompt({id: "kpi_press_times_id", title: '压制次数', area: ['400px'], formType: 2},
3481 function (text, index) { 3481 function (text, index) {
  3482 + // Start Wang 2022/2/16 11:15 #298 【告警压制】测试告警压制测试过长后端是否报错
  3483 + if(text > 10000){
  3484 + layer.msg("压制次数请设置为0-10000!", { offset: '15px' , icon: 7 , time: 1000 });
  3485 + return;
  3486 + }
  3487 + // End Wang 2022/2/16 11:16
3482 obj['ignoreCnt'] = text 3488 obj['ignoreCnt'] = text
3483 admin.req({ 3489 admin.req({
3484 url : common.domainName + '/api-web/manage/resource/res/kpi/ignore?access_token='+ layui.sessions.getToken().access_token 3490 url : common.domainName + '/api-web/manage/resource/res/kpi/ignore?access_token='+ layui.sessions.getToken().access_token