This commit is contained in:
lb
2024-01-04 10:58:20 +08:00
parent 0b1d3aa4b3
commit ac772e2caf
15 changed files with 241 additions and 111 deletions

View File

@@ -140,7 +140,8 @@ function getOptions(dataList, showMore, dateType) {
};
const seriesTeam = [
{
data: list.map((item) => item.day * 100),
name: '白班',
data: list.map((item) => (item.day * 100).toFixed(2)),
type: "line",
areaStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -152,7 +153,8 @@ function getOptions(dataList, showMore, dateType) {
// smooth: true,
},
{
data: list.map((item) => item.night * 100),
name: '夜班',
data: list.map((item) => (item.night * 100).toFixed(2)),
type: "line",
areaStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -172,7 +174,8 @@ function getOptions(dataList, showMore, dateType) {
tooltip: {
trigger: "axis",
color: "#fff",
formatter: "{b} {c}%",
// formatter: "{b} {c}%",
formatter: showMore ? "{a0} {c0}%<br />{a1} {c1}%<br />{a2} {c2}%" : "{b} {c}%",
axisPointer: {
type: "shadow",
},
@@ -184,6 +187,7 @@ function getOptions(dataList, showMore, dateType) {
},
series: [
{
name: '总量',
data: list.map((item) => (item.sum * 100).toFixed(2)),
type: "line",
symbol: 'circle',