|
|
@ -108,10 +108,12 @@ export default {
|
|
|
|
chartProperties: this.chartProperties,
|
|
|
|
chartProperties: this.chartProperties,
|
|
|
|
contextData
|
|
|
|
contextData
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
console.log(params);
|
|
|
|
const { code, data } = await getData(params);
|
|
|
|
const { code, data } = await getData(params);
|
|
|
|
const analysisData = this.analysisChartsData(data);
|
|
|
|
const analysisData = this.analysisChartsData(data);
|
|
|
|
console.log(analysisData);
|
|
|
|
console.log(analysisData);
|
|
|
|
this.$emit("input", analysisData);
|
|
|
|
this.$emit("input", analysisData);
|
|
|
|
|
|
|
|
this.$emit("change", params);
|
|
|
|
if (code != "200") return;
|
|
|
|
if (code != "200") return;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selectParams(val, key) {
|
|
|
|
selectParams(val, key) {
|
|
|
@ -168,7 +170,6 @@ export default {
|
|
|
|
// console.log(ananysicData, '结果数据')
|
|
|
|
// console.log(ananysicData, '结果数据')
|
|
|
|
return ananysicData;
|
|
|
|
return ananysicData;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// 饼图或者空心饼图或者漏斗图
|
|
|
|
// 饼图或者空心饼图或者漏斗图
|
|
|
|
piechartFn(data) {
|
|
|
|
piechartFn(data) {
|
|
|
|
const ananysicData = [];
|
|
|
|
const ananysicData = [];
|
|
|
|