Compare commits

..

3 Commits

5 changed files with 17788 additions and 1373 deletions

View File

@ -25429,28 +25429,10 @@ class BI005LoginRecord extends React.Component {
"IsSuccessful": true, "IsSuccessful": true,
"Data": [ "Data": [
{ {
"COUNT": 152, "COUNT": 291,
"DATE": "2024-12-10 00:00:00", "DATE": "2024-12-11 00:00:00",
"type": 0,
"ID": "1bbdad34-ff3c-47fb-926e-8f445d0bc37d",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-12-11 09:01:17",
"MODIFY_TIME": "2024-12-11 09:01:17",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"COUNT": 282,
"DATE": "2024-12-10 00:00:00",
"type": 1, "type": 1,
"ID": "9031b1d1-0126-48f9-8642-e1192da4c738", "ID": "9a442d77-8257-43ed-ad2d-5f447f1b628f",
"IS_DELETED": false, "IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa", "ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0, "ENTITY_ORG_TPYE": 0,
@ -25458,8 +25440,8 @@ class BI005LoginRecord extends React.Component {
"FLOW_STATUS": 0, "FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0, "FLOW_SEND_STATUS": 0,
"FLOW_ID": null, "FLOW_ID": null,
"CREATE_TIME": "2024-12-11 09:01:17", "CREATE_TIME": "2024-12-12 09:01:18",
"MODIFY_TIME": "2024-12-11 09:01:17", "MODIFY_TIME": "2024-12-12 09:01:18",
"CREATER_ID": null, "CREATER_ID": null,
"MODIFIER_ID": null, "MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000" "TaskID": "00000000-0000-0000-0000-000000000000"
@ -25483,28 +25465,10 @@ class BI005LoginRecord extends React.Component {
"TaskID": "00000000-0000-0000-0000-000000000000" "TaskID": "00000000-0000-0000-0000-000000000000"
}, },
{ {
"COUNT": 291, "COUNT": 295,
"DATE": "2024-12-11 00:00:00",
"type": 1,
"ID": "9a442d77-8257-43ed-ad2d-5f447f1b628f",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-12-12 09:01:18",
"MODIFY_TIME": "2024-12-12 09:01:18",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"COUNT": 182,
"DATE": "2024-12-12 00:00:00", "DATE": "2024-12-12 00:00:00",
"type": 0, "type": 1,
"ID": "f8dfa00d-92e3-4006-bbb4-57caa34296a8", "ID": "3b5c1581-2b80-4260-a6e2-a11c2afc1840",
"IS_DELETED": false, "IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa", "ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0, "ENTITY_ORG_TPYE": 0,
@ -25519,10 +25483,10 @@ class BI005LoginRecord extends React.Component {
"TaskID": "00000000-0000-0000-0000-000000000000" "TaskID": "00000000-0000-0000-0000-000000000000"
}, },
{ {
"COUNT": 295, "COUNT": 182,
"DATE": "2024-12-12 00:00:00", "DATE": "2024-12-12 00:00:00",
"type": 1, "type": 0,
"ID": "3b5c1581-2b80-4260-a6e2-a11c2afc1840", "ID": "f8dfa00d-92e3-4006-bbb4-57caa34296a8",
"IS_DELETED": false, "IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa", "ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0, "ENTITY_ORG_TPYE": 0,
@ -25788,24 +25752,6 @@ class BI005LoginRecord extends React.Component {
"MODIFIER_ID": null, "MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000" "TaskID": "00000000-0000-0000-0000-000000000000"
}, },
{
"COUNT": 179,
"DATE": "2024-12-20 00:00:00",
"type": 0,
"ID": "c54e2ffe-277b-4e5f-8cd1-484823d779f5",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-12-21 10:23:34",
"MODIFY_TIME": "2024-12-21 10:23:34",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{ {
"COUNT": 275, "COUNT": 275,
"DATE": "2024-12-20 00:00:00", "DATE": "2024-12-20 00:00:00",
@ -25825,10 +25771,10 @@ class BI005LoginRecord extends React.Component {
"TaskID": "00000000-0000-0000-0000-000000000000" "TaskID": "00000000-0000-0000-0000-000000000000"
}, },
{ {
"COUNT": 281, "COUNT": 179,
"DATE": "2024-12-21 00:00:00", "DATE": "2024-12-20 00:00:00",
"type": 1, "type": 0,
"ID": "5d6fa4d8-4e8f-4b56-860b-967e93bac3cd", "ID": "c54e2ffe-277b-4e5f-8cd1-484823d779f5",
"IS_DELETED": false, "IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa", "ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0, "ENTITY_ORG_TPYE": 0,
@ -25836,8 +25782,8 @@ class BI005LoginRecord extends React.Component {
"FLOW_STATUS": 0, "FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0, "FLOW_SEND_STATUS": 0,
"FLOW_ID": null, "FLOW_ID": null,
"CREATE_TIME": "2024-12-22 10:23:33", "CREATE_TIME": "2024-12-21 10:23:34",
"MODIFY_TIME": "2024-12-22 10:23:33", "MODIFY_TIME": "2024-12-21 10:23:34",
"CREATER_ID": null, "CREATER_ID": null,
"MODIFIER_ID": null, "MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000" "TaskID": "00000000-0000-0000-0000-000000000000"
@ -25861,10 +25807,10 @@ class BI005LoginRecord extends React.Component {
"TaskID": "00000000-0000-0000-0000-000000000000" "TaskID": "00000000-0000-0000-0000-000000000000"
}, },
{ {
"COUNT": 176, "COUNT": 281,
"DATE": "2024-12-22 00:00:00", "DATE": "2024-12-21 00:00:00",
"type": 0, "type": 1,
"ID": "3eaa82fa-1c78-49be-a7c9-28e9893802b5", "ID": "5d6fa4d8-4e8f-4b56-860b-967e93bac3cd",
"IS_DELETED": false, "IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa", "ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0, "ENTITY_ORG_TPYE": 0,
@ -25872,8 +25818,8 @@ class BI005LoginRecord extends React.Component {
"FLOW_STATUS": 0, "FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0, "FLOW_SEND_STATUS": 0,
"FLOW_ID": null, "FLOW_ID": null,
"CREATE_TIME": "2024-12-23 10:23:33", "CREATE_TIME": "2024-12-22 10:23:33",
"MODIFY_TIME": "2024-12-23 10:23:33", "MODIFY_TIME": "2024-12-22 10:23:33",
"CREATER_ID": null, "CREATER_ID": null,
"MODIFIER_ID": null, "MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000" "TaskID": "00000000-0000-0000-0000-000000000000"
@ -25897,10 +25843,28 @@ class BI005LoginRecord extends React.Component {
"TaskID": "00000000-0000-0000-0000-000000000000" "TaskID": "00000000-0000-0000-0000-000000000000"
}, },
{ {
"COUNT": 294, "COUNT": 176,
"DATE": "2024-12-22 00:00:00",
"type": 0,
"ID": "3eaa82fa-1c78-49be-a7c9-28e9893802b5",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-12-23 10:23:33",
"MODIFY_TIME": "2024-12-23 10:23:33",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"COUNT": 180,
"DATE": "2024-12-23 00:00:00", "DATE": "2024-12-23 00:00:00",
"type": 1, "type": 0,
"ID": "a832b225-16a6-4720-9dd7-d8cd36cfcc52", "ID": "80f45b7c-c055-43e7-a0e4-3e79568d94e2",
"IS_DELETED": false, "IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa", "ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0, "ENTITY_ORG_TPYE": 0,
@ -25915,10 +25879,10 @@ class BI005LoginRecord extends React.Component {
"TaskID": "00000000-0000-0000-0000-000000000000" "TaskID": "00000000-0000-0000-0000-000000000000"
}, },
{ {
"COUNT": 180, "COUNT": 294,
"DATE": "2024-12-23 00:00:00", "DATE": "2024-12-23 00:00:00",
"type": 0, "type": 1,
"ID": "80f45b7c-c055-43e7-a0e4-3e79568d94e2", "ID": "a832b225-16a6-4720-9dd7-d8cd36cfcc52",
"IS_DELETED": false, "IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa", "ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0, "ENTITY_ORG_TPYE": 0,
@ -26435,9 +26399,81 @@ class BI005LoginRecord extends React.Component {
"CREATER_ID": null, "CREATER_ID": null,
"MODIFIER_ID": null, "MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000" "TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"COUNT": 304,
"DATE": "2025-01-07 00:00:00",
"type": 1,
"ID": "9a4b0d8e-e7ca-4cd3-9be6-c55634bb85d4",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2025-01-08 10:07:57",
"MODIFY_TIME": "2025-01-08 10:07:57",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"COUNT": 196,
"DATE": "2025-01-07 00:00:00",
"type": 0,
"ID": "d198ddbe-acb6-411f-91ab-fd2e8257aa89",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2025-01-08 10:07:57",
"MODIFY_TIME": "2025-01-08 10:07:57",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"COUNT": 306,
"DATE": "2025-01-08 00:00:00",
"type": 1,
"ID": "e5340129-86d3-41a1-b169-5393d15923df",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2025-01-09 10:07:57",
"MODIFY_TIME": "2025-01-09 10:07:57",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"COUNT": 196,
"DATE": "2025-01-08 00:00:00",
"type": 0,
"ID": "b4497606-ee67-418d-a56c-0e2ffcf3213e",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2025-01-09 10:07:57",
"MODIFY_TIME": "2025-01-09 10:07:57",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
} }
], ],
"TotalCount": 56, "TotalCount": 58,
"MessageType": 0 "MessageType": 0
} }
this.state.activeNums = []; this.state.activeNums = [];
@ -26457,8 +26493,14 @@ class BI005LoginRecord extends React.Component {
(item) => item.type === 0 (item) => item.type === 0
).COUNT; ).COUNT;
} }
// this.state.dates.push(moment
// this.state.dates.push(moment().format("MM/DD")); // this.state.dates.push(moment().format("MM/DD"));
this.state.loginNums.push(todayCount); this.state.loginNums.push(todayCount);
console.log(this.state.dates,'this.state.dates')
console.log(this.state.loginNums,'this.state.loginNums')
console.log(this.state.activeNums,'this.state.activeNums')
let chart1s = document.getElementById("chart1"); let chart1s = document.getElementById("chart1");
if (chart1s) { if (chart1s) {
let myChart = echarts.init(chart1s); let myChart = echarts.init(chart1s);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@ import {
extendInclude, extendInclude,
getIsPC, getIsPC,
openNotificationMobile, openNotificationMobile,
getNearMonth
} from "../../../utils/common"; } from "../../../utils/common";
import { import {
ChartBarShow_Vertical, ChartBarShow_Vertical,
@ -77,12 +78,548 @@ class BI051BSCompanyYear extends React.Component {
loadData = () => { loadData = () => {
var orgId = this.props.login ? this.props.login.OrgId : ""; var orgId = this.props.login ? this.props.login.OrgId : "";
let json = initFilter(orgId); let json = initFilter(orgId);
this.props.dispatch({ // this.props.dispatch({
type: "app/getDataByPost", // type: "app/getDataByPost",
payload: json, // payload: json,
url: "BI/BISafeYear/BISafeYearShow", // url: "BI/BISafeYear/BISafeYearShow",
onComplete: (data) => { // onComplete: (data) => {
if (data) { // if (data) {
let data = {
"listSafeCheckYear": [
{
"MineType": 0,
"YEAR": 2025,
"LEVEL": 3,
"NAME": "公司级",
"ROW_NO": 0,
"COUNTJANUARY": 1,
"COUNTFEBRUARY": 0,
"COUNTMARCH": 0,
"COUNTAPRIL": 0,
"COUNTMAY": 0,
"COUNTJUNE": 0,
"COUNTJULY": 0,
"COUNTAUGUST": 0,
"COUNTSEPTEMBER": 0,
"COUNTOCTOBER": 0,
"COUNTNOVEMBER": 0,
"COUNTDECEMBER": 0,
"COUNTTOTAL": 1,
"ID": "d398bd0b-1cde-4f19-abae-a37dc5f88d93",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2025-01-01 10:23:32",
"MODIFY_TIME": "2025-01-08 10:07:56",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"YEAR": 2025,
"LEVEL": 0,
"NAME": "部门级",
"ROW_NO": 1,
"COUNTJANUARY": 8,
"COUNTFEBRUARY": 0,
"COUNTMARCH": 0,
"COUNTAPRIL": 0,
"COUNTMAY": 0,
"COUNTJUNE": 0,
"COUNTJULY": 0,
"COUNTAUGUST": 0,
"COUNTSEPTEMBER": 0,
"COUNTOCTOBER": 0,
"COUNTNOVEMBER": 0,
"COUNTDECEMBER": 0,
"COUNTTOTAL": 8,
"ID": "b3deba1f-ff26-4c72-80b1-dbafa3f47312",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2025-01-01 10:23:32",
"MODIFY_TIME": "2025-01-08 10:07:56",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"YEAR": 2025,
"LEVEL": 1,
"NAME": "车间级",
"ROW_NO": 2,
"COUNTJANUARY": 19,
"COUNTFEBRUARY": 0,
"COUNTMARCH": 0,
"COUNTAPRIL": 0,
"COUNTMAY": 0,
"COUNTJUNE": 0,
"COUNTJULY": 0,
"COUNTAUGUST": 0,
"COUNTSEPTEMBER": 0,
"COUNTOCTOBER": 0,
"COUNTNOVEMBER": 0,
"COUNTDECEMBER": 0,
"COUNTTOTAL": 19,
"ID": "2df0583b-69f1-4a50-bd83-34bfd8434572",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2025-01-01 10:23:32",
"MODIFY_TIME": "2025-01-08 10:07:56",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"YEAR": 2025,
"LEVEL": 2,
"NAME": "班组级",
"ROW_NO": 3,
"COUNTJANUARY": 273,
"COUNTFEBRUARY": 0,
"COUNTMARCH": 0,
"COUNTAPRIL": 0,
"COUNTMAY": 0,
"COUNTJUNE": 0,
"COUNTJULY": 0,
"COUNTAUGUST": 0,
"COUNTSEPTEMBER": 0,
"COUNTOCTOBER": 0,
"COUNTNOVEMBER": 0,
"COUNTDECEMBER": 0,
"COUNTTOTAL": 273,
"ID": "a0c49594-f380-4ccf-8106-730f3c638c7e",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2025-01-01 10:23:32",
"MODIFY_TIME": "2025-01-08 10:07:56",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"YEAR": 0,
"LEVEL": 0,
"NAME": "合计",
"ROW_NO": 4,
"COUNTJANUARY": 301,
"COUNTFEBRUARY": 0,
"COUNTMARCH": 0,
"COUNTAPRIL": 0,
"COUNTMAY": 0,
"COUNTJUNE": 0,
"COUNTJULY": 0,
"COUNTAUGUST": 0,
"COUNTSEPTEMBER": 0,
"COUNTOCTOBER": 0,
"COUNTNOVEMBER": 0,
"COUNTDECEMBER": 0,
"COUNTTOTAL": 301,
"ID": "dd258107-a182-4e2a-a8cd-8503818aa7f1",
"IS_DELETED": false,
"ORG_ID": null,
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2025-01-08 13:58:07",
"MODIFY_TIME": "2025-01-08 13:58:07",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
}
],
"listCheckTypeYear": [
{
"MineType": 0,
"DEPARTMENT_ID": null,
"YEAR": 2024,
"MONTH": 2,
"ALLCOUNT": 25,
"INTTIMECOUNT": 8,
"OUTTIMECOUNT": 9,
"NOTFINISHCOUN": 8,
"FINISHPERCENT": 68,
"ID": "77108913-f421-4473-b9f6-f6ada933d619",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-02-01 15:54:47",
"MODIFY_TIME": "2024-10-11 11:31:54",
"CREATER_ID": null,
"MODIFIER_ID": "8f26c255-fdfd-47ff-b83e-6309815958dd",
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"DEPARTMENT_ID": null,
"YEAR": 2024,
"MONTH": 3,
"ALLCOUNT": 50,
"INTTIMECOUNT": 38,
"OUTTIMECOUNT": 6,
"NOTFINISHCOUN": 6,
"FINISHPERCENT": 88,
"ID": "d39408aa-01e8-404c-966f-6a41bd7df357",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-03-01 15:54:50",
"MODIFY_TIME": "2024-10-11 11:31:54",
"CREATER_ID": null,
"MODIFIER_ID": "8f26c255-fdfd-47ff-b83e-6309815958dd",
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"DEPARTMENT_ID": null,
"YEAR": 2024,
"MONTH": 4,
"ALLCOUNT": 115,
"INTTIMECOUNT": 84,
"OUTTIMECOUNT": 26,
"NOTFINISHCOUN": 5,
"FINISHPERCENT": 95.65,
"ID": "65df4fdd-fc01-42d3-bb64-1c78362b580d",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-04-01 15:54:54",
"MODIFY_TIME": "2024-10-11 11:31:54",
"CREATER_ID": null,
"MODIFIER_ID": "8f26c255-fdfd-47ff-b83e-6309815958dd",
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"DEPARTMENT_ID": null,
"YEAR": 2024,
"MONTH": 5,
"ALLCOUNT": 93,
"INTTIMECOUNT": 39,
"OUTTIMECOUNT": 23,
"NOTFINISHCOUN": 31,
"FINISHPERCENT": 66.67,
"ID": "d75502b2-5e9d-4bdf-b4fa-a02792d0fe34",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-05-01 15:54:57",
"MODIFY_TIME": "2024-10-11 11:31:54",
"CREATER_ID": null,
"MODIFIER_ID": "8f26c255-fdfd-47ff-b83e-6309815958dd",
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"DEPARTMENT_ID": null,
"YEAR": 2024,
"MONTH": 6,
"ALLCOUNT": 88,
"INTTIMECOUNT": 10,
"OUTTIMECOUNT": 9,
"NOTFINISHCOUN": 69,
"FINISHPERCENT": 21.59,
"ID": "f6f2b33f-8b67-4d0e-b70c-0585bd814464",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-06-01 15:55:02",
"MODIFY_TIME": "2024-10-11 11:31:44",
"CREATER_ID": null,
"MODIFIER_ID": "8f26c255-fdfd-47ff-b83e-6309815958dd",
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"DEPARTMENT_ID": null,
"YEAR": 2024,
"MONTH": 7,
"ALLCOUNT": 73,
"INTTIMECOUNT": 32,
"OUTTIMECOUNT": 16,
"NOTFINISHCOUN": 25,
"FINISHPERCENT": 65.75,
"ID": "20168db9-c1fc-47a1-a44d-33cbd0fd1df6",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-07-01 15:55:03",
"MODIFY_TIME": "2024-10-31 09:01:15",
"CREATER_ID": null,
"MODIFIER_ID": "8f26c255-fdfd-47ff-b83e-6309815958dd",
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"DEPARTMENT_ID": null,
"YEAR": 2024,
"MONTH": 8,
"ALLCOUNT": 63,
"INTTIMECOUNT": 29,
"OUTTIMECOUNT": 23,
"NOTFINISHCOUN": 11,
"FINISHPERCENT": 82.54,
"ID": "080b81a0-30cf-4ae6-bf1d-7e1ae0e22653",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-08-01 15:55:05",
"MODIFY_TIME": "2024-11-30 09:01:15",
"CREATER_ID": null,
"MODIFIER_ID": "8f26c255-fdfd-47ff-b83e-6309815958dd",
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"DEPARTMENT_ID": null,
"YEAR": 2024,
"MONTH": 9,
"ALLCOUNT": 46,
"INTTIMECOUNT": 19,
"OUTTIMECOUNT": 19,
"NOTFINISHCOUN": 8,
"FINISHPERCENT": 82.61,
"ID": "59c49643-30f0-4fff-bca1-69aa75fe85e4",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-09-01 15:55:06",
"MODIFY_TIME": "2024-12-31 10:23:32",
"CREATER_ID": null,
"MODIFIER_ID": "8f26c255-fdfd-47ff-b83e-6309815958dd",
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"DEPARTMENT_ID": null,
"YEAR": 2024,
"MONTH": 10,
"ALLCOUNT": 38,
"INTTIMECOUNT": 9,
"OUTTIMECOUNT": 12,
"NOTFINISHCOUN": 17,
"FINISHPERCENT": 55.26,
"ID": "6cc45f0a-a6c9-4e61-b00f-6318ed82c847",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-10-01 15:55:09",
"MODIFY_TIME": "2024-12-31 10:23:32",
"CREATER_ID": null,
"MODIFIER_ID": "8f26c255-fdfd-47ff-b83e-6309815958dd",
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"DEPARTMENT_ID": null,
"YEAR": 2024,
"MONTH": 11,
"ALLCOUNT": 17,
"INTTIMECOUNT": 7,
"OUTTIMECOUNT": 8,
"NOTFINISHCOUN": 2,
"FINISHPERCENT": 88.24,
"ID": "4f60ecda-2be6-40e8-bf16-d701c57b2543",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-11-01 09:01:13",
"MODIFY_TIME": "2025-01-08 10:07:56",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"DEPARTMENT_ID": null,
"YEAR": 2024,
"MONTH": 12,
"ALLCOUNT": 17,
"INTTIMECOUNT": 7,
"OUTTIMECOUNT": 8,
"NOTFINISHCOUN": 2,
"FINISHPERCENT": 88.24,
"ID": "c08a35a9-3da4-45ab-9985-48e6a08b27ad",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2024-12-01 09:01:15",
"MODIFY_TIME": "2025-01-08 10:07:56",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"MineType": 0,
"DEPARTMENT_ID": null,
"YEAR": 2025,
"MONTH": 1,
"ALLCOUNT": 6,
"INTTIMECOUNT": 1,
"OUTTIMECOUNT": 4,
"NOTFINISHCOUN": 1,
"FINISHPERCENT": 83.33,
"ID": "ecb2f41c-ff22-4a75-a0f7-d0b8264be6a4",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2025-01-01 10:23:32",
"MODIFY_TIME": "2025-01-08 10:07:56",
"CREATER_ID": null,
"MODIFIER_ID": null,
"TaskID": "00000000-0000-0000-0000-000000000000"
}
],
"listSummary": [
{
"CODE": "BI051_BSCOMPANYYEAR",
"PART": 3,
"NUM": 1,
"TimeType": 0,
"MineType": 0,
"Parameter1": "隐患数",
"Count1": 6,
"Parameter2": "超整改数",
"Count2": 4,
"Parameter3": "按期整改数",
"Count3": 1,
"Parameter4": "整改率",
"Count4": 0,
"Count5": 0,
"Count6": 0,
"Parameter7": "83.33%",
"Count7": 0,
"Count8": 0,
"Count9": 0,
"Count10": 0,
"ID": "494021ca-236c-4669-b4c5-c6d7006ae1c8",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2023-04-12 09:39:50",
"MODIFY_TIME": "2025-01-08 10:07:56",
"CREATER_ID": null,
"MODIFIER_ID": "8f26c255-fdfd-47ff-b83e-6309815958dd",
"TaskID": "00000000-0000-0000-0000-000000000000"
},
{
"CODE": "BI051_BSCOMPANYYEAR",
"PART": 1,
"NUM": 1,
"TimeType": 0,
"MineType": 0,
"Parameter1": "计划检查数",
"Count1": 301,
"Parameter2": "按时已办",
"Count2": 250,
"Parameter3": "超时已办",
"Count3": 0,
"Parameter4": "未完成数",
"Count4": 51,
"Parameter5": "完成率",
"Count5": 0,
"Parameter6": "及时完成率",
"Count6": 0,
"Parameter7": "83.06%",
"Count7": 0,
"Parameter8": "83.06%",
"Count8": 0,
"Count9": 0,
"Count10": 0,
"ID": "c107f8c9-d66e-4981-abdd-f1fbb34b8e0a",
"IS_DELETED": false,
"ORG_ID": "b043b28b-bbc3-c452-6052-4fba1457abfa",
"ENTITY_ORG_TPYE": 0,
"FORM_ID": null,
"FLOW_STATUS": 0,
"FLOW_SEND_STATUS": 0,
"FLOW_ID": null,
"CREATE_TIME": "2023-04-12 09:39:50",
"MODIFY_TIME": "2025-01-08 10:07:56",
"CREATER_ID": null,
"MODIFIER_ID": "8f26c255-fdfd-47ff-b83e-6309815958dd",
"TaskID": "00000000-0000-0000-0000-000000000000"
}
],
"NAME": "宁化行洛坑钨矿有限公司"
}
let datess = getNearMonth().reverse()
var count1 = 0; var count1 = 0;
var count2 = 0; var count2 = 0;
var count3 = 0; var count3 = 0;
@ -140,7 +677,8 @@ class BI051BSCompanyYear extends React.Component {
year: year, year: year,
company: companyName, company: companyName,
}, },
}); },()=>{
var divchekData = []; var divchekData = [];
var divchekData1 = []; var divchekData1 = [];
@ -151,10 +689,6 @@ class BI051BSCompanyYear extends React.Component {
} }
}); });
// COUNTTOTAL // COUNTTOTAL
console.log(
data.listSafeCheckYear[data.listSafeCheckYear.length - 1],
"data.listSafeCheckYeardata.listSafeCheckYear"
);
var colorList = [ var colorList = [
"#47A2FF ", "#47A2FF ",
"#53C8D1", "#53C8D1",
@ -314,7 +848,7 @@ class BI051BSCompanyYear extends React.Component {
}, },
xAxis: { xAxis: {
type: "category", type: "category",
data: xAxisData, data: datess,
axisLabel: { axisLabel: {
show: true, show: true,
color: "rgb(170,170,170)", color: "rgb(170,170,170)",
@ -440,7 +974,7 @@ class BI051BSCompanyYear extends React.Component {
xAxis: { xAxis: {
type: "category", type: "category",
boundaryGap: false, //坐标轴两边留白 boundaryGap: false, //坐标轴两边留白
data: dataXAxis, data: datess,
axisLabel: { axisLabel: {
//坐标轴刻度标签的相关设置。 //坐标轴刻度标签的相关设置。
interval: 0, //设置为 1表示『隔一个标签显示一个标签』 interval: 0, //设置为 1表示『隔一个标签显示一个标签』
@ -532,17 +1066,8 @@ class BI051BSCompanyYear extends React.Component {
], ],
}); });
} }
// LineShow(
// echarts,
// "divRiskPercent",
// "安全检查隐患整改率近12个月",
// dataXAxis,
// dataSeries
// );
}
},
}); });
}; };
// 搜索 // 搜索
@ -557,127 +1082,7 @@ class BI051BSCompanyYear extends React.Component {
}); });
}; };
// ChartBarShow_Vertical(echarts, divId, data, title) {
// var element = document.getElementById(divId)
// if (element != undefined && data != null && data.length > 0) {
// var myChart = echarts.init(element);
// var series = []
// var xAxisData = []
// var yAxisData1 = []
// var yAxisData2 = []
// var yAxisData3 = []
// data.forEach((item) => {
// xAxisData.push(item.YEAR + "-" + item.MONTH)
// yAxisData1.push(item.INTTIMECOUNT)
// yAxisData2.push(item.OUTTIMECOUNT)
// yAxisData3.push(item.NOTFINISHCOUN)
// })
// var option = {
// title: {
// text: title,
// left: 'center'
// },
// tooltip: {
// trigger: 'axis',
// axisPointer: {
// type: 'shadow'
// }
// },
// legend: {
// bottom: '0px'
// },
// grid: {
// left: '3%',
// right: '4%',
// bottom: '10%',
// containLabel: true
// },
// xAxis: {
// type: 'category',
// data: xAxisData
// },
// yAxis: {
// type: 'value'
// },
// series: [
// {
// name: '按期整改',
// type: 'bar',
// stack: 'total',
// label: {
// show: true
// },
// emphasis: {
// focus: 'series'
// },
// data: yAxisData1
// },
// {
// name: '延期整改',
// type: 'bar',
// stack: 'total',
// label: {
// show: true
// },
// emphasis: {
// focus: 'series'
// },
// data: yAxisData2
// },
// {
// name: '未完成',
// type: 'bar',
// stack: 'total',
// label: {
// show: true
// },
// emphasis: {
// focus: 'series'
// },
// data: yAxisData3
// }
// ]
// };
// // 使用刚指定的配置项和数据显示图表。
// myChart.setOption(option);
// }
// }
// LineShow(echarts, divId, title, dataXAxis, dataSeries) {
// var chartDom = document.getElementById(divId);
// if (chartDom != null && chartDom != undefined) {
// var myChart = echarts.init(chartDom);
// var option;
// option = {
// title: {
// text: title,
// left: 'center'
// },
// label: {
// show: true,
// position: 'top'
// },
// xAxis: {
// type: 'category',
// data: dataXAxis
// },
// yAxis: {
// type: 'value'
// },
// series: [
// {
// data: dataSeries,
// type: 'line'
// }
// ]
// };
// option && myChart.setOption(option);
// }
// }
render() { render() {
const { data } = this.state; const { data } = this.state;