工作日志右上角柱状图,执行成功,有没有数据都隐藏加载图标
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -739,6 +739,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts','laydate | @@ -739,6 +739,8 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts','laydate | ||
739 | admin.req({ | 739 | admin.req({ |
740 | url: url | 740 | url: url |
741 | }).done(function (response) { | 741 | }).done(function (response) { |
742 | + // 执行成功,有没有数据都隐藏加载图标 | ||
743 | + echartObject.hideLoading(); | ||
742 | if (response && response.map) { | 744 | if (response && response.map) { |
743 | xData = response.map.userList; | 745 | xData = response.map.userList; |
744 | yData = response.map.valueList; | 746 | yData = response.map.valueList; |
@@ -823,7 +825,6 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts','laydate | @@ -823,7 +825,6 @@ layui.define(['table', 'form', 'sessions', 'admin', 'common', 'echarts','laydate | ||
823 | }], | 825 | }], |
824 | series: series | 826 | series: series |
825 | } | 827 | } |
826 | - echartObject.hideLoading(); | ||
827 | echartObject.setOption(option) | 828 | echartObject.setOption(option) |
828 | } | 829 | } |
829 | }) | 830 | }) |
-
Please register or login to post a comment