|
|
@ -349,10 +349,11 @@
|
|
|
|
axios.defaults.baseURL = 'http://192.168.1.198:9501'; // 临时服务地址
|
|
|
|
axios.defaults.baseURL = 'http://192.168.1.198:9501'; // 临时服务地址
|
|
|
|
axios.defaults.timeout = 10000;
|
|
|
|
axios.defaults.timeout = 10000;
|
|
|
|
const HISTORY_TREND_LEGEND = [
|
|
|
|
const HISTORY_TREND_LEGEND = [
|
|
|
|
{ id: 'avg', name: '平均值' },
|
|
|
|
|
|
|
|
{ id: 'maxValue', name: '最大值' },
|
|
|
|
|
|
|
|
{ id: 'plusAvg', name: '脉冲平均值' },
|
|
|
|
{ id: 'plusAvg', name: '脉冲平均值' },
|
|
|
|
{ id: 'plusCount', name: '脉冲次数' },
|
|
|
|
{ id: 'avg', name: '噪声' },
|
|
|
|
|
|
|
|
{ id: 'maxValue', name: '最大值' },
|
|
|
|
|
|
|
|
{ id: 'plusCount', name: '脉冲频次' },
|
|
|
|
|
|
|
|
{ id: 'eventCount', name: '事件数' },
|
|
|
|
]
|
|
|
|
]
|
|
|
|
const findParentByKey = (tree, targetKey) => {
|
|
|
|
const findParentByKey = (tree, targetKey) => {
|
|
|
|
for (const parent of tree) {
|
|
|
|
for (const parent of tree) {
|
|
|
@ -554,6 +555,7 @@
|
|
|
|
const legend = {
|
|
|
|
const legend = {
|
|
|
|
data: HISTORY_TREND_LEGEND.map(s => s.name), // 图例数据
|
|
|
|
data: HISTORY_TREND_LEGEND.map(s => s.name), // 图例数据
|
|
|
|
top: 0,
|
|
|
|
top: 0,
|
|
|
|
|
|
|
|
left: '18%',
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const xAxis = {
|
|
|
|
const xAxis = {
|
|
|
|
type: 'category',
|
|
|
|
type: 'category',
|
|
|
@ -591,9 +593,10 @@
|
|
|
|
this.chart = echarts.init(this.$refs.graphRef);
|
|
|
|
this.chart = echarts.init(this.$refs.graphRef);
|
|
|
|
const option = {
|
|
|
|
const option = {
|
|
|
|
// 设置响应式
|
|
|
|
// 设置响应式
|
|
|
|
|
|
|
|
color: ['#1f8ffd', '#fd1f44', '#ff9933', "#660099", '#35C822'],
|
|
|
|
grid: {
|
|
|
|
grid: {
|
|
|
|
top: 30,
|
|
|
|
top: 30,
|
|
|
|
right: 230,
|
|
|
|
right: '30%',
|
|
|
|
bottom: 30,
|
|
|
|
bottom: 30,
|
|
|
|
left: 30
|
|
|
|
left: 30
|
|
|
|
},
|
|
|
|
},
|
|
|
|