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();