作业现场管理统计报表优化
This commit is contained in:
parent
04d628460b
commit
61dd35ae66
File diff suppressed because it is too large
Load Diff
@ -9,6 +9,7 @@ import {
|
|||||||
extendOrder,
|
extendOrder,
|
||||||
extend,
|
extend,
|
||||||
initQueryFilter,
|
initQueryFilter,
|
||||||
|
getSixMonth
|
||||||
} from "../../../utils/common";
|
} from "../../../utils/common";
|
||||||
import { Table, Row, Col, Button, Select, DatePicker, message } from "antd";
|
import { Table, Row, Col, Button, Select, DatePicker, message } from "antd";
|
||||||
import echarts from "echarts";
|
import echarts from "echarts";
|
||||||
@ -221,7 +222,7 @@ class BI013RiskAnalysisModel extends React.Component {
|
|||||||
"破碎车间-粗碎单元",
|
"破碎车间-粗碎单元",
|
||||||
"综合回收车间-精多金属仓库单元",
|
"综合回收车间-精多金属仓库单元",
|
||||||
"磨重车间-脱泥单元",
|
"磨重车间-脱泥单元",
|
||||||
"食堂",
|
|
||||||
"综合回收车间-精矿烘干单元",
|
"综合回收车间-精矿烘干单元",
|
||||||
"尾矿库截渗池回水单元",
|
"尾矿库截渗池回水单元",
|
||||||
"破碎车间-辊磨单元",
|
"破碎车间-辊磨单元",
|
||||||
@ -240,7 +241,7 @@ class BI013RiskAnalysisModel extends React.Component {
|
|||||||
"截渗池回水单元",
|
"截渗池回水单元",
|
||||||
];
|
];
|
||||||
let areaCount = [
|
let areaCount = [
|
||||||
1, 2, 3, 3, 4, 4, 6, 9, 9, 11, 19, 20, 21, 22, 22, 23, 27, 31, 32, 32,
|
1, 2, 3, 4, 4, 6, 9, 9, 11, 19, 20, 21, 22, 22, 23, 27, 31, 32, 32,
|
||||||
];
|
];
|
||||||
// data.forEach((item) => {
|
// data.forEach((item) => {
|
||||||
// areaName.push(item.AREANAME);
|
// areaName.push(item.AREANAME);
|
||||||
@ -380,22 +381,13 @@ class BI013RiskAnalysisModel extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
chart4 = (data) => {
|
chart4 = (data) => {
|
||||||
let riskArr = [2714, 2714, 2714, 2714];
|
let riskArr = [1914, 2014,2114, 2214, 2314, 2414, 2514, 2614, 2714, 2814, 2914, 3014];
|
||||||
let hazardArr = [50, 50, 50, 50];
|
let hazardArr = [50, 65, 72, 93,154, 175, 196, 247,278, 359, 420, 481];
|
||||||
let dates = [
|
let dates = [
|
||||||
"2024/01",
|
|
||||||
"2024/02",
|
|
||||||
"2024/03",
|
|
||||||
"2024/04",
|
|
||||||
"2024/05",
|
|
||||||
"2024/06",
|
|
||||||
"2024/07",
|
|
||||||
"2024/08",
|
|
||||||
"2024/09",
|
|
||||||
"2024/10",
|
|
||||||
"2024/11",
|
|
||||||
"2024/12",
|
|
||||||
];
|
];
|
||||||
|
for (let i = 0; i < 12; i++) {
|
||||||
|
dates.unshift(getSixMonth(-i, "-", ""));
|
||||||
|
}
|
||||||
// for (let i = 0; i < data.length; i++) {
|
// for (let i = 0; i < data.length; i++) {
|
||||||
// if (data[i].TYPE == 0) {
|
// if (data[i].TYPE == 0) {
|
||||||
// riskArr.push(data[i].COUNT);
|
// riskArr.push(data[i].COUNT);
|
||||||
|
|||||||
@ -62,6 +62,9 @@ class BI054HomeDetail extends React.Component {
|
|||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
// this.timerID && clearTimeout(this.timerID);
|
// this.timerID && clearTimeout(this.timerID);
|
||||||
}
|
}
|
||||||
|
renderSpeedColumn = ()=>{
|
||||||
|
return { className: 'redTableCell'}
|
||||||
|
}
|
||||||
loadReal = () => {
|
loadReal = () => {
|
||||||
let result = {
|
let result = {
|
||||||
ListSafeCheckCountDepartment: [
|
ListSafeCheckCountDepartment: [
|
||||||
@ -334,6 +337,7 @@ class BI054HomeDetail extends React.Component {
|
|||||||
title: typeName[i],
|
title: typeName[i],
|
||||||
dataIndex: "NUM",
|
dataIndex: "NUM",
|
||||||
key: i * 10 + j,
|
key: i * 10 + j,
|
||||||
|
onCell: () => this.renderSpeedColumn(),
|
||||||
render: (value, record, index) => {
|
render: (value, record, index) => {
|
||||||
RowCount = record.Parent.RowCount;
|
RowCount = record.Parent.RowCount;
|
||||||
if (
|
if (
|
||||||
@ -383,6 +387,7 @@ class BI054HomeDetail extends React.Component {
|
|||||||
if (j == 0) {
|
if (j == 0) {
|
||||||
columnsTb.push({
|
columnsTb.push({
|
||||||
title: typeName[i],
|
title: typeName[i],
|
||||||
|
onCell: () => this.renderSpeedColumn(),
|
||||||
key: i * 10 + j,
|
key: i * 10 + j,
|
||||||
render: (value, record, index) => {
|
render: (value, record, index) => {
|
||||||
const obj = {
|
const obj = {
|
||||||
@ -473,6 +478,7 @@ class BI054HomeDetail extends React.Component {
|
|||||||
columnsTb.push({
|
columnsTb.push({
|
||||||
title: typeName[i],
|
title: typeName[i],
|
||||||
dataIndex: "NUM",
|
dataIndex: "NUM",
|
||||||
|
onCell: () => this.renderSpeedColumn(),
|
||||||
key: i * 10 + j,
|
key: i * 10 + j,
|
||||||
render: (value, record, index) => {
|
render: (value, record, index) => {
|
||||||
RowCount = record.Parent.RowCount;
|
RowCount = record.Parent.RowCount;
|
||||||
@ -523,6 +529,7 @@ class BI054HomeDetail extends React.Component {
|
|||||||
if (j == 0) {
|
if (j == 0) {
|
||||||
columnsTb.push({
|
columnsTb.push({
|
||||||
title: typeName[i],
|
title: typeName[i],
|
||||||
|
onCell: () => this.renderSpeedColumn(),
|
||||||
key: i * 10 + j,
|
key: i * 10 + j,
|
||||||
render: (value, record, index) => {
|
render: (value, record, index) => {
|
||||||
const obj = {
|
const obj = {
|
||||||
|
|||||||
@ -276,6 +276,7 @@ class BI055HomeDetail extends React.Component {
|
|||||||
columnsTb.push({
|
columnsTb.push({
|
||||||
title: typeName[i],
|
title: typeName[i],
|
||||||
dataIndex: "NUM",
|
dataIndex: "NUM",
|
||||||
|
onCell: () => this.renderSpeedColumn(),
|
||||||
key: i * 10 + j,
|
key: i * 10 + j,
|
||||||
render: (value, record, index) => {
|
render: (value, record, index) => {
|
||||||
RowCount = record.Parent.RowCount;
|
RowCount = record.Parent.RowCount;
|
||||||
@ -356,6 +357,7 @@ class BI055HomeDetail extends React.Component {
|
|||||||
if (j == 0) {
|
if (j == 0) {
|
||||||
columnsTb.push({
|
columnsTb.push({
|
||||||
title: typeName[i],
|
title: typeName[i],
|
||||||
|
onCell: () => this.renderSpeedColumn(),
|
||||||
key: i * 10 + j,
|
key: i * 10 + j,
|
||||||
render: (value, record, index) => {
|
render: (value, record, index) => {
|
||||||
const obj = {
|
const obj = {
|
||||||
@ -456,6 +458,7 @@ class BI055HomeDetail extends React.Component {
|
|||||||
//头部
|
//头部
|
||||||
columnsTb.push({
|
columnsTb.push({
|
||||||
title: typeName[i],
|
title: typeName[i],
|
||||||
|
onCell: () => this.renderSpeedColumn(),
|
||||||
dataIndex: "NUM",
|
dataIndex: "NUM",
|
||||||
key: i * 10 + j,
|
key: i * 10 + j,
|
||||||
render: (value, record, index) => {
|
render: (value, record, index) => {
|
||||||
@ -537,6 +540,7 @@ class BI055HomeDetail extends React.Component {
|
|||||||
if (j == 0) {
|
if (j == 0) {
|
||||||
columnsTb.push({
|
columnsTb.push({
|
||||||
title: typeName[i],
|
title: typeName[i],
|
||||||
|
onCell: () => this.renderSpeedColumn(),
|
||||||
key: i * 10 + j,
|
key: i * 10 + j,
|
||||||
render: (value, record, index) => {
|
render: (value, record, index) => {
|
||||||
const obj = {
|
const obj = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user