Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'
告警概览 24小时趋势图加载中,增加加载logo See merge request !511
Showing
1 changed file
with
10 additions
and
1 deletions
@@ -141,6 +141,13 @@ layui.define(['admin', 'form', 'table', 'element', 'sessions', 'common', 'echart | @@ -141,6 +141,13 @@ layui.define(['admin', 'form', 'table', 'element', 'sessions', 'common', 'echart | ||
141 | } | 141 | } |
142 | } | 142 | } |
143 | }) | 143 | }) |
144 | + //lsq 数据加载完成前增加加载中显示 2022-03-31 | ||
145 | + alarmTrendChart.showLoading({ | ||
146 | + text: '数据正在加载...', | ||
147 | + textStyle: { fontSize : 30 , color: '#444' }, | ||
148 | + color:'#1e9fff', | ||
149 | + effectOption: {backgroundColor: 'rgba(0, 0, 0, 0)'} | ||
150 | + }); | ||
144 | //24小时告警趋势图 | 151 | //24小时告警趋势图 |
145 | $.ajax({ | 152 | $.ajax({ |
146 | url: domainName + `/api-web/bAlarm/overViewChartByType?access_token=${accessToken}&type=trend`, | 153 | url: domainName + `/api-web/bAlarm/overViewChartByType?access_token=${accessToken}&type=trend`, |
@@ -344,7 +351,9 @@ layui.define(['admin', 'form', 'table', 'element', 'sessions', 'common', 'echart | @@ -344,7 +351,9 @@ layui.define(['admin', 'form', 'table', 'element', 'sessions', 'common', 'echart | ||
344 | }], | 351 | }], |
345 | series: type === 'bar' ? barSeries : lineSeries | 352 | series: type === 'bar' ? barSeries : lineSeries |
346 | } | 353 | } |
347 | - echartObject.setOption(option) | 354 | + echartObject.setOption(option); |
355 | + //lsq 数据加载完成后关闭加载中显示 2022-03-31 | ||
356 | + echartObject.hideLoading(); | ||
348 | } | 357 | } |
349 | 358 | ||
350 | //12个月份的数据表格 | 359 | //12个月份的数据表格 |
-
Please register or login to post a comment