Merge branch 'main' of git.zdool.com:xs/ggfwjsc

This commit is contained in:
duanxiaohai 2024-07-08 09:32:40 +08:00
commit c6dbb977de
1 changed files with 6 additions and 54 deletions

View File

@ -106,59 +106,6 @@ const getOption = () => {
itemStyle: { itemStyle: {
normal: { normal: {
color: function (params) { 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 = [ var colorList = [
{ {
type: "linear", type: "linear",
@ -258,7 +205,12 @@ onBeforeMount(() => {
setTimeout(() => { setTimeout(() => {
data.list = props.list; data.list = props.list;
data.list.forEach((item, index) => { 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); data.rs.push(item.rs);
}); });
getOption(); getOption();