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

This commit is contained in:
姚宇浩 2024-06-06 10:11:02 +08:00
commit 1332010aac
3 changed files with 21 additions and 27 deletions

View File

@ -45,6 +45,7 @@ const getOption = () => {
textStyle: {
fontSize: 16,
color: "#ffffff",
// color: ["rgba(255, 234, 90, 1)", "rgba(23, 255, 206, 1)"],
},
},
grid: {
@ -125,17 +126,12 @@ const getOption = () => {
},
},
itemStyle: {
normal: {
color: function (params) {
var colorList = [
new echarts.graphic.LinearGradient(0, 0, 1, 0, [
{ offset: 0, color: "rgba(255, 234, 90, 0)" },
{ offset: 0.5, color: "rgba(255, 234, 90, 0.5)" },
{ offset: 1, color: "rgba(255, 234, 90, 1)" },
]),
];
return colorList[params.dataIndex % colorList.length];
},
color: {
type: "linear",
colorStops: [
{ offset: 0, color: "rgba(255, 234, 90, 0.2)" },
{ offset: 1, color: "rgba(255, 234, 90, 1)" },
],
},
},
},
@ -156,17 +152,12 @@ const getOption = () => {
},
},
itemStyle: {
normal: {
color: function (params) {
var colorList = [
new echarts.graphic.LinearGradient(0, 0, 1, 0, [
{ offset: 0, color: "rgba(0, 255, 208,0)" },
{ offset: 0.5, color: "rgba(23, 255, 202, 0.20)" },
{ offset: 1, color: "rgba(23, 255, 206, 1)" },
]),
];
return colorList[params.dataIndex % colorList.length];
},
color: {
type: "linear",
colorStops: [
{ offset: 0, color: "rgba(23, 255, 206, 0.2)" },
{ offset: 1, color: "rgba(23, 255, 206, 1)" },
],
},
},
},

View File

@ -324,10 +324,13 @@ const setChart = () => {
const setChart1 = () => {
data.list1 = [];
data.list2 = [];
data.list.data.forEach((item) => {
data.list1.push(item.sc); //
data.list2.push(item.fwcs); //
});
if (data.list.length !== 0) {
// console.log(data.list, "");
data.list.data.forEach((item) => {
data.list1.push(item.sc); //
data.list2.push(item.fwcs); //
});
}
};
// 使
@ -335,7 +338,6 @@ onBeforeMount(() => {
setTimeout(() => {
data.list = props.list;
data.day = props.list.day;
// console.log(data.list, "");
setChart1();
getOption();
setChart();

View File

@ -506,6 +506,7 @@ const getData = () => {
data.yljgzlzx.zlzx = res.data.yljgzlzx.zlzx;
//
data.smfwcs = res.data.zlfw.smfwcs;
console.log(data.smfwcs,6666);
//
res.data.zlfw.xzzccs.forEach((element) => {
data.zccs1.push(element.xzjd); //