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

View File

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

View File

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