|
|
@ -61,7 +61,6 @@ export default {
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
editorOptions() {
|
|
|
|
editorOptions() {
|
|
|
|
this.setOptionsTitle();
|
|
|
|
this.setOptionsTitle();
|
|
|
|
this.setOptionIndicator();
|
|
|
|
|
|
|
|
this.setOptionsRadar();
|
|
|
|
this.setOptionsRadar();
|
|
|
|
this.setOptionsLegend();
|
|
|
|
this.setOptionsLegend();
|
|
|
|
this.setOptionsTooltip();
|
|
|
|
this.setOptionsTooltip();
|
|
|
@ -90,12 +89,6 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.options.title = title;
|
|
|
|
this.options.title = title;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 雷达设置相关
|
|
|
|
|
|
|
|
setOptionIndicator() {
|
|
|
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
|
|
|
|
const indicator = optionsSetup.dynamicAddRadar;
|
|
|
|
|
|
|
|
this.options.radar.indicator = indicator;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 雷达设置
|
|
|
|
// 雷达设置
|
|
|
|
setOptionsRadar() {
|
|
|
|
setOptionsRadar() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
@ -203,8 +196,9 @@ export default {
|
|
|
|
arrColor.push(customColor[i].color);
|
|
|
|
arrColor.push(customColor[i].color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.options.color = arrColor;
|
|
|
|
this.options.color = arrColor;
|
|
|
|
|
|
|
|
// 雷达设置相关
|
|
|
|
const indicator = optionsSetup.dynamicAddRadar;
|
|
|
|
const indicator = optionsSetup.dynamicAddRadar;
|
|
|
|
|
|
|
|
this.options.radar.indicator = indicator;
|
|
|
|
// 雷达图key值
|
|
|
|
// 雷达图key值
|
|
|
|
const radarKeys = [];
|
|
|
|
const radarKeys = [];
|
|
|
|
for (const i in indicator) {
|
|
|
|
for (const i in indicator) {
|
|
|
@ -284,8 +278,9 @@ export default {
|
|
|
|
arrColor.push(customColor[i].color);
|
|
|
|
arrColor.push(customColor[i].color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.options.color = arrColor;
|
|
|
|
this.options.color = arrColor;
|
|
|
|
|
|
|
|
// 雷达设置相关
|
|
|
|
const indicator = optionsSetup.dynamicAddRadar;
|
|
|
|
const indicator = optionsSetup.dynamicAddRadar;
|
|
|
|
|
|
|
|
this.options.radar.indicator = indicator;
|
|
|
|
// 雷达图key值
|
|
|
|
// 雷达图key值
|
|
|
|
const radarKeys = [];
|
|
|
|
const radarKeys = [];
|
|
|
|
for (const i in indicator) {
|
|
|
|
for (const i in indicator) {
|
|
|
@ -338,6 +333,7 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.options.legend["data"] = legendName;
|
|
|
|
this.options.legend["data"] = legendName;
|
|
|
|
this.setOptionsLegendName(legendName);
|
|
|
|
this.setOptionsLegendName(legendName);
|
|
|
|
|
|
|
|
console.log(this.options.series)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|