bugfix--雷达图动态数据更新后预览不自动刷新数据问题

qianming 1 year ago
parent 22c5b17484
commit b833dbdc67

@ -1,6 +1,6 @@
<template> <template>
<div :style="styleObj"> <div :style="styleObj">
<v-chart ref="myVChart" :options="options" autoresize /> <v-chart ref="myVChart" :options="options" autoresize/>
</div> </div>
</template> </template>
<script> <script>
@ -8,6 +8,7 @@ import {targetWidgetLinkageLogic} from "@/views/bigscreenDesigner/designer/linka
import vue from "vue"; import vue from "vue";
import VueSuperSlide from "vue-superslide"; import VueSuperSlide from "vue-superslide";
vue.use(VueSuperSlide); vue.use(VueSuperSlide);
export default { export default {
props: { props: {
@ -345,7 +346,7 @@ export default {
}); });
legendName.push(name[i]); legendName.push(name[i]);
} }
this.options.series[0] = { const series0 = {
type: "radar", type: "radar",
data: data, data: data,
symbolSize: optionsSetup.symbolSize, symbolSize: optionsSetup.symbolSize,
@ -354,10 +355,10 @@ export default {
opacity: optionsSetup.opacity / 100, opacity: optionsSetup.opacity / 100,
}, },
}, },
}; }
this.$set(this.options.series, 0, series0);
this.options.legend["data"] = legendName; this.options.legend["data"] = legendName;
this.setOptionsLegendName(legendName); this.setOptionsLegendName(legendName);
console.log(this.options.series)
}, },
}, },
}; };

Loading…
Cancel
Save