import React from "react";
import { connect } from "dva";
import { initFilter, extendRule, extendOrder } from "../../../utils/common";
import { ChartPieShow, ChartBarShow } from "../../../utils/commonEcharsShow";
import { Table, Button, Row, Col, Modal, Icon, Progress, Divider } from "antd";
import echarts from "echarts";
import styles from "../HI/StepForm1.css";
import moment from "moment";
import { T } from "antd/lib/upload/utils";
import FormPage from "../../FormPage";

class BI009FormRunAnalysis extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      visible: false,
      noticeTitle: "",
      tmpData: {},
      tableKey: "1",
      timeType: 5,
      ordinaryCount: 0,
      crucialCount: 0,
      activityCount: 0,
      postCount: 0,
      postChangeCount: 0,
      taskCount: 0,
      weekColor: "black",
      monthColor: "orange",
      threeMonthColor: "black",
      sixMonthColor: "black",
      yearColor: "black",
      retData: [],
      groupData: [],
      detailData: [],
      newData: [],
      detailDataH: [],
      displayHr: "none",
      displaydetail: "none",
      columns: [
        {
          width: "80px",
          title: "序号",
          dataIndex: "Num",
          key: "Num",
          render: (text, record, index) => <span>{index + 1}</span>,
        },
        {
          width: "250px",
          title: "部门",
          dataIndex: "DEPARTMENT_NAME",
          key: "DEPARTMENT_NAME",
          // render: (text, record) => (
          //   <span>
          //     <a onClick={() => this.showEditModal(record.DEPARTMENT_ID,record.DEPARTMENT_NAME)}>{record.DEPARTMENT_NAME}</a>
          //   </span>
          // ),
        },
        {
          width: "250px",
          title: "班组",
          dataIndex: "TEAM_NAME",
          key: "TEAM_NAME",
          // render: (text, record) => (
          //   <span>
          //     <a onClick={() => this.showEditModal(record.DEPARTMENT_ID,record.DEPARTMENT_NAME)}>{record.DEPARTMENT_NAME}</a>
          //   </span>
          // ),
        },
        {
          title: "完成率",
          children: [
            {
              title: "班前会议",
              render: (text, record) => (
                <span>
                  {record.FO01_TOTAL == 0
                    ? "0%"
                    : (
                        ((record.FO01_FINISH + record.FO01_OVERTIME) /
                          record.FO01_TOTAL) *
                        100
                      ).toFixed(0) + "%"}
                </span>
              ),
            },
            {
              title: "岗位交接班",
              render: (text, record) => (
                <span>
                  {record.FO03_TOTAL == 0
                    ? "0%"
                    : (
                        ((record.FO03_FINISH + record.FO03_OVERTIME) /
                          record.FO03_TOTAL) *
                        100
                      ).toFixed(0) + "%"}
                </span>
              ),
            },
            {
              title: "岗位当班记录",
              render: (text, record) => (
                <span>
                  {record.FO02_TOTAL == 0
                    ? "0%"
                    : (
                        ((record.FO02_FINISH + record.FO02_OVERTIME) /
                          record.FO02_TOTAL) *
                        100
                      ).toFixed(0) + "%"}
                </span>
              ),
            },
          ],
        },
        // {
        //   title: '及时完成率',
        //   children: [
        //     {
        //       title: '班前会议',
        //       render: (text, record) => (<span>{record.FO01_TOTAL == 0?'0%':((record.FO01_FINISH/ record.FO01_TOTAL)*100).toFixed(0)+"%"}</span>)
        //     },
        //     {
        //       title: '岗位交接班',
        //       render: (text, record) => (<span>{record.FO03_TOTAL == 0?'0%':((record.FO03_FINISH / record.FO03_TOTAL)*100).toFixed(0)+"%"}</span>)
        //     },
        //     {
        //       title: '岗位当班记录',
        //       render: (text, record) => (<span>{record.FO02_TOTAL == 0?'0%':((record.FO02_FINISH / record.FO02_TOTAL)*100).toFixed(0)+"%"}</span>)
        //     },
        //   ],
        // },
      ],
      detailColumns: [
        {
          width: "60px",
          title: "班组",
          dataIndex: "DEPARTMENT_NAME",
          key: "DEPARTMENT_NAME",
          // render: (text, record) => (
          //   <span>
          //     <a onClick={() => this.showEditModal(record.DEPARTMENT_ID,record.DEPARTMENT_NAME)}>{record.DEPARTMENT_NAME}</a>
          //   </span>
          // ),
        },
        {
          width: "60px",
          title: "总任务数",
          dataIndex: "TOTAL_QTY",
          key: "TOTAL_QTY",
        },
        {
          width: "60px",
          title: "正常已办",
          dataIndex: "FINISH_QTY",
          key: "FINISH_QTY",
        },
        {
          width: "60px",
          title: "超时已办",
          dataIndex: "OVER_FINISH_QTY",
          key: "OVER_FINISH_QTY",
        },
        {
          width: "50px",
          title: "未完成",
          dataIndex: "UNFINISH_QTY",
          key: "UNFINISH_QTY",
        },
        {
          width: "100px",
          title: "完成率",
          dataIndex: "FINISH_RATE",
          key: "FINISH_RATE",
          render: (text, record) => (
            <Progress percent={record.FINISH_RATE.split("%")[0]} />
            // <span>
            //   <a onClick={() => this.showEditModal(record.DEPARTMENT_ID,record.DEPARTMENT_NAME)}>{record.DEPARTMENT_NAME}</a>
            // </span>
          ),
        },
        {
          width: "100px",
          title: "及时完成率",
          dataIndex: "NORMAL_FINISH_RATE",
          key: "NORMAL_FINISH_RATE",
          render: (text, record) => (
            <Progress
              percent={record.NORMAL_FINISH_RATE.split("%")[0]}
              strokeColor={{
                from: "rgba(82, 196, 26)",
                to: "rgba(82, 196, 26)",
              }}
            />
            // <span>
            //   <a onClick={() => this.showEditModal(record.DEPARTMENT_ID,record.DEPARTMENT_NAME)}>{record.DEPARTMENT_NAME}</a>
            // </span>
          ),
        },
      ],
    };
  }

  componentDidMount() {
    this.loadData();
  }
  showEditModal = (departmentId, departmentName) => {
    const newtmpData = {
      data: {
        id: departmentId,
        name: departmentName,
        onCancel: this.handleCancel,
        tableKey: this.state.tableKey,
        homeReload: true,
      },
      formCode: "BI007_RUNANALYSIS",
    };
    this.setState(
      {
        id: departmentId,
        name: departmentName,
        noticeTitle: departmentName + "安全生产标准化运行情况",
        tmpData: newtmpData,
        currActivatedMenu: "",
      },
      () =>
        this.setState({
          visible: true,
        })
    );
  };
  showFormModal = (record) => {
    const { newData } = this.state;
    let newDataTemp = [];
    let temp = newData.filter(
      (t) =>
        t.DEPARTMENT_ID === record.departmentId &&
        t.SOURCE_FORMCODE === record.formCode
    );
    if (temp.length > 0) {
      let i = 1;
      temp.forEach((t) => {
        t.ROW_NO = i;
        t.formName = record.formName;
        newDataTemp.push(t);
        i++;
      });
    } else {
      newDataTemp = [];
    }
    this.setState({ displaydetail: "block", detailDataH: newDataTemp });
  };

  //加载数据赋值
  loadData = () => {
    this.getCount();
    this.workTicket();
    this.workTicket2();
    this.mainJobPie2();
    this.getBaseInfoData();
  };
  //获取数据
  getBaseInfoData = () => {
    let json = initFilter(this.props.login.OrgId, "", "DEPARTMENT_NAME", "asc");
    extendRule(json, "FILTER_TIME", 1, 0);
    extendRule(json, "DEPARTMENT_NAME", 2, "宁化行洛坑钨矿有限公司");
    extendRule(json, "DEPARTMENT_NAME", 2, "都昌金鼎钨钼矿业有限公司");
    extendRule(json, "DEPARTMENT_NAME", 2, "技术管理部");
    // this.props.dispatch({
    //   type: "app/getDataByPost",
    //   url: "BI/SafetaskFinish/OrderEntities",
    //   payload: json,
    //   onlyData: false,
    //   onComplete: (ret) => {
    //     if (ret && ret.Data) {
    // console.log(ret.Data, "ret.Data");
    // this.state.retData = ret.Data;
    this.setState({
      retData: [
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "机电设备管理办公室",
          TEAM_ID: "f9945723-fcb0-2212-58c8-80793ea0c55a",
          TEAM_NAME: "电工三班",
          TEAM_CHARGE_USER: "庄超",
          FO01_TOTAL: 725,
          FO01_FINISH: 594,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 131,
          FO02_TOTAL: 778,
          FO02_FINISH: 589,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 189,
          FO03_TOTAL: 727,
          FO03_FINISH: 557,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 170,
          FO04_TOTAL: 85,
          FO04_FINISH: 66,
          FO04_UNFINISH: 1,
          FO04_OVERTIME: 18,
          STARTTIME: "2014-03-05 10:48:20",
          ENDTIME: "2024-03-05 10:48:20",
          ID: "7739887b-8a44-476a-a1d4-6dd65ba10de7",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "机电设备管理办公室",
          TEAM_ID: "c31c2c06-b093-ee55-714d-4d5b8eb3b31d",
          TEAM_NAME: "电工常白班",
          TEAM_CHARGE_USER: "王兴荣",
          FO01_TOTAL: 728,
          FO01_FINISH: 502,
          FO01_UNFINISH: 1,
          FO01_OVERTIME: 225,
          FO02_TOTAL: 1786,
          FO02_FINISH: 1314,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 472,
          FO03_TOTAL: 1,
          FO03_FINISH: 1,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 88,
          FO04_FINISH: 66,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 22,
          STARTTIME: "2014-03-05 10:48:17",
          ENDTIME: "2024-03-05 10:48:18",
          ID: "cb3bb180-23ed-4c9b-a72b-b4497dc5245d",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "机电设备管理办公室",
          TEAM_ID: "49f93f3a-4449-e1f3-293e-e60f9773b5e8",
          TEAM_NAME: "电工一班",
          TEAM_CHARGE_USER: "张祥清",
          FO01_TOTAL: 725,
          FO01_FINISH: 569,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 156,
          FO02_TOTAL: 802,
          FO02_FINISH: 592,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 210,
          FO03_TOTAL: 734,
          FO03_FINISH: 526,
          FO03_UNFINISH: 1,
          FO03_OVERTIME: 207,
          FO04_TOTAL: 84,
          FO04_FINISH: 72,
          FO04_UNFINISH: 2,
          FO04_OVERTIME: 10,
          STARTTIME: "2014-03-05 10:48:23",
          ENDTIME: "2024-03-05 10:48:23",
          ID: "3fb94c66-168a-44d1-8f2e-d029fe82e89e",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "机电设备管理办公室",
          TEAM_ID: "880e6cf1-4101-29bd-2758-a5c8c013b85c",
          TEAM_NAME: "电工二班",
          TEAM_CHARGE_USER: "王立清",
          FO01_TOTAL: 724,
          FO01_FINISH: 542,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 182,
          FO02_TOTAL: 780,
          FO02_FINISH: 538,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 242,
          FO03_TOTAL: 732,
          FO03_FINISH: 558,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 174,
          FO04_TOTAL: 85,
          FO04_FINISH: 63,
          FO04_UNFINISH: 3,
          FO04_OVERTIME: 19,
          STARTTIME: "2014-03-05 10:48:21",
          ENDTIME: "2024-03-05 10:48:21",
          ID: "c6aecee8-2bf3-4534-8b2b-fcd44ca716fa",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "矿山部",
          TEAM_ID: "9e171704-f1af-9de4-0287-476216371c16",
          TEAM_NAME: "综合班组",
          TEAM_CHARGE_USER: "黄庭能",
          FO01_TOTAL: 725,
          FO01_FINISH: 308,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 417,
          FO02_TOTAL: 3889,
          FO02_FINISH: 1844,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 2045,
          FO03_TOTAL: 2,
          FO03_FINISH: 1,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 1,
          FO04_TOTAL: 82,
          FO04_FINISH: 43,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 39,
          STARTTIME: "2014-03-05 10:48:16",
          ENDTIME: "2024-03-05 10:48:17",
          ID: "08703a2f-1354-44d6-a464-eff4a83bb93c",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "矿山部",
          TEAM_ID: "8ba1fb97-540b-d451-881a-39f632700975",
          TEAM_NAME: "运输二班",
          TEAM_CHARGE_USER: "魏文春",
          FO01_TOTAL: 747,
          FO01_FINISH: 462,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 285,
          FO02_TOTAL: 6876,
          FO02_FINISH: 3059,
          FO02_UNFINISH: 1,
          FO02_OVERTIME: 3816,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 85,
          FO04_FINISH: 38,
          FO04_UNFINISH: 5,
          FO04_OVERTIME: 42,
          STARTTIME: "2014-03-05 10:48:16",
          ENDTIME: "2024-03-05 10:48:16",
          ID: "3840ef2d-c239-471a-81b6-bd976b5d7dc7",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "矿山部",
          TEAM_ID: "91f40319-fd33-6b72-dfb5-b51b21abac54",
          TEAM_NAME: "生产班",
          TEAM_CHARGE_USER: "戴家彬",
          FO01_TOTAL: 729,
          FO01_FINISH: 529,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 200,
          FO02_TOTAL: 3064,
          FO02_FINISH: 2016,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 1048,
          FO03_TOTAL: 2,
          FO03_FINISH: 1,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 1,
          FO04_TOTAL: 86,
          FO04_FINISH: 69,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 17,
          STARTTIME: "2014-03-05 10:48:21",
          ENDTIME: "2024-03-05 10:48:22",
          ID: "c316cdca-d875-48b6-a6a4-be6547f864a5",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "矿山部",
          TEAM_ID: "0270fa34-4849-4429-35e8-5fb8b98c9fc9",
          TEAM_NAME: "金宇现场",
          TEAM_CHARGE_USER: "王周大",
          FO01_TOTAL: 727,
          FO01_FINISH: 259,
          FO01_UNFINISH: 1,
          FO01_OVERTIME: 467,
          FO02_TOTAL: 9194,
          FO02_FINISH: 4297,
          FO02_UNFINISH: 8,
          FO02_OVERTIME: 4889,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 85,
          FO04_FINISH: 42,
          FO04_UNFINISH: 1,
          FO04_OVERTIME: 42,
          STARTTIME: "2014-03-05 10:48:18",
          ENDTIME: "2024-03-05 10:48:19",
          ID: "c4d85d1d-f843-4ba7-8f43-75e493426994",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "矿山部",
          TEAM_ID: "c671778d-dd76-080f-51d1-5dc5ca698419",
          TEAM_NAME: "爆破班组",
          TEAM_CHARGE_USER: "林金生",
          FO01_TOTAL: 726,
          FO01_FINISH: 470,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 256,
          FO02_TOTAL: 2141,
          FO02_FINISH: 1501,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 640,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 85,
          FO04_FINISH: 69,
          FO04_UNFINISH: 1,
          FO04_OVERTIME: 15,
          STARTTIME: "2014-03-05 10:48:18",
          ENDTIME: "2024-03-05 10:48:18",
          ID: "a50a64ba-4632-4d61-bd3c-1ffef7aabb4e",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "矿山部",
          TEAM_ID: "45aba808-c12c-b785-fa09-f9acd9922785",
          TEAM_NAME: "民爆储存库班组",
          TEAM_CHARGE_USER: "张立田",
          FO01_TOTAL: 727,
          FO01_FINISH: 476,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 251,
          FO02_TOTAL: 2226,
          FO02_FINISH: 1358,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 868,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 86,
          FO04_FINISH: 57,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 29,
          STARTTIME: "2014-03-05 10:48:24",
          ENDTIME: "2024-03-05 10:48:25",
          ID: "32385e50-8298-47df-a977-296182e28212",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "矿山部",
          TEAM_ID: "bcdca284-6373-6862-083e-645030a2315d",
          TEAM_NAME: "维修班组",
          TEAM_CHARGE_USER: "陈允毅",
          FO01_TOTAL: 729,
          FO01_FINISH: 447,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 282,
          FO02_TOTAL: 2847,
          FO02_FINISH: 1512,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 1335,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 85,
          FO04_FINISH: 71,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 14,
          STARTTIME: "2014-03-05 10:48:19",
          ENDTIME: "2024-03-05 10:48:19",
          ID: "948d60b5-0f73-4ed4-a2be-024c8c9caaeb",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "矿山部",
          TEAM_ID: "db1ccb4a-0ffa-63c9-9384-c3d9139e8c8f",
          TEAM_NAME: "运输一班",
          TEAM_CHARGE_USER: "蔡帮杰",
          FO01_TOTAL: 742,
          FO01_FINISH: 439,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 303,
          FO02_TOTAL: 8048,
          FO02_FINISH: 3752,
          FO02_UNFINISH: 2,
          FO02_OVERTIME: 4294,
          FO03_TOTAL: 2,
          FO03_FINISH: 2,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 84,
          FO04_FINISH: 46,
          FO04_UNFINISH: 2,
          FO04_OVERTIME: 36,
          STARTTIME: "2014-03-05 10:48:22",
          ENDTIME: "2024-03-05 10:48:22",
          ID: "b54d9fa5-bf25-4082-8ed2-58e809e0844e",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "矿山部",
          TEAM_ID: "821a4fe3-5513-681e-ed3c-e61836b29638",
          TEAM_NAME: "穿孔班组",
          TEAM_CHARGE_USER: "章明文",
          FO01_TOTAL: 728,
          FO01_FINISH: 316,
          FO01_UNFINISH: 4,
          FO01_OVERTIME: 408,
          FO02_TOTAL: 1604,
          FO02_FINISH: 1007,
          FO02_UNFINISH: 4,
          FO02_OVERTIME: 593,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 83,
          FO04_FINISH: 45,
          FO04_UNFINISH: 7,
          FO04_OVERTIME: 31,
          STARTTIME: "2014-03-05 10:48:23",
          ENDTIME: "2024-03-05 10:48:23",
          ID: "6a9d149c-6705-4222-a4ee-5d89ba5adfe3",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "10541d8a-8951-a80d-9b43-6de969658ee8",
          TEAM_NAME: "精矿烘干班组",
          TEAM_CHARGE_USER: "官兴才",
          FO01_TOTAL: 722,
          FO01_FINISH: 679,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 43,
          FO02_TOTAL: 3600,
          FO02_FINISH: 3330,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 270,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 83,
          FO04_FINISH: 78,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 5,
          STARTTIME: "2014-03-05 10:48:19",
          ENDTIME: "2024-03-05 10:48:19",
          ID: "eb2c1ae9-031f-4727-bfb5-63cfad81aedf",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "8698ca65-c6f7-c6d6-ab98-480753e1a4ae",
          TEAM_NAME: "硫化矿多金属回收班",
          TEAM_CHARGE_USER: "陈国春",
          FO01_TOTAL: 722,
          FO01_FINISH: 671,
          FO01_UNFINISH: 1,
          FO01_OVERTIME: 50,
          FO02_TOTAL: 5910,
          FO02_FINISH: 4817,
          FO02_UNFINISH: 1,
          FO02_OVERTIME: 1092,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 101,
          FO04_FINISH: 93,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 8,
          STARTTIME: "2014-03-05 10:48:17",
          ENDTIME: "2024-03-05 10:48:17",
          ID: "13e6a24d-2777-491f-af4b-183cf68ed9b7",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "0388a6df-6d7e-2d29-b758-f10fad387d21",
          TEAM_NAME: "综合回收一班",
          TEAM_CHARGE_USER: "巫达华",
          FO01_TOTAL: 727,
          FO01_FINISH: 558,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 169,
          FO02_TOTAL: 7642,
          FO02_FINISH: 6309,
          FO02_UNFINISH: 11,
          FO02_OVERTIME: 1322,
          FO03_TOTAL: 7094,
          FO03_FINISH: 6035,
          FO03_UNFINISH: 1,
          FO03_OVERTIME: 1058,
          FO04_TOTAL: 86,
          FO04_FINISH: 65,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 21,
          STARTTIME: "2014-03-05 10:48:23",
          ENDTIME: "2024-03-05 10:48:24",
          ID: "08b20f10-d5f0-49f9-8cf9-1c2dc9632a76",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "b2e30cab-dbd3-5c9b-0c49-b3607971bf67",
          TEAM_NAME: "磨重机修班",
          TEAM_CHARGE_USER: "王建文",
          FO01_TOTAL: 722,
          FO01_FINISH: 375,
          FO01_UNFINISH: 3,
          FO01_OVERTIME: 344,
          FO02_TOTAL: 3124,
          FO02_FINISH: 1734,
          FO02_UNFINISH: 1,
          FO02_OVERTIME: 1389,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 94,
          FO04_FINISH: 43,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 51,
          STARTTIME: "2014-03-05 10:48:21",
          ENDTIME: "2024-03-05 10:48:21",
          ID: "21e06677-df60-4ccf-b15e-463217783e4d",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "3664f4f5-0a4b-b7ff-08f1-710da20742b0",
          TEAM_NAME: "破碎机修班",
          TEAM_CHARGE_USER: "张昌雄",
          FO01_TOTAL: 729,
          FO01_FINISH: 452,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 277,
          FO02_TOTAL: 2227,
          FO02_FINISH: 1390,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 837,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 100,
          FO04_FINISH: 58,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 42,
          STARTTIME: "2014-03-05 10:48:19",
          ENDTIME: "2024-03-05 10:48:20",
          ID: "ab69e1c0-4195-4654-b3d0-4ec63229dde0",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "1ea51766-16c0-4aae-9088-64dba3043e1f",
          TEAM_NAME: "尾矿二班",
          TEAM_CHARGE_USER: "张华群",
          FO01_TOTAL: 0,
          FO01_FINISH: 0,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 0,
          FO02_TOTAL: 0,
          FO02_FINISH: 0,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 0,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 8,
          FO04_FINISH: 4,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 4,
          STARTTIME: "2014-03-05 10:48:19",
          ENDTIME: "2024-03-05 10:48:19",
          ID: "022b5df3-8542-4109-a8ca-7a51134ebdca",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "f4830475-9145-6e99-2dc4-765e92ad26d6",
          TEAM_NAME: "轨道维护班",
          TEAM_CHARGE_USER: "邱衍富",
          FO01_TOTAL: 729,
          FO01_FINISH: 606,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 123,
          FO02_TOTAL: 2792,
          FO02_FINISH: 2129,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 663,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 90,
          FO04_FINISH: 74,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 16,
          STARTTIME: "2014-03-05 10:48:20",
          ENDTIME: "2024-03-05 10:48:20",
          ID: "63638745-f1d7-4bad-9c08-7f3770d1f94a",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "378b2fbd-5c40-4981-90eb-87b50726a3cc",
          TEAM_NAME: "尾矿一班",
          TEAM_CHARGE_USER: "王冬华",
          FO01_TOTAL: 0,
          FO01_FINISH: 0,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 0,
          FO02_TOTAL: 1,
          FO02_FINISH: 1,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 0,
          FO03_TOTAL: 1,
          FO03_FINISH: 0,
          FO03_UNFINISH: 1,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 10,
          FO04_FINISH: 9,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 1,
          STARTTIME: "2014-03-05 10:48:20",
          ENDTIME: "2024-03-05 10:48:20",
          ID: "179480d7-c9fd-4855-9bfa-7fb329bdb72f",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "42500418-4036-f500-6924-1ba07e9e0f53",
          TEAM_NAME: "破碎三班",
          TEAM_CHARGE_USER: "黄春福",
          FO01_TOTAL: 727,
          FO01_FINISH: 517,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 210,
          FO02_TOTAL: 16044,
          FO02_FINISH: 14419,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 1625,
          FO03_TOTAL: 15549,
          FO03_FINISH: 13133,
          FO03_UNFINISH: 1,
          FO03_OVERTIME: 2415,
          FO04_TOTAL: 85,
          FO04_FINISH: 72,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 13,
          STARTTIME: "2014-03-05 10:48:15",
          ENDTIME: "2024-03-05 10:48:15",
          ID: "de51561a-18fd-4417-a994-801637f24467",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "55eca413-a954-7c80-411e-f29a8cd71c93",
          TEAM_NAME: "磨重一班",
          TEAM_CHARGE_USER: "巫瑞优",
          FO01_TOTAL: 717,
          FO01_FINISH: 591,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 126,
          FO02_TOTAL: 14587,
          FO02_FINISH: 13143,
          FO02_UNFINISH: 3,
          FO02_OVERTIME: 1441,
          FO03_TOTAL: 13289,
          FO03_FINISH: 11664,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 1625,
          FO04_TOTAL: 83,
          FO04_FINISH: 63,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 20,
          STARTTIME: "2014-03-05 10:48:24",
          ENDTIME: "2024-03-05 10:48:24",
          ID: "60d4dc42-38e9-41b9-8c35-8e5847fb43bc",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "994f4b47-6d3c-1d9c-a836-a036e1e9f016",
          TEAM_NAME: "综合回收机修班",
          TEAM_CHARGE_USER: "黄飞",
          FO01_TOTAL: 729,
          FO01_FINISH: 481,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 248,
          FO02_TOTAL: 2517,
          FO02_FINISH: 1540,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 977,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 92,
          FO04_FINISH: 52,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 40,
          STARTTIME: "2014-03-05 10:48:21",
          ENDTIME: "2024-03-05 10:48:21",
          ID: "b04d9a84-c792-4d52-91ee-adcea936c3b0",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "6dae642d-0dcc-ec2c-a506-979191937d71",
          TEAM_NAME: "综合回收三班",
          TEAM_CHARGE_USER: "周喜传",
          FO01_TOTAL: 720,
          FO01_FINISH: 450,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 270,
          FO02_TOTAL: 7373,
          FO02_FINISH: 6154,
          FO02_UNFINISH: 25,
          FO02_OVERTIME: 1194,
          FO03_TOTAL: 6706,
          FO03_FINISH: 5628,
          FO03_UNFINISH: 2,
          FO03_OVERTIME: 1076,
          FO04_TOTAL: 99,
          FO04_FINISH: 64,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 35,
          STARTTIME: "2014-03-05 10:48:20",
          ENDTIME: "2024-03-05 10:48:21",
          ID: "b84e6d31-df19-4c3b-ad92-c2f31a62e4fe",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "838567ab-9397-a237-5e1f-de1cdfbaaf8e",
          TEAM_NAME: "磨重三班",
          TEAM_CHARGE_USER: "肖恩进",
          FO01_TOTAL: 721,
          FO01_FINISH: 412,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 309,
          FO02_TOTAL: 13716,
          FO02_FINISH: 12589,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 1127,
          FO03_TOTAL: 13355,
          FO03_FINISH: 12261,
          FO03_UNFINISH: 1,
          FO03_OVERTIME: 1093,
          FO04_TOTAL: 94,
          FO04_FINISH: 59,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 35,
          STARTTIME: "2014-03-05 10:48:23",
          ENDTIME: "2024-03-05 10:48:23",
          ID: "203edc57-01b0-4eeb-b2fb-c5ede6c4a53e",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "bfb07295-c52e-4b50-b55c-dd23482c3d6b",
          TEAM_NAME: "尾矿机修班",
          TEAM_CHARGE_USER: "张雪源",
          FO01_TOTAL: 0,
          FO01_FINISH: 0,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 0,
          FO02_TOTAL: 0,
          FO02_FINISH: 0,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 0,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 7,
          FO04_FINISH: 4,
          FO04_UNFINISH: 1,
          FO04_OVERTIME: 2,
          STARTTIME: "2014-03-05 10:48:22",
          ENDTIME: "2024-03-05 10:48:23",
          ID: "d22cb5fd-0757-4f79-b41b-cbec3aaf4fad",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "bfbe9e53-1dbd-629d-600e-23f5e2bc415d",
          TEAM_NAME: "破碎二班",
          TEAM_CHARGE_USER: "周伙根",
          FO01_TOTAL: 724,
          FO01_FINISH: 424,
          FO01_UNFINISH: 1,
          FO01_OVERTIME: 299,
          FO02_TOTAL: 15213,
          FO02_FINISH: 11289,
          FO02_UNFINISH: 18,
          FO02_OVERTIME: 3906,
          FO03_TOTAL: 13834,
          FO03_FINISH: 11150,
          FO03_UNFINISH: 1,
          FO03_OVERTIME: 2683,
          FO04_TOTAL: 97,
          FO04_FINISH: 54,
          FO04_UNFINISH: 1,
          FO04_OVERTIME: 42,
          STARTTIME: "2014-03-05 10:48:16",
          ENDTIME: "2024-03-05 10:48:16",
          ID: "a7e54de0-aaad-4af5-b870-cd5d891ba0b1",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "673bcd2c-75bf-4ce3-a5e3-5aac0eec45c6",
          TEAM_NAME: "尾矿三班",
          TEAM_CHARGE_USER: "朱春宝",
          FO01_TOTAL: 0,
          FO01_FINISH: 0,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 0,
          FO02_TOTAL: 0,
          FO02_FINISH: 0,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 0,
          FO03_TOTAL: 0,
          FO03_FINISH: 0,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 0,
          FO04_TOTAL: 11,
          FO04_FINISH: 8,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 3,
          STARTTIME: "2014-03-05 10:48:18",
          ENDTIME: "2024-03-05 10:48:18",
          ID: "8911edb1-9d58-4f83-813f-d5f12ae7a667",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "a58b02de-96e7-1b4e-975f-d3bb78f8e6bf",
          TEAM_NAME: "综合回收二班",
          TEAM_CHARGE_USER: "邓能漪",
          FO01_TOTAL: 727,
          FO01_FINISH: 493,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 234,
          FO02_TOTAL: 7888,
          FO02_FINISH: 6704,
          FO02_UNFINISH: 6,
          FO02_OVERTIME: 1178,
          FO03_TOTAL: 7020,
          FO03_FINISH: 5835,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 1185,
          FO04_TOTAL: 97,
          FO04_FINISH: 66,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 31,
          STARTTIME: "2014-03-05 10:48:22",
          ENDTIME: "2024-03-05 10:48:22",
          ID: "1ee0c1ee-1c70-4794-901c-de6b207da8a5",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "8e727caa-6dc8-752a-87c4-1d4a14e48de3",
          TEAM_NAME: "磨重二班",
          TEAM_CHARGE_USER: "马富银",
          FO01_TOTAL: 722,
          FO01_FINISH: 582,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 140,
          FO02_TOTAL: 13404,
          FO02_FINISH: 12340,
          FO02_UNFINISH: 0,
          FO02_OVERTIME: 1064,
          FO03_TOTAL: 12808,
          FO03_FINISH: 11529,
          FO03_UNFINISH: 0,
          FO03_OVERTIME: 1279,
          FO04_TOTAL: 90,
          FO04_FINISH: 54,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 36,
          STARTTIME: "2014-03-05 10:48:15",
          ENDTIME: "2024-03-05 10:48:16",
          ID: "e25a37da-dfea-497b-8bf5-ec316e853463",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          FILTER_TIME: 0,
          DEPARTMENT_NAME: "选矿部",
          TEAM_ID: "93335622-8ab9-57a4-c362-c8fb0ac5c8f5",
          TEAM_NAME: "破碎一班",
          TEAM_CHARGE_USER: "巫雪华",
          FO01_TOTAL: 728,
          FO01_FINISH: 370,
          FO01_UNFINISH: 0,
          FO01_OVERTIME: 358,
          FO02_TOTAL: 16252,
          FO02_FINISH: 11398,
          FO02_UNFINISH: 1,
          FO02_OVERTIME: 4853,
          FO03_TOTAL: 13975,
          FO03_FINISH: 11040,
          FO03_UNFINISH: 1,
          FO03_OVERTIME: 2934,
          FO04_TOTAL: 102,
          FO04_FINISH: 46,
          FO04_UNFINISH: 0,
          FO04_OVERTIME: 56,
          STARTTIME: "2014-03-05 10:48:22",
          ENDTIME: "2024-03-05 10:48:22",
          ID: "ec5e9305-dafd-45ef-9bc5-f3fbfb82a132",
          IS_DELETED: false,
          ORG_ID: "a3dce14a-13d9-d879-d9ab-821d4a3f1f93",
          ENTITY_ORG_TPYE: 0,
          FORM_ID: null,
          FLOW_STATUS: 0,
          FLOW_SEND_STATUS: 0,
          FLOW_ID: null,
          CREATE_TIME: "2024-03-05 10:48:25",
          MODIFY_TIME: "2024-03-05 10:48:25",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
      ],
    });
    //     }
    //   },
    // });
  };
  getCount = () => {
    var orgId = this.props.login ? this.props.login.OrgId : "";
    const jsonTemp = initFilter(orgId);
    // this.props.dispatch({
    //   type: "app/getDataByPost",
    //   payload: jsonTemp,
    //   url: "BI/BIStatiscialAnalysisController/GetTotalCount",
    //   onComplete: (ret) => {
    //     if (ret) {
    //       console.log(ret,'ret')
    let ret = {
      ordinaryCount: 0,
      crucialCount: 0,
      activityCount: 2728,
      postCount: 180197,
      postChangeCount: 105926,
      taskCount: 219,
      shiftMeetingFinishRate: "100",
      postFinishRate: "100",
      postChangeFinishRate: "100",
    };
    let riskLevels = document.getElementById("mainJobPie");
    if (riskLevels) {
      let myChart = echarts.init(riskLevels);
      myChart.setOption({
        backgroundColor: "#FFFFFF",
        title: [
          {
            text: "班前会议完成率",
            bottom: "12%",
            x: "center",
            // borderColor: "#1598FF",
            // borderWidth: 1,
            borderRadius: 15,
            // backgroundColor: "#1598FF",
            padding: [7, 14],
            textStyle: {
              // fontWeight: "bold",
              fontSize: 14,
              color: "#000",
            },
          },
        ],
        angleAxis: {
          show: false,
          max: (100 * 360) / 270, //-45度到225度，二者偏移值是270度除360度
          type: "value",
          startAngle: 225, //极坐标初始角度
          splitLine: {
            show: false,
          },
        },
        barMaxWidth: 10, //圆环宽度
        radiusAxis: {
          show: false,
          type: "category",
        },
        //圆环位置和大小
        polar: {
          center: ["50%", "50%"],
          radius: "120%",
        },
        series: [
          {
            type: "bar",
            data: [
              {
                //上层圆环，显示数据
                value: 95,
                itemStyle: {
                  color: "#1598FF",
                },
              },
            ],
            barGap: "-100%", //柱间距离,上下两层圆环重合
            coordinateSystem: "polar",
            roundCap: true, //顶端圆角
            z: 3, //圆环层级，同zindex
          },
          {
            //下层圆环，显示最大值
            type: "bar",
            data: [
              {
                value: 100,
                itemStyle: {
                  color: "#1598FF",
                  opacity: 0.2,
                  borderWidth: 0,
                },
              },
            ],
            barGap: "-100%",
            coordinateSystem: "polar",
            roundCap: true,
            z: 1,
          },
          //仪表盘
          {
            type: "gauge",
            startAngle: 225, //起始角度，同极坐标
            endAngle: -45, //终止角度，同极坐标
            axisLine: {
              show: false,
            },
            splitLine: {
              show: false,
            },
            axisTick: {
              show: false,
            },
            axisLabel: {
              show: false,
            },
            splitLabel: {
              show: false,
            },
            pointer: {
              // 分隔线
              shadowColor: "auto", //默认透明
              shadowBlur: 5,
              length: "50%",
              width: "1",
            },
            itemStyle: {
              color: "#1598FF",
              borderColor: "#1598FF",
              borderWidth: 2,
            },
            detail: {
              formatter: function (params) {
                return 95 + "%";
              },
              color: "#1598FF",
              fontSize: 20,
              offsetCenter: [0, 80],
            },
            title: {
              show: false,
            },
            data: [
              {
                value: 95,
              },
            ],
          },
          {
            name: "外部刻度",
            type: "gauge",
            //  center: ['20%', '50%'],
            radius: "73%",
            min: 0, //最小刻度
            max: 100, //最大刻度
            splitNumber: 10, //刻度数量
            startAngle: 225,
            endAngle: -45,
            axisLine: {
              show: true,
              lineStyle: {
                width: 1,
                color: [[1, "rgba(0,0,0,0)"]],
              },
            }, //仪表盘轴线
            axisLabel: {
              show: false,
              color: "#4d5bd1",
              distance: 25,
            }, //刻度标签。
            axisTick: {
              show: true,
              splitNumber: 7,
              lineStyle: {
                color: "#C7CBCF", //用颜色渐变函数不起作用
                width: 2,
              },
              length: -8,
            }, //刻度样式
            splitLine: {
              show: false,
              length: -20,
              lineStyle: {
                color: "#C7CBCF", //用颜色渐变函数不起作用
              },
            }, //分隔线样式
            detail: {
              show: false,
            },
            pointer: {
              show: false,
            },
          },
          {
            //指针外环
            type: "pie",
            hoverAnimation: false,
            legendHoverLink: false,
            radius: ["10%", "13%"],
            z: 10,
            label: {
              normal: {
                show: false,
              },
            },
            labelLine: {
              normal: {
                show: false,
              },
            },
            data: [
              {
                value: 100,
                itemStyle: {
                  normal: {
                    color: "#1598FF",
                  },
                },
              },
            ],
          },
          {
            //指针内环
            type: "pie",
            hoverAnimation: false,
            legendHoverLink: false,
            radius: ["0%", "10%"],
            z: 10,
            label: {
              normal: {
                show: false,
              },
            },
            labelLine: {
              normal: {
                show: false,
              },
            },
            data: [
              {
                value: 100,
                itemStyle: {
                  normal: {
                    color: "#FFFFFF",
                  },
                },
              },
            ],
          },
        ],
      });
    }
    let riskLevel1s = document.getElementById("mainJobPie1");
    if (riskLevel1s) {
      let myChart1 = echarts.init(riskLevel1s);
      myChart1.setOption({
        backgroundColor: "#FFFFFF",
        title: [
          {
            text: "岗位当班记录完成率",
            bottom: "12%",
            x: "center",
            // borderColor: "#1598FF",
            // borderWidth: 1,
            borderRadius: 15,
            // backgroundColor: "#1598FF",
            padding: [7, 14],
            textStyle: {
              // fontWeight: "bold",
              fontSize: 14,
              color: "#000",
            },
          },
        ],
        angleAxis: {
          show: false,
          max: (100 * 360) / 270, //-45度到225度，二者偏移值是270度除360度
          type: "value",
          startAngle: 225, //极坐标初始角度
          splitLine: {
            show: false,
          },
        },
        barMaxWidth: 10, //圆环宽度
        radiusAxis: {
          show: false,
          type: "category",
        },
        //圆环位置和大小
        polar: {
          center: ["50%", "50%"],
          radius: "120%",
        },
        series: [
          {
            type: "bar",
            data: [
              {
                //上层圆环，显示数据
                value: 97,
                itemStyle: {
                  color: "#f8a035",
                },
              },
            ],
            barGap: "-100%", //柱间距离,上下两层圆环重合
            coordinateSystem: "polar",
            roundCap: true, //顶端圆角
            z: 3, //圆环层级，同zindex
          },
          {
            //下层圆环，显示最大值
            type: "bar",
            data: [
              {
                value: 100,
                itemStyle: {
                  color: "#f8a035",
                  opacity: 0.2,
                  borderWidth: 0,
                },
              },
            ],
            barGap: "-100%",
            coordinateSystem: "polar",
            roundCap: true,
            z: 1,
          },
          //仪表盘
          {
            type: "gauge",
            startAngle: 225, //起始角度，同极坐标
            endAngle: -45, //终止角度，同极坐标
            axisLine: {
              show: false,
            },
            splitLine: {
              show: false,
            },
            axisTick: {
              show: false,
            },
            axisLabel: {
              show: false,
            },
            splitLabel: {
              show: false,
            },
            pointer: {
              // 分隔线
              shadowColor: "auto", //默认透明
              shadowBlur: 5,
              length: "50%",
              width: "1",
            },
            itemStyle: {
              color: "#f8a035",
              borderColor: "#f8a035",
              borderWidth: 2,
            },
            detail: {
              formatter: function (params) {
                return 97 + "%";
              },
              color: "#f8a035",
              fontSize: 20,
              offsetCenter: [0, 80],
            },
            title: {
              show: false,
            },
            data: [
              {
                value: 97,
              },
            ],
          },
          {
            name: "外部刻度",
            type: "gauge",
            //  center: ['20%', '50%'],
            radius: "73%",
            min: 0, //最小刻度
            max: 100, //最大刻度
            splitNumber: 10, //刻度数量
            startAngle: 225,
            endAngle: -45,
            axisLine: {
              show: true,
              lineStyle: {
                width: 1,
                color: [[1, "rgba(0,0,0,0)"]],
              },
            }, //仪表盘轴线
            axisLabel: {
              show: false,
              color: "#4d5bd1",
              distance: 25,
            }, //刻度标签。
            axisTick: {
              show: true,
              splitNumber: 7,
              lineStyle: {
                color: "#C7CBCF", //用颜色渐变函数不起作用
                width: 2,
              },
              length: -8,
            }, //刻度样式
            splitLine: {
              show: false,
              length: -20,
              lineStyle: {
                color: "#C7CBCF", //用颜色渐变函数不起作用
              },
            }, //分隔线样式
            detail: {
              show: false,
            },
            pointer: {
              show: false,
            },
          },
          {
            //指针外环
            type: "pie",
            hoverAnimation: false,
            legendHoverLink: false,
            radius: ["10%", "13%"],
            z: 10,
            label: {
              normal: {
                show: false,
              },
            },
            labelLine: {
              normal: {
                show: false,
              },
            },
            data: [
              {
                value: 100,
                itemStyle: {
                  normal: {
                    color: "#f8a035",
                  },
                },
              },
            ],
          },
          {
            //指针内环
            type: "pie",
            hoverAnimation: false,
            legendHoverLink: false,
            radius: ["0%", "10%"],
            z: 10,
            label: {
              normal: {
                show: false,
              },
            },
            labelLine: {
              normal: {
                show: false,
              },
            },
            data: [
              {
                value: 100,
                itemStyle: {
                  normal: {
                    color: "#FFFFFF",
                  },
                },
              },
            ],
          },
        ],
      });
    }
    let riskLevel3s = document.getElementById("mainJobPie3");
    if (riskLevel3s) {
      let myChart3 = echarts.init(riskLevel3s);
      myChart3.setOption({
        backgroundColor: "#FFFFFF",
        title: [
          {
            text: "岗位交接班完成率",
            bottom: "12%",
            x: "center",
            // borderColor: "#1598FF",
            // borderWidth: 1,
            borderRadius: 15,
            // backgroundColor: "#1598FF",
            padding: [7, 14],
            textStyle: {
              // fontWeight: "bold",
              fontSize: 14,
              color: "#000",
            },
          },
        ],
        angleAxis: {
          show: false,
          max: (100 * 360) / 270, //-45度到225度，二者偏移值是270度除360度
          type: "value",
          startAngle: 225, //极坐标初始角度
          splitLine: {
            show: false,
          },
        },
        barMaxWidth: 10, //圆环宽度
        radiusAxis: {
          show: false,
          type: "category",
        },
        //圆环位置和大小
        polar: {
          center: ["50%", "50%"],
          radius: "120%",
        },
        series: [
          {
            type: "bar",
            data: [
              {
                //上层圆环，显示数据
                value: 99,
                itemStyle: {
                  color: "#f1516d",
                },
              },
            ],
            barGap: "-100%", //柱间距离,上下两层圆环重合
            coordinateSystem: "polar",
            roundCap: true, //顶端圆角
            z: 3, //圆环层级，同zindex
          },
          {
            //下层圆环，显示最大值
            type: "bar",
            data: [
              {
                value: 100,
                itemStyle: {
                  color: "#f1516d",
                  opacity: 0.2,
                  borderWidth: 0,
                },
              },
            ],
            barGap: "-100%",
            coordinateSystem: "polar",
            roundCap: true,
            z: 1,
          },
          //仪表盘
          {
            type: "gauge",
            startAngle: 225, //起始角度，同极坐标
            endAngle: -45, //终止角度，同极坐标
            axisLine: {
              show: false,
            },
            splitLine: {
              show: false,
            },
            axisTick: {
              show: false,
            },
            axisLabel: {
              show: false,
            },
            splitLabel: {
              show: false,
            },
            pointer: {
              // 分隔线
              shadowColor: "auto", //默认透明
              shadowBlur: 5,
              length: "50%",
              width: "1",
            },
            itemStyle: {
              color: "#f1516d",
              borderColor: "#f1516d",
              borderWidth: 2,
            },
            detail: {
              formatter: function (params) {
                return 99 + "%";
              },
              color: "#f1516d",
              fontSize: 20,
              offsetCenter: [0, 80],
            },
            title: {
              show: false,
            },
            data: [
              {
                value: 99,
              },
            ],
          },
          {
            name: "外部刻度",
            type: "gauge",
            //  center: ['20%', '50%'],
            radius: "73%",
            min: 0, //最小刻度
            max: 100, //最大刻度
            splitNumber: 10, //刻度数量
            startAngle: 225,
            endAngle: -45,
            axisLine: {
              show: true,
              lineStyle: {
                width: 1,
                color: [[1, "rgba(0,0,0,0)"]],
              },
            }, //仪表盘轴线
            axisLabel: {
              show: false,
              color: "#4d5bd1",
              distance: 25,
            }, //刻度标签。
            axisTick: {
              show: true,
              splitNumber: 7,
              lineStyle: {
                color: "#C7CBCF", //用颜色渐变函数不起作用
                width: 2,
              },
              length: -8,
            }, //刻度样式
            splitLine: {
              show: false,
              length: -20,
              lineStyle: {
                color: "#C7CBCF", //用颜色渐变函数不起作用
              },
            }, //分隔线样式
            detail: {
              show: false,
            },
            pointer: {
              show: false,
            },
          },
          {
            //指针外环
            type: "pie",
            hoverAnimation: false,
            legendHoverLink: false,
            radius: ["10%", "13%"],
            z: 10,
            label: {
              normal: {
                show: false,
              },
            },
            labelLine: {
              normal: {
                show: false,
              },
            },
            data: [
              {
                value: 100,
                itemStyle: {
                  normal: {
                    color: "#f1516d",
                  },
                },
              },
            ],
          },
          {
            //指针内环
            type: "pie",
            hoverAnimation: false,
            legendHoverLink: false,
            radius: ["0%", "10%"],
            z: 10,
            label: {
              normal: {
                show: false,
              },
            },
            labelLine: {
              normal: {
                show: false,
              },
            },
            data: [
              {
                value: 100,
                itemStyle: {
                  normal: {
                    color: "#FFFFFF",
                  },
                },
              },
            ],
          },
        ],
      });
    }
    this.setState({
      ordinaryCount: ret.ordinaryCount,
      crucialCount: ret.crucialCount,
      activityCount: ret.activityCount,
      postCount: ret.postCount,
      postChangeCount: ret.postChangeCount,
      taskCount: ret.taskCount,
    });
    //     }
    //   },
    // });
  };
  //
  workTicket = () => {
    let json = initFilter(this.props.login.OrgId, "10", "NUM", "asc");
    // extendRule(json, "DEPARTMENT_NAME", 1,"选矿部");
    // this.props.dispatch({
    //   type: "app/getDataByPost",
    //   url: "BI/BIStatiscialAnalysisController/GetDepartmentCompletionSort",
    //   payload: json,
    //   onlyData: false,
    //   onComplete: (data) => {
    //     if (data && data.IsSuccessful) {
    //       console.log(data);
    let data = {
      IsSuccessful: true,
      Data: [
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "0fe04323-93e3-f2f1-b747-3400584b278c",
          TEAM_NAME: "尾矿班组",
          NUM: 1,
          TEAM_TOTAL_COUNT: 627,
          TEAM_FINISH_COUNT: 627,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 1,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "38d86bb8-3e13-46bf-be30-d65cf3cfe45c",
          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: "2024-04-24 16:57:30",
          MODIFY_TIME: "2024-04-24 16:57:30",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "838567ab-9397-a237-5e1f-de1cdfbaaf8e",
          TEAM_NAME: "磨重三班",
          NUM: 2,
          TEAM_TOTAL_COUNT: 12421,
          TEAM_FINISH_COUNT: 12419,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9998389823685694,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "b41ed322-3c88-468c-af85-31ab10a7e3f2",
          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: "2024-04-24 16:57:30",
          MODIFY_TIME: "2024-04-24 16:57:30",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "8e727caa-6dc8-752a-87c4-1d4a14e48de3",
          TEAM_NAME: "磨重二班",
          NUM: 3,
          TEAM_TOTAL_COUNT: 12087,
          TEAM_FINISH_COUNT: 12085,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9998345329693059,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "94914d74-67c6-4bd9-9379-7352122ef092",
          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: "2024-04-24 16:57:30",
          MODIFY_TIME: "2024-04-24 16:57:30",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "42500418-4036-f500-6924-1ba07e9e0f53",
          TEAM_NAME: "破碎三班",
          NUM: 4,
          TEAM_TOTAL_COUNT: 15816,
          TEAM_FINISH_COUNT: 15813,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9998103186646434,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "65366feb-1c98-4b68-9b9d-56c7d5182fb6",
          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: "2024-04-24 16:57:30",
          MODIFY_TIME: "2024-04-24 16:57:30",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "93335622-8ab9-57a4-c362-c8fb0ac5c8f5",
          TEAM_NAME: "破碎一班",
          NUM: 5,
          TEAM_TOTAL_COUNT: 15268,
          TEAM_FINISH_COUNT: 15264,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9997380141472361,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "51bb1433-d62a-46ba-a683-03a8f1b6179c",
          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: "2024-04-24 16:57:30",
          MODIFY_TIME: "2024-04-24 16:57:30",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "55eca413-a954-7c80-411e-f29a8cd71c93",
          TEAM_NAME: "磨重一班",
          NUM: 6,
          TEAM_TOTAL_COUNT: 12501,
          TEAM_FINISH_COUNT: 12496,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9996000319974402,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "3dbfa3fd-aa4d-4a2d-913b-d533e184ac09",
          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: "2024-04-24 16:57:30",
          MODIFY_TIME: "2024-04-24 16:57:30",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "10541d8a-8951-a80d-9b43-6de969658ee8",
          TEAM_NAME: "精矿烘干班组",
          NUM: 7,
          TEAM_TOTAL_COUNT: 2044,
          TEAM_FINISH_COUNT: 2043,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9995107632093934,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "442fa36b-fb1a-4faa-856b-36685c213490",
          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: "2024-04-24 16:57:30",
          MODIFY_TIME: "2024-04-24 16:57:30",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "f4830475-9145-6e99-2dc4-765e92ad26d6",
          TEAM_NAME: "轨道维护班",
          NUM: 8,
          TEAM_TOTAL_COUNT: 1651,
          TEAM_FINISH_COUNT: 1650,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9993943064809206,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "bf2390bd-8299-47f3-bc45-f4fffcb9878a",
          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: "2024-04-24 16:57:30",
          MODIFY_TIME: "2024-04-24 16:57:30",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
      ],
      TotalCount: 0,
      MessageType: 0,
    };
    this.teamTop = data.Data.length;
    let teamName = [];
    let finishQty = [];
    data.Data.forEach((item) => {
      teamName.push(item.TEAM_NAME);
      let finishData = Number(item.CALC * 100).toFixed(2);
      finishQty.push(finishData);
    });
    let departmentCompletions = document.getElementById("workTicket");
    if (departmentCompletions) {
      let myChart = echarts.init(departmentCompletions);
      myChart.setOption(
        {
          tooltip: {
            trigger: "axis",
            axisPointer: {
              // 坐标轴指示器，坐标轴触发有效
              type: "shadow", // 默认为直线，可选为：'line' | 'shadow'
            },
            formatter: function (param) {
              return (
                param[0].name +
                "<br>" +
                param[0].marker +
                " " +
                param[0].seriesName +
                "：" +
                param[0].value +
                "%"
              );
            },
          },
          grid: {
            top: "2%",
            bottom: -15,
            right: "10%",
            left: "10%",
            containLabel: true,
          },
          xAxis: {
            show: false,
          },
          yAxis: [
            {
              triggerEvent: true,
              show: true,
              inverse: true,
              data: teamName,
              axisLine: {
                show: false,
              },
              splitLine: {
                show: false,
              },
              axisTick: {
                show: false,
              },
              axisLabel: {
                interval: 0,
                color: "#666",
                align: "right",
                margin: 20,
                fontSize: 13,

                rich: {
                  idx0: {
                    color: "#FB375E",
                    backgroundColor: "#FFE8EC",
                    borderRadius: 100,
                    padding: [5, 8],
                  },
                  idx1: {
                    color: "#FF9023",
                    backgroundColor: "#FFEACF",
                    borderRadius: 100,
                    padding: [5, 8],
                  },
                  idx2: {
                    color: "#01B599",
                    backgroundColor: "#E1F7F3",
                    borderRadius: 100,
                    padding: [5, 8],
                  },
                  idx: {
                    color: "#333",
                    borderRadius: 100,
                    padding: [5, 8],
                  },
                  title: {
                    width: 165,
                  },
                },
              },
            },
            {
              triggerEvent: true,
              show: true,
              inverse: true,
              data: finishQty,
              axisLine: {
                show: false,
              },
              splitLine: {
                show: false,
              },
              axisTick: {
                show: false,
              },
              axisLabel: {
                interval: 0,
                color: "#666",
                align: "left",
                margin: 20,
                fontSize: 12,
                formatter: function (value) {
                  return value + "%";
                },
              },
            },
          ],
          series: [
            {
              name: "完成率",
              type: "bar",
              yAxisIndex: 0,
              data: finishQty,
              barWidth: 10,
              itemStyle: {
                color: "#1990FF",
                barBorderRadius: 30,
              },
              formatter: "{value}%",
            },
          ],
        },
        true
      );
    }
    //     }
    //   },
    // });
  };
  workTicket2 = () => {
    let json = initFilter(this.props.login.OrgId, "30", "NUM", "asc");
    // extendRule(json, "DEPARTMENT_NAME", 1,"选矿部");
    // this.props.dispatch({
    //   type: "app/getDataByPost",
    //   url: "BI/BIStatiscialAnalysisController/GetDepartmentCompletionSort",
    //   payload: json,
    //   onlyData: false,
    //   onComplete: (data) => {
    //     if (data && data.IsSuccessful) {
    //       console.log(data);
    let data = {
      IsSuccessful: true,
      Data: [
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "91f40319-fd33-6b72-dfb5-b51b21abac54",
          TEAM_NAME: "生产班",
          NUM: 1,
          TEAM_TOTAL_COUNT: 1889,
          TEAM_FINISH_COUNT: 1889,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 1,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "569e3765-a9f7-4848-8173-5627712c4ed6",
          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: "2024-04-24 16:58:40",
          MODIFY_TIME: "2024-04-24 16:58:40",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "45aba808-c12c-b785-fa09-f9acd9922785",
          TEAM_NAME: "民爆储存库班组",
          NUM: 2,
          TEAM_TOTAL_COUNT: 1438,
          TEAM_FINISH_COUNT: 1438,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 1,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "bc1a5695-82df-489c-a453-76a58073e811",
          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: "2024-04-24 16:58:40",
          MODIFY_TIME: "2024-04-24 16:58:40",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "bcdca284-6373-6862-083e-645030a2315d",
          TEAM_NAME: "维修班组",
          NUM: 3,
          TEAM_TOTAL_COUNT: 1664,
          TEAM_FINISH_COUNT: 1663,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9993990384615384,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "2e9b8133-6de9-4b3a-99e3-db45e1a8d0b7",
          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: "2024-04-24 16:58:40",
          MODIFY_TIME: "2024-04-24 16:58:40",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "c671778d-dd76-080f-51d1-5dc5ca698419",
          TEAM_NAME: "爆破班组",
          NUM: 4,
          TEAM_TOTAL_COUNT: 1365,
          TEAM_FINISH_COUNT: 1364,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9992673992673993,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "800f2948-8e49-4dfc-81bc-ee3ea8049cb8",
          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: "2024-04-24 16:58:40",
          MODIFY_TIME: "2024-04-24 16:58:40",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "db1ccb4a-0ffa-63c9-9384-c3d9139e8c8f",
          TEAM_NAME: "运输一班",
          NUM: 5,
          TEAM_TOTAL_COUNT: 5148,
          TEAM_FINISH_COUNT: 5144,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9992229992229992,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "a14a917d-b57c-4d35-b465-d871d5d18546",
          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: "2024-04-24 16:58:40",
          MODIFY_TIME: "2024-04-24 16:58:40",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "9e171704-f1af-9de4-0287-476216371c16",
          TEAM_NAME: "综合班组",
          NUM: 6,
          TEAM_TOTAL_COUNT: 2110,
          TEAM_FINISH_COUNT: 2107,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9985781990521327,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "a282d555-a7ce-44f9-95bc-ffa88cf1a4df",
          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: "2024-04-24 16:58:40",
          MODIFY_TIME: "2024-04-24 16:58:40",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "8ba1fb97-540b-d451-881a-39f632700975",
          TEAM_NAME: "运输二班",
          NUM: 7,
          TEAM_TOTAL_COUNT: 2763,
          TEAM_FINISH_COUNT: 2756,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9974665218964893,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "efa58df8-4549-4856-aeea-b2fe332d98ea",
          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: "2024-04-24 16:58:40",
          MODIFY_TIME: "2024-04-24 16:58:40",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          DEPARTMENT_ID: null,
          TEAM_ID: "0270fa34-4849-4429-35e8-5fb8b98c9fc9",
          TEAM_NAME: "金宇现场",
          NUM: 8,
          TEAM_TOTAL_COUNT: 4644,
          TEAM_FINISH_COUNT: 4627,
          POST_TOTAL_COUNT: 0,
          POST_FINISH_COUNT: 0,
          HANDOVER_TOTAL_COUNT: 0,
          HANDOVER_FINISH_COUNT: 0,
          ACTIVITY_TOTAL_COUNT: 0,
          ACTIVITY_FINISH_COUNT: 0,
          START_TIME: null,
          END_TIME: null,
          CALC: 0.9963393626184324,
          TEAM_ONTIME_FINISH_COUNT: 0,
          POST_ONTIME_FINISH_COUNT: 0,
          HANDOVER_ONTIME_FINISH_COUNT: 0,
          ACTIVITY_ONTIME_FINISH_COUNT: 0,
          CALC_LICENSE: 0,
          ID: "9c774c0d-c43c-4979-bf1d-f3a107075958",
          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: "2024-04-24 16:58:40",
          MODIFY_TIME: "2024-04-24 16:58:40",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
      ],
      TotalCount: 0,
      MessageType: 0,
    };
    this.teamTop = data.Data.length;
    let teamName = [];
    let finishQty = [];
    data.Data.forEach((item) => {
      teamName.push(item.TEAM_NAME);
      let finishData = Number(item.CALC * 100).toFixed(2);
      finishQty.push(finishData);
    });
    let departmentCompletions = document.getElementById("workTicket2");
    if (departmentCompletions) {
      let myChart = echarts.init(departmentCompletions);
      myChart.setOption(
        {
          tooltip: {
            trigger: "axis",
            axisPointer: {
              // 坐标轴指示器，坐标轴触发有效
              type: "shadow", // 默认为直线，可选为：'line' | 'shadow'
            },
            formatter: function (param) {
              return (
                param[0].name +
                "<br>" +
                param[0].marker +
                " " +
                param[0].seriesName +
                "：" +
                param[0].value +
                "%"
              );
            },
          },
          grid: {
            top: "2%",
            bottom: -15,
            right: "10%",
            left: "10%",
            containLabel: true,
          },
          xAxis: {
            show: false,
          },
          yAxis: [
            {
              triggerEvent: true,
              show: true,
              inverse: true,
              data: teamName,
              axisLine: {
                show: false,
              },
              splitLine: {
                show: false,
              },
              axisTick: {
                show: false,
              },
              axisLabel: {
                interval: 0,
                color: "#666",
                align: "right",
                margin: 20,
                fontSize: 13,

                rich: {
                  idx0: {
                    color: "#FB375E",
                    backgroundColor: "#FFE8EC",
                    borderRadius: 100,
                    padding: [5, 8],
                  },
                  idx1: {
                    color: "#FF9023",
                    backgroundColor: "#FFEACF",
                    borderRadius: 100,
                    padding: [5, 8],
                  },
                  idx2: {
                    color: "#01B599",
                    backgroundColor: "#E1F7F3",
                    borderRadius: 100,
                    padding: [5, 8],
                  },
                  idx: {
                    color: "#333",
                    borderRadius: 100,
                    padding: [5, 8],
                  },
                  title: {
                    width: 165,
                  },
                },
              },
            },
            {
              triggerEvent: true,
              show: true,
              inverse: true,
              data: finishQty,
              axisLine: {
                show: false,
              },
              splitLine: {
                show: false,
              },
              axisTick: {
                show: false,
              },
              axisLabel: {
                interval: 0,
                color: "#666",
                align: "left",
                margin: 20,
                fontSize: 12,
                formatter: function (value) {
                  return value + "%";
                },
              },
            },
          ],
          series: [
            {
              name: "完成率",
              type: "bar",
              yAxisIndex: 0,
              data: finishQty,
              barWidth: 10,
              itemStyle: {
                color: "#1990FF",
                barBorderRadius: 30,
              },
              formatter: "{value}%",
            },
          ],
        },
        true
      );
    }
    //     }
    //   },
    // });
  };

  //关键许可工作票（饼图）
  mainJobPie2 = () => {
    let json = initFilter(this.props.login.OrgId);
    // this.props.dispatch({
    //   type: "app/getDataByPost",
    //   url: "BI/BIStatiscialAnalysisController/GetLicenseJob",
    //   payload: json,
    //   onlyData: false,
    //   onComplete: (data) => {
    //     if (data && data.IsSuccessful) {
    //       console.log(data);
    let data = {
      IsSuccessful: true,
      Data: [
        {
          RISK_LEVEL: "一级审批",
          COUNT: 0,
          ID: "c50fa285-089b-495f-b8fc-5c6c7c0fc6cf",
          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: "2024-04-24 16:59:48",
          MODIFY_TIME: "2024-04-24 16:59:48",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          RISK_LEVEL: "二级审批",
          COUNT: 0,
          ID: "e81d216f-e96a-4a11-80d7-d68cc5fa9e33",
          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: "2024-04-24 16:59:48",
          MODIFY_TIME: "2024-04-24 16:59:48",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          RISK_LEVEL: "三级审批",
          COUNT: 0,
          ID: "6422fffb-c9c2-4be4-9080-c1f4a0f47fa3",
          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: "2024-04-24 16:59:48",
          MODIFY_TIME: "2024-04-24 16:59:48",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          RISK_LEVEL: "四级审批",
          COUNT: 0,
          ID: "51160f9a-714f-43ff-bb39-f905b090ab28",
          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: "2024-04-24 16:59:48",
          MODIFY_TIME: "2024-04-24 16:59:48",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
        {
          RISK_LEVEL: "无审批层级",
          COUNT: 0,
          ID: "f3bdcbf0-d882-4635-8ac3-25a8525ec1a2",
          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: "2024-04-24 16:59:48",
          MODIFY_TIME: "2024-04-24 16:59:48",
          CREATER_ID: null,
          MODIFIER_ID: null,
          TaskID: "00000000-0000-0000-0000-000000000000",
        },
      ],
      TotalCount: 0,
      MessageType: 0,
    };
    let riskLevel = [];
    let showData = [];
    let color = ["#C00000", "#FFC000", "#FFFF00", "#00B0F0", "#00B0C0"];
    data.Data.forEach((item) => {
      riskLevel.push(item.RISK_LEVEL);
      showData.push({ value: item.COUNT, name: item.RISK_LEVEL });
    });
    let riskLevels = document.getElementById("mainJobPie2");
    if (riskLevels) {
      let myChart = echarts.init(riskLevels);
      myChart.setOption({
        color: ["#c92a2a", "#ffa94d", "#ffe066", "#4285F4", "#fa8a89"],
        title: [
          {
            text: "6270",
            x: "24%",
            y: "40%",
            textStyle: {
              fontSize: 26,
              fontWeight: "normal",
              color: ["#333"],
            },
          },
          {
            text: "关键作业/许可作业",
            x: "20%",
            y: "55%",
            textStyle: {
              color: "#666",
              fontSize: 12,
            },
          },
        ],
        tooltip: {
          trigger: "item",
          formatter: "{b}:({d}%)",
        },
        legend: {
          icon: "pin",
          orient: "vartical",
          // x: "right",
          // top: "18%",
          x: "60%",
          y: "center",
          // bottom: "20%",
          data: riskLevel,
          // itemWidth: 20,
          // itemHeight: 14,
          itemGap: 25,
          formatter: function (name) {
            //通过name获取到数组对象中的单个对象
            let singleData = showData.filter(function (item) {
              return item.name == name;
            });
            let countAll = 0;
            showData.map((item) => {
              countAll = countAll + item.value;
            });

            return (
              name +
              "  |  " +
              singleData[0].value +
              "   |   " +
              Number((singleData[0].value / countAll) * 100).toFixed(2) +
              "%"
            );
          },
        },
        grid: {
          left: 30,
          containLabel: true,
          bottom: 10,
          top: 10,
          right: 30,
        },
        series: [
          {
            name: "访问来源",
            type: "pie",
            clockwise: false,
            // minAngle: 20,
            avoidLabelOverlap: false,
            radius: ["50%", "65%"],
            center: ["30%", "50%"],
            itemStyle: {
              //图形样式
              normal: {
                borderColor: "#ffffff",
                borderWidth: 4,
                padding: "0 20px",
                borderRadius: 50,
              },
            },
            label: {
              show: false,
            },
            // color: color,
            data: showData,
          },
        ],
      });
    }
    //     }
    //   },
    // });
  };
  compare = (val1, val2) => {
    return val2.NUM - val1.NUM;
  };
  closeModal = () => {
    // 退出弹窗
    this.clearData();
  };
  clearData = () => {
    let newtmpData = { ...this.state.tmpData };
    newtmpData["data"].id = "";
    newtmpData["data"].homeReload = false;
    newtmpData.formCode = "";
    this.setState({
      visible: false,
      tmpData: newtmpData,
    });
  };
  handleCancel = () => {
    // 退出弹窗
    this.clearData();
  };
  render() {
    return (
      <div>
        {/* className='route-home' ,boxShadow:'inset 0 0 10px #ccc' */}
        <div
          style={{
            backgroundColor: "white",
            width: "1200px",
            top: "0",
            bottom: "0",
            left: "0",
            right: "0",
            margin: "auto",
            borderStyle: "solid",
            borderColor: "#ccc",
            borderWidth: "1px",
          }}
        >
          <Modal
            visible={this.state.visible}
            title={this.state.noticeTitle}
            maskClosable={false}
            onCancel={this.handleCancel}
            footer={null}
            className="antd-modal-fullscreen"
            closeModal={this.closeModal}
            // forceRender={true}
          >
            <FormPage {...this.state.tmpData} />
          </Modal>
          {/* {this.props.data.name} */}
          <h1
            style={{
              textAlign: "center",
              marginTop: "30px",
              fontWeight: "bold",
            }}
          >
            行洛坑钨矿-作业现场管理统计分析
          </h1>
          <br></br>
          <div
            style={{
              display: "flex",
              alignItems: "center",
              justifyContent: "center",
              marginTop: "20px",
              //   marginBottom: "20px",
            }}
          >
            <div className={styles.menuPie}>
              <li>
                一般作业活动记录
                <br />
                <div className={styles.dataStyle}>
                  {this.state.ordinaryCount}
                </div>
              </li>
              <Divider
                type="vertical"
                style={{ width: "1px", height: "70px", margin: "9px 0px" }}
              />
              <li>
                许可作业活动记录
                <br />
                <div className={styles.dataStyle1}>
                  {this.state.crucialCount}
                </div>
              </li>
              <Divider
                type="vertical"
                style={{ width: "1px", height: "70px", margin: "9px 0px" }}
              />
              <li>
                班组安全活动
                <br />
                <div className={styles.dataStyle3}>
                  {this.state.activityCount}
                </div>
              </li>
              <Divider
                type="vertical"
                style={{ width: "1px", height: "70px", margin: "9px 0px" }}
              />
              <li>
                岗位当班记录
                <br />
                <div className={styles.dataStyle2}>{this.state.postCount}</div>
                {/* <a href="#" style={{ color: "red" }}> */}
                {/* </a> */}
              </li>
              <Divider
                type="vertical"
                style={{ width: "1px", height: "70px", margin: "9px 0px" }}
              />
              <li>
                岗位交接班记录
                <br />
                <div className={styles.dataStyle3}>
                  {this.state.postChangeCount}
                </div>
                {/* <a href="#" style={{ color: "red" }}> */}
                {/* </a> */}
              </li>
              <Divider
                type="vertical"
                style={{ width: "1px", height: "70px", margin: "9px 0px" }}
              />
              <li>
                作业任务库
                <br />
                <div className={styles.dataStyle3}>{this.state.taskCount}</div>
              </li>
            </div>
          </div>
          <hr
            style={{
              border: "1px dashed #ccc",
              marginBottom: "20px",
              marginTop: "20px",
            }}
          ></hr>
          <Row
            style={{
              display: "flex",
              alignItems: "center",
              justifyContent: "center",
            }}
          >
            <div
              style={{
                display: "flex",
                justifyContent: "space-around",
                alignItems: "center",
                width: "1100px",
              }}
            >
              <Col span={12}>
                <Col span={8}>
                  <div
                    id="mainJobPie"
                    style={{ width: "100%", height: "350px" }}
                  ></div>
                </Col>
                <Col span={8}>
                  <div
                    id="mainJobPie1"
                    style={{ width: "100%", height: "350px" }}
                  ></div>
                </Col>
                <Col span={8}>
                  <div
                    id="mainJobPie3"
                    style={{ width: "100%", height: "350px" }}
                  ></div>
                </Col>
              </Col>

              <Col span={12}>
                <div
                  id="mainJobPie2"
                  style={{ width: "100%", height: "350px" }}
                ></div>
              </Col>
            </div>
          </Row>
          <hr
            style={{
              border: "1px dashed #ccc",
              marginBottom: "20px",
              marginTop: "20px",
            }}
          ></hr>
          <Row
            style={{
              display: "flex",
              alignItems: "center",
              justifyContent: "center",
            }}
          >
            <div
              style={{
                display: "flex",
                justifyContent: "space-around",
                alignItems: "center",
                width: "1100px",
              }}
            >
              <Col span={12} style={{ borderRight: "1px solid #e7e6e4" }}>
                <h3 style={{ textAlign: "center", fontWeight: "bold" }}>
                  矿山部-班组及时完成率排名(%)
                </h3>
                <div
                  id="workTicket2"
                  style={{
                    height: "350px",
                    // marginLeft: "40px",
                    // marginRight: "10px",
                    backgroundColor: "white",
                  }}
                ></div>
              </Col>
              <Col span={12}>
                <h3 style={{ textAlign: "center", fontWeight: "bold" }}>
                  选矿部-班组及时完成率排名(%)
                </h3>
                <div
                  id="workTicket"
                  style={{
                    height: "350px",
                    // marginLeft: "40px",
                    // marginRight: "10px",
                    backgroundColor: "white",
                  }}
                ></div>
              </Col>
            </div>
            {/* <Col span={11}>
              <h3 style={{ textAlign: "center", fontWeight: "bold" }}>
                关键作业/许可作业
              </h3>
              <div
                id="mainJobPie2"
                style={{
                  width: "560px",
                  height: "350px",
                  marginLeft: "20px",
                  backgroundColor: "white",
                  borderStyle: "solid",
                  borderColor: "#ccc",
                  borderWidth: "1px",
                }}
              ></div>
            </Col> */}
          </Row>
          <hr
            style={{
              border: "1px dashed #ccc",
              marginBottom: "20px",
              marginTop: "20px",
            }}
          ></hr>
          <Row
            style={{
              display: "flex",
              alignItems: "center",
              justifyContent: "center",
              margin: "10px 0px",
            }}
          >
            <div
              style={{
                display: "flex",
                justifyContent: "space-around",
                alignItems: "center",
                width: "1000px",
              }}
            >
              <Table
                style={{
                  width: "100%",
                  // marginLeft: "20px",
                  textAlign: "center",
                }}
                // scroll={{ y: 400 }}
                dataSource={this.state.retData}
                columns={this.state.columns}
                pagination={false}
                loading={false}
                size="small"
                bordered
              />
            </div>
          </Row>
        </div>
      </div>
    );
  }
}
export default connect(({ login, app }) => ({ login, app }))(
  BI009FormRunAnalysis
);
