Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 025366bb65 | |||
| aaa420822d | |||
| 5feeded363 | |||
| 60786f59b8 | |||
| bff87fbcee | |||
| c12c0e72e9 | |||
| 5355d9f99b |
@@ -80,6 +80,11 @@ export default function getOptions(tempData: any) {
|
||||
symbol: "circle",
|
||||
symbolSize: 4,
|
||||
data: tempData.input,
|
||||
label: {
|
||||
show: true,
|
||||
position: 'top',
|
||||
color:'inherit'
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "产出",
|
||||
@@ -87,6 +92,11 @@ export default function getOptions(tempData: any) {
|
||||
symbol: "circle",
|
||||
symbolSize: 4,
|
||||
data: tempData.output,
|
||||
label: {
|
||||
show: true,
|
||||
position: 'top',
|
||||
color:'inherit'
|
||||
},
|
||||
},
|
||||
],
|
||||
tooltip: {
|
||||
|
||||
@@ -155,8 +155,6 @@ function CenterDown() {
|
||||
dataSource.month.xData = []
|
||||
dataSource.month.series = []
|
||||
}
|
||||
console.log('activeName', activeName)
|
||||
console.log('dataSource', dataSource)
|
||||
let chartData = (dataSource as { [key: string]: any })[activeName];
|
||||
const options = getOptions(chartData);
|
||||
return (
|
||||
|
||||
@@ -34,7 +34,7 @@ function TitleBox(props: titleProps) {
|
||||
case "right_up":
|
||||
return {
|
||||
img: Num,
|
||||
title: "各工段当日投入和产出",
|
||||
title: "各工段总投入和产出",
|
||||
};
|
||||
default:
|
||||
return {
|
||||
|
||||
@@ -150,7 +150,7 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
// dataSource.week.series.push({
|
||||
//dataSource.week.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
|
||||
@@ -18,7 +18,6 @@ function LinePage() {
|
||||
let msgData = event.data
|
||||
try {
|
||||
msgData = JSON.parse(event.data);
|
||||
console.log(msgData)
|
||||
} catch (error) {
|
||||
console.log("websocket: [unable to msgData] : ", event.data);
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ function CenterDown() {
|
||||
// @ts-ignore
|
||||
data.weekProductionRates[keys[0]].forEach((item,index)=>{
|
||||
// @ts-ignore
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("HH:mm"))
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("MM-DD"))
|
||||
})
|
||||
keys.forEach((item,index)=>{
|
||||
let obj = {
|
||||
|
||||
@@ -34,7 +34,7 @@ function TitleBox(props: titleProps) {
|
||||
case "right_up":
|
||||
return {
|
||||
img: Num,
|
||||
title: "各工段当日投入和产出",
|
||||
title: "各工段总投入和产出",
|
||||
};
|
||||
default:
|
||||
return {
|
||||
|
||||
@@ -150,20 +150,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.week.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
//dataSource.week.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.week.xData = []
|
||||
dataSource.week.series = []
|
||||
@@ -218,20 +218,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.month.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
// dataSource.month.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.month.xData = []
|
||||
dataSource.month.series = []
|
||||
|
||||
@@ -102,7 +102,7 @@ function CenterDown() {
|
||||
// @ts-ignore
|
||||
data.weekProductionRates[keys[0]].forEach((item,index)=>{
|
||||
// @ts-ignore
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("HH:mm"))
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("MM-DD"))
|
||||
})
|
||||
keys.forEach((item,index)=>{
|
||||
let obj = {
|
||||
|
||||
@@ -34,7 +34,7 @@ function TitleBox(props: titleProps) {
|
||||
case "right_up":
|
||||
return {
|
||||
img: Num,
|
||||
title: "各工段当日投入和产出",
|
||||
title: "各工段总投入和产出",
|
||||
};
|
||||
default:
|
||||
return {
|
||||
|
||||
@@ -150,20 +150,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.week.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
//dataSource.week.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.week.xData = []
|
||||
dataSource.week.series = []
|
||||
@@ -218,20 +218,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.month.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
// dataSource.month.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.month.xData = []
|
||||
dataSource.month.series = []
|
||||
|
||||
@@ -102,7 +102,7 @@ function CenterDown() {
|
||||
// @ts-ignore
|
||||
data.weekProductionRates[keys[0]].forEach((item,index)=>{
|
||||
// @ts-ignore
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("HH:mm"))
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("MM-DD"))
|
||||
})
|
||||
keys.forEach((item,index)=>{
|
||||
let obj = {
|
||||
|
||||
@@ -34,7 +34,7 @@ function TitleBox(props: titleProps) {
|
||||
case "right_up":
|
||||
return {
|
||||
img: Num,
|
||||
title: "各工段当日投入和产出",
|
||||
title: "各工段总投入和产出",
|
||||
};
|
||||
default:
|
||||
return {
|
||||
|
||||
@@ -150,20 +150,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.week.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
//dataSource.week.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.week.xData = []
|
||||
dataSource.week.series = []
|
||||
@@ -218,20 +218,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.month.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
// dataSource.month.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.month.xData = []
|
||||
dataSource.month.series = []
|
||||
|
||||
@@ -102,7 +102,7 @@ function CenterDown() {
|
||||
// @ts-ignore
|
||||
data.weekProductionRates[keys[0]].forEach((item,index)=>{
|
||||
// @ts-ignore
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("HH:mm"))
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("MM-DD"))
|
||||
})
|
||||
keys.forEach((item,index)=>{
|
||||
let obj = {
|
||||
|
||||
@@ -34,7 +34,7 @@ function TitleBox(props: titleProps) {
|
||||
case "right_up":
|
||||
return {
|
||||
img: Num,
|
||||
title: "各工段当日投入和产出",
|
||||
title: "各工段总投入和产出",
|
||||
};
|
||||
default:
|
||||
return {
|
||||
|
||||
@@ -150,20 +150,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.week.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
//dataSource.week.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.week.xData = []
|
||||
dataSource.week.series = []
|
||||
@@ -218,20 +218,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.month.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
// dataSource.month.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.month.xData = []
|
||||
dataSource.month.series = []
|
||||
|
||||
@@ -102,7 +102,7 @@ function CenterDown() {
|
||||
// @ts-ignore
|
||||
data.weekProductionRates[keys[0]].forEach((item,index)=>{
|
||||
// @ts-ignore
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("HH:mm"))
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("MM-DD"))
|
||||
})
|
||||
keys.forEach((item,index)=>{
|
||||
let obj = {
|
||||
|
||||
@@ -34,7 +34,7 @@ function TitleBox(props: titleProps) {
|
||||
case "right_up":
|
||||
return {
|
||||
img: Num,
|
||||
title: "各工段当日投入和产出",
|
||||
title: "各工段总投入和产出",
|
||||
};
|
||||
default:
|
||||
return {
|
||||
|
||||
@@ -150,20 +150,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.week.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
//dataSource.week.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.week.xData = []
|
||||
dataSource.week.series = []
|
||||
@@ -218,20 +218,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.month.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
// dataSource.month.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.month.xData = []
|
||||
dataSource.month.series = []
|
||||
|
||||
@@ -102,7 +102,7 @@ function CenterDown() {
|
||||
// @ts-ignore
|
||||
data.weekProductionRates[keys[0]].forEach((item,index)=>{
|
||||
// @ts-ignore
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("HH:mm"))
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("MM-DD"))
|
||||
})
|
||||
keys.forEach((item,index)=>{
|
||||
let obj = {
|
||||
|
||||
@@ -34,7 +34,7 @@ function TitleBox(props: titleProps) {
|
||||
case "right_up":
|
||||
return {
|
||||
img: Num,
|
||||
title: "各工段当日投入和产出",
|
||||
title: "各工段总投入和产出",
|
||||
};
|
||||
default:
|
||||
return {
|
||||
|
||||
@@ -150,20 +150,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.week.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
//dataSource.week.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.week.xData = []
|
||||
dataSource.week.series = []
|
||||
@@ -218,20 +218,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.month.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
// dataSource.month.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.month.xData = []
|
||||
dataSource.month.series = []
|
||||
|
||||
@@ -102,7 +102,7 @@ function CenterDown() {
|
||||
// @ts-ignore
|
||||
data.weekProductionRates[keys[0]].forEach((item,index)=>{
|
||||
// @ts-ignore
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("HH:mm"))
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("MM-DD"))
|
||||
})
|
||||
keys.forEach((item,index)=>{
|
||||
let obj = {
|
||||
|
||||
@@ -34,7 +34,7 @@ function TitleBox(props: titleProps) {
|
||||
case "right_up":
|
||||
return {
|
||||
img: Num,
|
||||
title: "各工段当日投入和产出",
|
||||
title: "各工段总投入和产出",
|
||||
};
|
||||
default:
|
||||
return {
|
||||
|
||||
@@ -150,20 +150,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.week.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
//dataSource.week.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.week.xData = []
|
||||
dataSource.week.series = []
|
||||
@@ -218,20 +218,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.month.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
// dataSource.month.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.month.xData = []
|
||||
dataSource.month.series = []
|
||||
|
||||
@@ -102,7 +102,7 @@ function CenterDown() {
|
||||
// @ts-ignore
|
||||
data.weekProductionRates[keys[0]].forEach((item,index)=>{
|
||||
// @ts-ignore
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("HH:mm"))
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("MM-DD"))
|
||||
})
|
||||
keys.forEach((item,index)=>{
|
||||
let obj = {
|
||||
|
||||
@@ -34,7 +34,7 @@ function TitleBox(props: titleProps) {
|
||||
case "right_up":
|
||||
return {
|
||||
img: Num,
|
||||
title: "各工段当日投入和产出",
|
||||
title: "各工段总投入和产出",
|
||||
};
|
||||
default:
|
||||
return {
|
||||
|
||||
@@ -150,20 +150,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.week.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
//dataSource.week.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.week.xData = []
|
||||
dataSource.week.series = []
|
||||
@@ -219,20 +219,20 @@ function LeftUp() {
|
||||
sum.push(sumIner)
|
||||
|
||||
}
|
||||
dataSource.month.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
// dataSource.month.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.month.xData = []
|
||||
dataSource.month.series = []
|
||||
|
||||
@@ -102,7 +102,7 @@ function CenterDown() {
|
||||
// @ts-ignore
|
||||
data.weekProductionRates[keys[0]].forEach((item,index)=>{
|
||||
// @ts-ignore
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("HH:mm"))
|
||||
dataSource.week.xData.push(dayjs(item.recTime).format("MM-DD"))
|
||||
})
|
||||
keys.forEach((item,index)=>{
|
||||
let obj = {
|
||||
|
||||
@@ -34,7 +34,7 @@ function TitleBox(props: titleProps) {
|
||||
case "right_up":
|
||||
return {
|
||||
img: Num,
|
||||
title: "各工段当日投入和产出",
|
||||
title: "各工段总投入和产出",
|
||||
};
|
||||
default:
|
||||
return {
|
||||
|
||||
@@ -150,20 +150,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.week.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
//dataSource.week.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.week.xData = []
|
||||
dataSource.week.series = []
|
||||
@@ -218,20 +218,20 @@ function LeftUp() {
|
||||
}
|
||||
sum.push(sumIner)
|
||||
}
|
||||
dataSource.month.series.push({
|
||||
data: sum,
|
||||
type: "bar",
|
||||
stack: "a",
|
||||
name: "",
|
||||
label: {
|
||||
show: true,
|
||||
position: "top",
|
||||
color: "#fff",
|
||||
formatter: function (params: any) {
|
||||
return sum[params.dataIndex];
|
||||
},
|
||||
},
|
||||
})
|
||||
// dataSource.month.series.push({
|
||||
// data: sum,
|
||||
// type: "bar",
|
||||
// stack: "a",
|
||||
// name: "",
|
||||
// label: {
|
||||
// show: true,
|
||||
// position: "top",
|
||||
// color: "#fff",
|
||||
// formatter: function (params: any) {
|
||||
// return sum[params.dataIndex];
|
||||
// },
|
||||
// },
|
||||
// })
|
||||
}else{
|
||||
dataSource.month.xData = []
|
||||
dataSource.month.series = []
|
||||
|
||||
Reference in New Issue
Block a user