remove phk
This commit is contained in:
parent
e95d919308
commit
203c90be08
|
@ -1 +1,2 @@
|
||||||
NEXT_PUBLIC_API_URL="http://localhost:8080"
|
# NEXT_PUBLIC_API_URL="http://localhost:8080"
|
||||||
|
NEXT_PUBLIC_API_URL="https://erp.julongindonesia.com:8443/api"
|
Binary file not shown.
Before Width: | Height: | Size: 14 MiB |
Binary file not shown.
After Width: | Height: | Size: 5.3 MiB |
|
@ -24,7 +24,6 @@ export default function KaryawanPage() {
|
||||||
acc.push({type: "sp1", count: curr.sp1});
|
acc.push({type: "sp1", count: curr.sp1});
|
||||||
acc.push({type: "sp2", count: curr.sp2});
|
acc.push({type: "sp2", count: curr.sp2});
|
||||||
acc.push({type: "sp3", count: curr.sp3});
|
acc.push({type: "sp3", count: curr.sp3});
|
||||||
acc.push({type: "phk", count: curr.phk});
|
|
||||||
return acc;
|
return acc;
|
||||||
}, [] as {type: string; count: number}[]);
|
}, [] as {type: string; count: number}[]);
|
||||||
//add total
|
//add total
|
||||||
|
@ -97,12 +96,11 @@ export default function KaryawanPage() {
|
||||||
<div className="col-span-8 bg-white rounded-lg py-4 pl-4 max-h-[420px] flex flex-col">
|
<div className="col-span-8 bg-white rounded-lg py-4 pl-4 max-h-[420px] flex flex-col">
|
||||||
<div className="text-xl font-bold">Ranking (Top 10) Total Penjatuhan Sanksi Setiap Perusahaan</div>
|
<div className="text-xl font-bold">Ranking (Top 10) Total Penjatuhan Sanksi Setiap Perusahaan</div>
|
||||||
<div className="flex-1 min-h-[300px] flex justify-center items-center flex-col">
|
<div className="flex-1 min-h-[300px] flex justify-center items-center flex-col">
|
||||||
<BarChart className="w-full" dataset={[...sanctionSummary ? sanctionSummary.slice().sort((a, b) => b.st + b.sp1 + b.sp2 + b.sp3 + b.phk - a.st - a.sp1 - a.sp2 - a.sp3 - a.phk).slice(0, 10) : []]} series={[
|
<BarChart className="w-full" dataset={[...sanctionSummary ? sanctionSummary.slice().sort((a, b) => b.st + b.sp1 + b.sp2 + b.sp3 - a.st - a.sp1 - a.sp2 - a.sp3).slice(0, 10) : []]} series={[
|
||||||
{dataKey: "st", label: "ST", color: "#F5C322"},
|
{dataKey: "st", label: "ST", color: "#F5C322"},
|
||||||
{dataKey: "sp1", label: "SP1", color: "#F3832D"},
|
{dataKey: "sp1", label: "SP1", color: "#F3832D"},
|
||||||
{dataKey: "sp2", label: "SP2", color: "#F6CBAB"},
|
{dataKey: "sp2", label: "SP2", color: "#F6CBAB"},
|
||||||
{dataKey: "sp3", label: "SP3", color: "#E65551"},
|
{dataKey: "sp3", label: "SP3", color: "#E65551"}
|
||||||
{dataKey: "phk", label: "PHK", color: "#D32F2F"}
|
|
||||||
]} xAxis={[
|
]} xAxis={[
|
||||||
{dataKey: "organization_code", label: "Nama Perusahaan", scaleType: "band", valueFormatter: (v, context) => context.location === "tooltip" ? sanctionSummary?.find(e => e.organization_code === v)?.organization_name : v}
|
{dataKey: "organization_code", label: "Nama Perusahaan", scaleType: "band", valueFormatter: (v, context) => context.location === "tooltip" ? sanctionSummary?.find(e => e.organization_code === v)?.organization_name : v}
|
||||||
]} />
|
]} />
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"use client"
|
"use client"
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import background from "../../../public/images/background.jpg";
|
import background from "../../../public/images/background.png";
|
||||||
import loginImg from "../../../public/images/logo-login.png";
|
import loginImg from "../../../public/images/logo-login.png";
|
||||||
import midsuit from "../../../public/images/midsuit-login.png";
|
import midsuit from "../../../public/images/midsuit-login.png";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
|
Loading…
Reference in New Issue