This commit is contained in:
wyw 2026-07-17 09:47:24 +08:00
commit f8ff38a58b
5 changed files with 11 additions and 11 deletions

View File

@ -249,7 +249,7 @@ class BI001HomeDetail extends React.Component {
}
},
title: {
text: "班组建设任务完成走势图",
text: "班组活动任务完成走势图",
left: "center",
top: "5%",
},

View File

@ -235,7 +235,7 @@ class BI002HomeDetail extends React.Component {
month.push(item.MONTHStr);
company.push(item.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"));
myChart.setOption({

View File

@ -102,12 +102,12 @@ class BI054HomeDetail extends React.Component {
dataIndex: "NUM",
key: (i * 10 + j),
render: (value, record, index) => {
RowCount = record.Parent.RowCount
if (index > 0 && result.ListSafeCheckCountDepartment[index - 1].Parent.DepartmentName == record.Parent.DepartmentName) {
RowCount = record.Parent?record.Parent.RowCount:0
if (index > 0 && result.ListSafeCheckCountDepartment[index - 1].Parent?.DepartmentName == record.Parent?.DepartmentName) {
RowCount = 0
}
const obj = {
children: record.Parent.DepartmentName,
children: record.Parent?record.Parent.DepartmentName:record.DepartmentName,
props: {
'rowSpan': RowCount
},
@ -124,12 +124,12 @@ class BI054HomeDetail extends React.Component {
dataIndex: "NUM",
key: (i * 10 + j),
render: (value, record, index) => {
RowCount = record.Parent.RowCount
if (index > 0 && result.ListSafeCheckCountDepartment[index - 1].Parent.DepartmentName == record.Parent.DepartmentName) {
RowCount = record.Parent?record.Parent.RowCount:0
if (index > 0 && result.ListSafeCheckCountDepartment[index - 1].Parent?.DepartmentName == record.Parent?.DepartmentName) {
RowCount = 0
}
const obj = {
children: record.Parent.listCount[j],
children: record.Parent?record.Parent.listCount[j]:record.DepartmentName,
props: {
'rowSpan': RowCount
},

View File

@ -65,7 +65,7 @@ class SafeCheck extends Component {
if (dangerTotals) {
let myChart = echarts.init(dangerTotals);
myChart.setOption({
color: ["#4285F4", "#72b85b", "#c92a2a", "#ffa94d"],
color: ["#4285F4", "#72b85b", "#c92a2a", "#ffa94d","#9900FF", "#6C6C6C", "#B15BFF", "#003377","#886600", "#FFFF00"],
tooltip: {
trigger: "axis",

View File

@ -1348,7 +1348,7 @@ class Home extends React.Component {
} else if (formCode == 'BI055_HOMEDETAIL') {
titleTemp += '月度隐患整改情况近12月';
} else if (formCode == 'BI001_HOMEDETAIL') {
titleTemp += '班组建设任务完成详情近12月';
titleTemp += '班组活动任务完成详情近12月';
} else if (formCode == 'BI002_HOMEDETAIL') {
titleTemp += '工作票完成详情近12月';
} else if (formCode == 'BI013_RISKANALYSISMODEL') {
@ -2022,7 +2022,7 @@ class Home extends React.Component {
<div className="statistical-title-style">
<div className="badge-style">
<Icon type="bar-chart" style={{ color: '#5f6ac2', marginRight: '4px' }}></Icon>
班组建设完成率(当月)
班组活动完成率(近半年)
</div>
{this.state.departmentCompletionData.length > 0 ? (
<span