fix ui
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user