Explorar o código

waterAnalysisSharingEnginePush water.js 李欣儒 commit at 2020-12-15

李欣儒 %!s(int64=4) %!d(string=hai) anos
pai
achega
0ef12b455e
Modificáronse 1 ficheiros con 23 adicións e 0 borrados
  1. 23 0
      waterAnalysisSharingEnginePush/externalJs/water.js

+ 23 - 0
waterAnalysisSharingEnginePush/externalJs/water.js

@@ -439,3 +439,26 @@ function getListData(queryParam = {}) {
 
                     //异常值
                     abnormal_pressure.push(item.abnormal_pressure)
+
+                    //楼层
+                    location_description.push(item.location_description)
+
+                    //开始值
+                    start_pressure.push(item.start_pressure)
+
+                    //结束值
+                    end_pressure.push(item.end_pressure)
+                });
+
+                var xData = location_description;
+
+                // 基于准备好的dom,初始化echarts实例
+                var myChart = echarts.init(document.querySelector(".bar.hiddenCheck .chart"));
+
+
+                var option = {
+                    backgroundColor: 'transparent',
+                    color: ['rgba(0,150,255,.5)', 'rgba(255,156,0,.5)'],
+                    tooltip: {
+                        backgroundColor: '#12DFE0',
+                        //提示框组件