diff --git a/src/components/site/previewOfSiteStatus.vue b/src/components/site/previewOfSiteStatus.vue index 3a2f672..d4932b2 100644 --- a/src/components/site/previewOfSiteStatus.vue +++ b/src/components/site/previewOfSiteStatus.vue @@ -634,7 +634,7 @@ import Modify from "ol/interaction/Modify"; import FormatWKT from "ol/format/WKT"; import { ScaleLine, ZoomSlider, ZoomToExtent, Zoom } from "ol/control"; -import echarts from "echarts"; +// import echarts from "echarts"; export default { name: "previewOfSiteStatus", components: { countTo }, //加载数字滚动插件 @@ -1258,7 +1258,7 @@ showBackground: true, data: valuearr, itemStyle: { - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0.8, color: "#30919a" }, { offset: 0, color: "#5af9f4" }, { offset: 1, color: "#081d28" } @@ -1266,7 +1266,7 @@ }, emphasis: { itemStyle: { - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: "#2378f7" }, { offset: 0.7, color: "#2378f7" }, { offset: 1, color: "#83bff6" }