|  | @@ -2,7 +2,7 @@ import React, { Component } from "react";
 | 
	
		
			
				|  |  |  import ContentWrapper from "@/components/Layout/ContentWrapper";
 | 
	
		
			
				|  |  |  import { Row, Col } from "reactstrap";
 | 
	
		
			
				|  |  |  import { getPelaporan } from "@/actions/pelaporan";
 | 
	
		
			
				|  |  | -import { getGraph, getExcel } from "@/actions/graph";
 | 
	
		
			
				|  |  | +import { getGraph, getExcel,getlaporanselesai } from "@/actions/graph";
 | 
	
		
			
				|  |  |  import CaseProgress from "@/components/PelaporanTuntas/CaseProgress";
 | 
	
		
			
				|  |  |  import TableLaporan from "@/components/PelaporanTuntas/TableLaporan";
 | 
	
		
			
				|  |  |  import { connect } from "react-redux";
 | 
	
	
		
			
				|  | @@ -18,14 +18,19 @@ class PelaporanTuntas extends Component {
 | 
	
		
			
				|  |  |              pelaporan: {},
 | 
	
		
			
				|  |  |              graph: {},
 | 
	
		
			
				|  |  |              tahun: new Date().getFullYear(),
 | 
	
		
			
				|  |  | +            laporanSelesai: {}
 | 
	
		
			
				|  |  |          };
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      componentDidMount = async () => {
 | 
	
		
			
				|  |  |          const { token } = this.props;
 | 
	
		
			
				|  |  | +        let laporanSelesai = await getlaporanselesai(token);
 | 
	
		
			
				|  |  | +        laporanSelesai = {...laporanSelesai, data: {
 | 
	
		
			
				|  |  | +            ...laporanSelesai.data, laporan: [...laporanSelesai.data.laporan, ...laporanSelesai.data.sanksi], sanksi: null
 | 
	
		
			
				|  |  | +        }}
 | 
	
		
			
				|  |  |          const pelaporan = await getPelaporan(token, { jadwal: true, aktif: false });
 | 
	
		
			
				|  |  |          const graph = await getGraph(this.props.token, { evaluasi: true, listJadwal: true, aktif: false });
 | 
	
		
			
				|  |  | -        this.setState({ pelaporan, graph });
 | 
	
		
			
				|  |  | +        this.setState({ pelaporan, graph, laporanSelesai });
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      nextButton = async () => {
 | 
	
	
		
			
				|  | @@ -50,7 +55,7 @@ class PelaporanTuntas extends Component {
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      render() {
 | 
	
		
			
				|  |  | -        const { pelaporan, graph } = this.state;
 | 
	
		
			
				|  |  | +        const { pelaporan, graph, laporanSelesai } = this.state;
 | 
	
		
			
				|  |  |          return (
 | 
	
		
			
				|  |  |              <ContentWrapper>
 | 
	
		
			
				|  |  |                  <div className="content-heading">
 | 
	
	
		
			
				|  | @@ -59,8 +64,8 @@ class PelaporanTuntas extends Component {
 | 
	
		
			
				|  |  |                      </span>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  |                  <Row>
 | 
	
		
			
				|  |  | -                    <Col lg="4">{graph?.data ? <CaseProgress data={graph.data} nextButton={this.nextButton} prevButton={this.prevButton} tahun={this.state.tahun} excel={this.excel} /> : <Loader />}</Col>
 | 
	
		
			
				|  |  | -                    <Col lg="8">{pelaporan?.data ? <TableLaporan status noBy listData={pelaporan.data} to="/app/tuntas/detail" linkName="Detail" /> : <Loader />}</Col>
 | 
	
		
			
				|  |  | +                    <Col lg="4">{laporanSelesai?.data ? <CaseProgress data={laporanSelesai.data} nextButton={this.nextButton} prevButton={this.prevButton} tahun={this.state.tahun} excel={this.excel} /> : <Loader />}</Col>
 | 
	
		
			
				|  |  | +                    <Col lg="8">{laporanSelesai?.data?.laporan ? <TableLaporan status noBy listData={laporanSelesai.data.laporan} to="/app/tuntas/detail" linkName="Detail" /> : <Loader />}</Col>
 | 
	
		
			
				|  |  |                  </Row>
 | 
	
		
			
				|  |  |              </ContentWrapper>
 | 
	
		
			
				|  |  |          );
 |