diff --git a/src/views/jcxx/homeTrendDetail.vue b/src/views/jcxx/homeTrendDetail.vue
index d35f946..818ac74 100644
--- a/src/views/jcxx/homeTrendDetail.vue
+++ b/src/views/jcxx/homeTrendDetail.vue
@@ -9,7 +9,7 @@
一天
一周
-
+
-
+
@@ -220,12 +220,23 @@
let myChart = echarts.init(chartDom);
allData.echartOption.xAxis.data = res.data.propertyMonitorXList;
if (Boolean(res.data.propertyMonitorList.length)) {
+ allData.echartOption.dataZoom = [
+ {
+ //默认控制x轴
+ type: 'slider', //图标下方的伸缩条
+ show: true, //是否显示
+
+ realtime: true,
+ start: 0, //伸缩条开始位置
+ end: 100, //伸缩条结束位置
+ },
+ ];
allData.echartOption.series = [
{
data: res.data.propertyMonitorList[0].ylist,
name: res.data.propertyMonitorList[0].monitorPropertyName,
smooth: true,
- type: 'line',
+ type: 'bar',
},
];
allData.echartOption.yAxis = {
@@ -315,7 +326,7 @@
};
-