From 84c02af7a18ce8042049c83c6cf1a777e6f42787 Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Mon, 8 Jul 2024 09:27:35 +0800 Subject: [PATCH] 1 --- src/view/echarts_hygiene/eP5.vue | 60 ++++---------------------------- 1 file changed, 6 insertions(+), 54 deletions(-) diff --git a/src/view/echarts_hygiene/eP5.vue b/src/view/echarts_hygiene/eP5.vue index a809692..04c2d75 100644 --- a/src/view/echarts_hygiene/eP5.vue +++ b/src/view/echarts_hygiene/eP5.vue @@ -106,59 +106,6 @@ const getOption = () => { itemStyle: { normal: { color: function (params) { - // var colorList = [ - // new echarts.graphic.LinearGradient( - // 0, - // 0, - // 0, - // 1, - // [ - // { - // offset: 0, - // color: "rgba(23, 237, 255, 1)", - // }, - // { - // offset: 1, - // color: "rgba(23, 237, 255, 0.20)", - // }, - // ], - // false - // ), - // new echarts.graphic.LinearGradient( - // 0, - // 0, - // 0, - // 1, - // [ - // { - // offset: 0, - // color: "rgba(255, 243, 119, 1)", - // }, - // { - // offset: 1, - // color: "rgba(255, 242, 142, 0.20)", - // }, - // ], - // false - // ), - // new echarts.graphic.LinearGradient( - // 0, - // 0, - // 0, - // 1, - // [ - // { - // offset: 0, - // color: "rgba(142, 187, 255, 1)", - // }, - // { - // offset: 1, - // color: "rgba(142, 187, 255, 0.20)", - // }, - // ], - // false - // ), - // ]; var colorList = [ { type: "linear", @@ -258,7 +205,12 @@ onBeforeMount(() => { setTimeout(() => { data.list = props.list; data.list.forEach((item, index) => { - data.jgmc.push(item.jgmc); + if (item.jgmc.includes("龙游县")) { + data.jgmc.push(item.jgmc.slice(3)); + } else { + data.jgmc.push(item.jgmc); + } + data.rs.push(item.rs); }); getOption();