首页
This commit is contained in:
parent
a5a4fc331d
commit
f8b92ffd6c
@ -249,7 +249,7 @@ class BI001HomeDetail extends React.Component {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
text: "班组建设任务完成走势图",
|
text: "班组活动任务完成走势图",
|
||||||
left: "center",
|
left: "center",
|
||||||
top: "5%",
|
top: "5%",
|
||||||
},
|
},
|
||||||
|
|||||||
@ -235,7 +235,7 @@ class BI002HomeDetail extends React.Component {
|
|||||||
month.push(item.MONTHStr);
|
month.push(item.MONTHStr);
|
||||||
company.push(item.FINISH_RATE);
|
company.push(item.FINISH_RATE);
|
||||||
department.push(item.NORMAL_FINISH_RATE);
|
department.push(item.NORMAL_FINISH_RATE);
|
||||||
totalCount.push(item.TOTAL_COUNT);
|
totalCount.push(item.FINISH_COUNT);
|
||||||
});
|
});
|
||||||
let myChart = echarts.init(document.getElementById("chartWork"));
|
let myChart = echarts.init(document.getElementById("chartWork"));
|
||||||
myChart.setOption({
|
myChart.setOption({
|
||||||
|
|||||||
@ -102,12 +102,12 @@ class BI054HomeDetail extends React.Component {
|
|||||||
dataIndex: "NUM",
|
dataIndex: "NUM",
|
||||||
key: (i * 10 + j),
|
key: (i * 10 + j),
|
||||||
render: (value, record, index) => {
|
render: (value, record, index) => {
|
||||||
RowCount = record.Parent.RowCount
|
RowCount = record.Parent?record.Parent.RowCount:0
|
||||||
if (index > 0 && result.ListSafeCheckCountDepartment[index - 1].Parent.DepartmentName == record.Parent.DepartmentName) {
|
if (index > 0 && result.ListSafeCheckCountDepartment[index - 1].Parent?.DepartmentName == record.Parent?.DepartmentName) {
|
||||||
RowCount = 0
|
RowCount = 0
|
||||||
}
|
}
|
||||||
const obj = {
|
const obj = {
|
||||||
children: record.Parent.DepartmentName,
|
children: record.Parent?record.Parent.DepartmentName:record.DepartmentName,
|
||||||
props: {
|
props: {
|
||||||
'rowSpan': RowCount
|
'rowSpan': RowCount
|
||||||
},
|
},
|
||||||
@ -124,12 +124,12 @@ class BI054HomeDetail extends React.Component {
|
|||||||
dataIndex: "NUM",
|
dataIndex: "NUM",
|
||||||
key: (i * 10 + j),
|
key: (i * 10 + j),
|
||||||
render: (value, record, index) => {
|
render: (value, record, index) => {
|
||||||
RowCount = record.Parent.RowCount
|
RowCount = record.Parent?record.Parent.RowCount:0
|
||||||
if (index > 0 && result.ListSafeCheckCountDepartment[index - 1].Parent.DepartmentName == record.Parent.DepartmentName) {
|
if (index > 0 && result.ListSafeCheckCountDepartment[index - 1].Parent?.DepartmentName == record.Parent?.DepartmentName) {
|
||||||
RowCount = 0
|
RowCount = 0
|
||||||
}
|
}
|
||||||
const obj = {
|
const obj = {
|
||||||
children: record.Parent.listCount[j],
|
children: record.Parent?record.Parent.listCount[j]:record.DepartmentName,
|
||||||
props: {
|
props: {
|
||||||
'rowSpan': RowCount
|
'rowSpan': RowCount
|
||||||
},
|
},
|
||||||
|
|||||||
@ -65,7 +65,7 @@ class SafeCheck extends Component {
|
|||||||
if (dangerTotals) {
|
if (dangerTotals) {
|
||||||
let myChart = echarts.init(dangerTotals);
|
let myChart = echarts.init(dangerTotals);
|
||||||
myChart.setOption({
|
myChart.setOption({
|
||||||
color: ["#4285F4", "#72b85b", "#c92a2a", "#ffa94d"],
|
color: ["#4285F4", "#72b85b", "#c92a2a", "#ffa94d","#9900FF", "#6C6C6C", "#B15BFF", "#003377","#886600", "#FFFF00"],
|
||||||
|
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: "axis",
|
trigger: "axis",
|
||||||
|
|||||||
@ -1348,7 +1348,7 @@ class Home extends React.Component {
|
|||||||
} else if (formCode == 'BI055_HOMEDETAIL') {
|
} else if (formCode == 'BI055_HOMEDETAIL') {
|
||||||
titleTemp += '月度隐患整改情况(近12月)';
|
titleTemp += '月度隐患整改情况(近12月)';
|
||||||
} else if (formCode == 'BI001_HOMEDETAIL') {
|
} else if (formCode == 'BI001_HOMEDETAIL') {
|
||||||
titleTemp += '班组建设任务完成详情(近12月)';
|
titleTemp += '班组活动任务完成详情(近12月)';
|
||||||
} else if (formCode == 'BI002_HOMEDETAIL') {
|
} else if (formCode == 'BI002_HOMEDETAIL') {
|
||||||
titleTemp += '工作票完成详情(近12月)';
|
titleTemp += '工作票完成详情(近12月)';
|
||||||
} else if (formCode == 'BI013_RISKANALYSISMODEL') {
|
} else if (formCode == 'BI013_RISKANALYSISMODEL') {
|
||||||
@ -2022,7 +2022,7 @@ class Home extends React.Component {
|
|||||||
<div className="statistical-title-style">
|
<div className="statistical-title-style">
|
||||||
<div className="badge-style">
|
<div className="badge-style">
|
||||||
<Icon type="bar-chart" style={{ color: '#5f6ac2', marginRight: '4px' }}></Icon>
|
<Icon type="bar-chart" style={{ color: '#5f6ac2', marginRight: '4px' }}></Icon>
|
||||||
班组建设完成率(当月)
|
班组活动完成率(近半年)
|
||||||
</div>
|
</div>
|
||||||
{this.state.departmentCompletionData.length > 0 ? (
|
{this.state.departmentCompletionData.length > 0 ? (
|
||||||
<span
|
<span
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user