diff --git a/public/config.js b/public/config.js index 5580298..6a83fba 100644 --- a/public/config.js +++ b/public/config.js @@ -1,5 +1,6 @@ window.publicConfig={ BASE_API:"http://192.168.66.16/api", + // BASE_API:"http://www.balib.cn:8442/api/", // BASE_API:"http://10.97.121.2/api", // socket url WS_URL_TY: 'ws://10.97.121.2/ty', diff --git a/src/views/index.vue b/src/views/index.vue index 88a465d..554045e 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -529,12 +529,13 @@ export default { // that.getGcgNumDatas(); var xData = that.rsqsXData; - var gcolor = ['#a9eeff', '#6666FF', '#FF6600', '#02ff00', '#00ffff', '#fdff00']; + var gcolor = ['#a9eeff', '#6666FF', '#FF6600', '#02ff00', '#00ffff', '#fdff00', '#0a0aff']; var data = that.rsqsData_z; var series = []; for (var i = 0; i < data.length; i++) { + series.push({ name: that.rsqsDataName[i], type: "line", @@ -546,7 +547,7 @@ export default { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, - color: gcolor[i] + color: gcolor[i] }, { offset: 0.8, color: '#fff',