qianlishi 3 years ago
parent b7e330d756
commit 3971886a88

@ -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 = [];

@ -135,6 +135,7 @@
v-if="item.type == 'dycustComponents' && inputShow[item.name]" v-if="item.type == 'dycustComponents' && inputShow[item.name]"
v-model="formData[item.name]" v-model="formData[item.name]"
:chart-type="item.chartType" :chart-type="item.chartType"
@change="changed($event, item.name)"
/> />
</div> </div>
<div v-else-if="isShowForm(item, '[object Array]')" :key="'a-' + index"> <div v-else-if="isShowForm(item, '[object Array]')" :key="'a-' + index">

Loading…
Cancel
Save