Browse Source

总览新增一个颜色

master
liaoxinyu 1 year ago
parent
commit
3725bb55f0
  1. 1
      public/config.js
  2. 5
      src/views/index.vue

1
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',

5
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',

Loading…
Cancel
Save