Authored by wangtao

fix: 告警策略;告警订阅优化

@@ -72,7 +72,7 @@ layui.define(['form', 'admin', 'laydate', 'common', 'sessions', 'reskpilist'], f @@ -72,7 +72,7 @@ layui.define(['form', 'admin', 'laydate', 'common', 'sessions', 'reskpilist'], f
72 72
73 function getNoticeMergeFlag() { 73 function getNoticeMergeFlag() {
74 admin.req({ 74 admin.req({
75 - url: common.domainName + '/mj/sys/conf/getByCode?code=noticeMerge' 75 + url: common.domainName + '/mj/sys/conf/getByCode?code=noticeMergeTab'
76 , method: 'get' 76 , method: 'get'
77 , async: false 77 , async: false
78 , success: function (res) { 78 , success: function (res) {
@@ -355,7 +355,7 @@ layui.define(['form', 'admin', 'laydate', 'table', 'common', 'sessions', 'cron', @@ -355,7 +355,7 @@ layui.define(['form', 'admin', 'laydate', 'table', 'common', 'sessions', 'cron',
355 } 355 }
356 str = 1; 356 str = 1;
357 admin.req({ 357 admin.req({
358 - url: domainName + '/api-web/alarmsubscribe/save?access_token=' + accessToken 358 + url: domainName + '/api-web/alarmsubscribe/save?accessToken=' + accessToken
359 , data: JSON.stringify(data) 359 , data: JSON.stringify(data)
360 , type: 'post' 360 , type: 'post'
361 , contentType: "application/json; charset=utf-8" 361 , contentType: "application/json; charset=utf-8"
@@ -102,7 +102,15 @@ layui.define(['element', 'common', 'sessions', 'form', 'admin'], function (expor @@ -102,7 +102,15 @@ layui.define(['element', 'common', 'sessions', 'form', 'admin'], function (expor
102 url: domainName + '/mj/userGroup/page?keywords=&perPage=999999&page=1' 102 url: domainName + '/mj/userGroup/page?keywords=&perPage=999999&page=1'
103 }).done(function (res) { 103 }).done(function (res) {
104 if(res && res.data){ 104 if(res && res.data){
  105 + let newData = [];
105 let arr = res.data.rows; 106 let arr = res.data.rows;
  107 + arr.forEach((item, index) => {
  108 + newData.push({
  109 + name: item.nickname,
  110 + value: item.username
  111 + })
  112 + })
  113 +
106 groupSel = xmSelect.render({ 114 groupSel = xmSelect.render({
107 el: '.selectGroup', 115 el: '.selectGroup',
108 filterable: true, 116 filterable: true,
@@ -276,7 +284,7 @@ layui.define(['element', 'common', 'sessions', 'form', 'admin'], function (expor @@ -276,7 +284,7 @@ layui.define(['element', 'common', 'sessions', 'form', 'admin'], function (expor
276 strict: true, 284 strict: true,
277 }, 285 },
278 data() { 286 data() {
279 - return arr 287 + return newData
280 } 288 }
281 }) 289 })
282 if (userSelIds) { //回填 290 if (userSelIds) { //回填