设备列表、电价列表、综合搜索、图表详情优化
This commit is contained in:
@ -228,6 +228,48 @@ export default {
|
|||||||
: ""
|
: ""
|
||||||
}${inner.deviceId}`,
|
}${inner.deviceId}`,
|
||||||
type: "line",
|
type: "line",
|
||||||
|
markPoint: {
|
||||||
|
symbolSize: 30,
|
||||||
|
emphasis: {
|
||||||
|
disabled:false//打开 鼠标高亮
|
||||||
|
},
|
||||||
|
data: [//最大值、最小值
|
||||||
|
{
|
||||||
|
// type: 'max',
|
||||||
|
name: `最大值`,
|
||||||
|
coord:[inner.maxDate,inner.maxValue],
|
||||||
|
relativeTo:'coordinate',
|
||||||
|
label: {
|
||||||
|
position: "top",
|
||||||
|
formatter: item.dataType === 2 ? ([
|
||||||
|
`最大值:${inner.maxValue}`,
|
||||||
|
// `平均值:${inner.avgValue}`,
|
||||||
|
`差值:${inner.diffValue}`,
|
||||||
|
]).join('\n') : ([
|
||||||
|
`最大值:${inner.maxValue}`,
|
||||||
|
// `平均值:${inner.avgValue}`,
|
||||||
|
]).join('\n'),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// type: 'min',
|
||||||
|
name: `最小值`,
|
||||||
|
coord:[inner.minDate,inner.minValue],
|
||||||
|
relativeTo:'coordinate',
|
||||||
|
label: {
|
||||||
|
position: "top",
|
||||||
|
formatter: item.dataType === 2 ? ([
|
||||||
|
`最小值:${inner.minValue}`,
|
||||||
|
// `平均值:${inner.avgValue}`,
|
||||||
|
`差值:${inner.diffValue}`,
|
||||||
|
]).join('\n') : ([
|
||||||
|
`最小值:${inner.minValue}`,
|
||||||
|
// `平均值:${inner.avgValue}`,
|
||||||
|
]).join('\n'),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
xdata: [],
|
xdata: [],
|
||||||
data: [],
|
data: [],
|
||||||
});
|
});
|
||||||
@ -253,9 +295,12 @@ export default {
|
|||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: "axis",
|
trigger: "axis",
|
||||||
axisPointer: {
|
axisPointer: {
|
||||||
// 坐标轴指示器,坐标轴触发有效
|
type: 'cross',
|
||||||
type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
|
|
||||||
},
|
},
|
||||||
|
// axisPointer: {
|
||||||
|
// // 坐标轴指示器,坐标轴触发有效
|
||||||
|
// type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: "#333333",
|
color: "#333333",
|
||||||
|
|||||||
Reference in New Issue
Block a user