|
|
@@ -10,7 +10,7 @@ import ChartData from "@/components/Riwayat/ChartData";
|
|
|
import ChartDataBar from "@/components/Riwayat/ChartDataBar";
|
|
|
import Maps from "@/components/Riwayat/Maps"
|
|
|
import TableRiwayatt from "../../../components/Riwayat/TableRiwayatt";
|
|
|
-import TableRadarr from "../../../components/Riwayat/TableRadarr";
|
|
|
+import TableRadar from "../../../components/Riwayat/TableRadar";
|
|
|
import { getjumlahStatusLaporan } from "../../../actions/graph";
|
|
|
import ChartRadarB from "../../../components/Riwayat/ChartRadarB";
|
|
|
import ChartRadarA from "../../../components/Riwayat/ChartRadarA";
|
|
|
@@ -37,6 +37,7 @@ class Riwayat extends Component {
|
|
|
const { token } = this.props;
|
|
|
const jumlahStatusLaporan = await getjumlahStatusLaporan(token);
|
|
|
this.setState({ jumlahStatusLaporan });
|
|
|
+ console.log(jumlahStatusLaporan)
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -61,116 +62,9 @@ class Riwayat extends Component {
|
|
|
<ChartRadarB />
|
|
|
</Col>
|
|
|
<Col lg="12">
|
|
|
- {/* {jumlahStatusLaporan?.data ? <TableRadarr listData={jumlahStatusLaporan.data} to="/app/riwayat/detail" /> : <Loader />} */}
|
|
|
- <Card className="card-default">
|
|
|
- <CardBody>
|
|
|
- <Table bordered responsive>
|
|
|
- <thead>
|
|
|
- <tr >
|
|
|
- <th>Wilayah LLDikti\Menu</th>
|
|
|
- <th style={{
|
|
|
- backgroundColor: '#80b1ff',
|
|
|
- color: "black",
|
|
|
- }}>Penjadwalan Evaluasi</th>
|
|
|
- <th style={{
|
|
|
- backgroundColor: '#de8383',
|
|
|
- color: "black",
|
|
|
- }}>Pemeriksaan</th>
|
|
|
- <th style={{
|
|
|
- backgroundColor: '#fdda80',
|
|
|
- color: "black",
|
|
|
- }}>Sanksi</th>
|
|
|
- <th style={{
|
|
|
- backgroundColor: '#cfab80',
|
|
|
- color: "black",
|
|
|
- }}>Keberatan</th>
|
|
|
- <th style={{
|
|
|
- backgroundColor: '#ef90df',
|
|
|
- color: "black",
|
|
|
- }}>Banding</th>
|
|
|
- <th style={{
|
|
|
- backgroundColor: '#80df89',
|
|
|
- color: "black",
|
|
|
- }}>Pemantauan Perbaikan</th>
|
|
|
- <th style={{
|
|
|
- backgroundColor: '#a3d4d1',
|
|
|
- color: "black",
|
|
|
- }}>Pencabutan Sanksi</th>
|
|
|
- <th style={{
|
|
|
- backgroundColor: '#a3d4d1',
|
|
|
- color: "black",
|
|
|
- }}>Lihat laporan</th>
|
|
|
- {/* <th style={{
|
|
|
- backgroundColor: '#a3d4d1',
|
|
|
- color: "black",
|
|
|
- }}>list laporan</th> */}
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- {jumlahStatusLaporan.data && jumlahStatusLaporan.data.map((data) => {
|
|
|
- return (
|
|
|
- <tr key={data.id}>
|
|
|
- <td>{data.pembina.name}</td>
|
|
|
- <td style={{
|
|
|
- backgroundColor: '#80b1ff',
|
|
|
- color: "black",
|
|
|
- textAlign: "center",
|
|
|
- }}>{data.jumlah_jadwal_evaluasi}</td>
|
|
|
- <td style={{
|
|
|
- backgroundColor: '#de8383',
|
|
|
- color: "black",
|
|
|
- textAlign: "center",
|
|
|
- }}>{data.jumlah_pemeriksaan}</td>
|
|
|
- <td style={{
|
|
|
- backgroundColor: '#fdda80',
|
|
|
- color: "black",
|
|
|
- textAlign: "center",
|
|
|
- }}>{data.jumlah_sanksi}</td>
|
|
|
- <td style={{
|
|
|
- backgroundColor: '#cfab80',
|
|
|
- color: "black",
|
|
|
- textAlign: "center",
|
|
|
- }}>{data.jumlah_keberatan}</td>
|
|
|
- <td style={{
|
|
|
- backgroundColor: '#ef90df',
|
|
|
- color: "black",
|
|
|
- textAlign: "center",
|
|
|
- }}>{data.jumlah_banding}</td>
|
|
|
- <td style={{
|
|
|
- backgroundColor: '#80df89',
|
|
|
- color: "black",
|
|
|
- textAlign: "center",
|
|
|
- }}>{data.jumlah_pemantauan_perbaikan}</td>
|
|
|
- <td style={{
|
|
|
- backgroundColor: '#a3d4d1',
|
|
|
- color: "black",
|
|
|
- textAlign: "center",
|
|
|
- }}>{data.jumlah_pencabutan_sanksi}
|
|
|
- </td>
|
|
|
-
|
|
|
- <td style={{
|
|
|
- backgroundColor: '#a3d4d1',
|
|
|
- color: "black",
|
|
|
- textAlign: "center",
|
|
|
- }}><div className="ml-auto">
|
|
|
- <Button className="color-3e3a8e" color size="sm" onClick={(e) => this.handleClick(e, data.pembina.id)}>
|
|
|
- <span className="font-color-white">
|
|
|
- View
|
|
|
- </span>
|
|
|
- </Button>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
-
|
|
|
- </tr>)
|
|
|
- })}
|
|
|
- </Table>
|
|
|
- </CardBody>
|
|
|
- </Card>
|
|
|
+ {jumlahStatusLaporan?.data ? <TableRadar listData={jumlahStatusLaporan.data} to="/app/riwayat/detail" jadwal="/app/riwayat/penjadwalan" pemeriksaan="/app/riwayat/pemeriksaan" sanksi="/app/riwayat/sanksi" keberatan="/app/riwayat/keberatan" banding="/app/riwayat/banding" perbaikan="/app/riwayat/perbaikan" cabutSanksi="/app/riwayat/cabutSanksi" linkName="Lihat" /> : <Loader />}
|
|
|
</Col>
|
|
|
- {/* <Col lg="12">
|
|
|
- {jumlahStatusLaporan?.data ? <TableRadar listData={jumlahStatusLaporan.data} /> : <Loader />}
|
|
|
- </Col> */}
|
|
|
<ChartData />
|
|
|
- {/* <TableRiwayat /> */}
|
|
|
<Col lg="12">
|
|
|
<TableRiwayatt />
|
|
|
</Col>
|