feat:工具细节完成

master
guoyixuan 2 months ago
parent 07b402552a
commit d509fbf047

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

Loading…
Cancel
Save