add per page 50 and add some column onn laporan pimpinan
This commit is contained in:
@@ -30,7 +30,6 @@ class BigdataResume {
|
||||
|
||||
initTableDataSettings() {
|
||||
let tableContainer = document.getElementById("table-bigdata-resumes");
|
||||
// Create a new Grid.js instance only if it doesn't exist
|
||||
this.table = new Grid({
|
||||
columns: [
|
||||
{ name: "ID" },
|
||||
@@ -46,13 +45,19 @@ class BigdataResume {
|
||||
{ name: "Total Non Usaha" },
|
||||
{ name: "Jumlah Tata Ruang" },
|
||||
{ name: "Total Tata Ruang" },
|
||||
{ name: "Jumlah Menunggu Klik DPMPTSP" },
|
||||
{ name: "Total Menunggu Klik DPMPTSP" },
|
||||
{ name: "Jumlah Realisasi Terbit PBG" },
|
||||
{ name: "Total Realisasi Terbit PBG" },
|
||||
{ name: "Jumlah Proses Dinas Teknis" },
|
||||
{ name: "Total Proses Dinas Teknis" },
|
||||
{
|
||||
name: "Created",
|
||||
attributes: { style: "width: 200px; white-space: nowrap;" }, // Set width dynamically
|
||||
},
|
||||
],
|
||||
pagination: {
|
||||
limit: 15,
|
||||
limit: 50,
|
||||
server: {
|
||||
url: (prev, page) =>
|
||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||
@@ -74,8 +79,8 @@ class BigdataResume {
|
||||
.getAttribute("content")}`,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
then: (data) =>
|
||||
data.data.map((item) => [
|
||||
then: (data) => {
|
||||
return data.data.map((item) => [
|
||||
item.id,
|
||||
item.potention_count,
|
||||
addThousandSeparators(item.potention_sum),
|
||||
@@ -89,8 +94,19 @@ class BigdataResume {
|
||||
addThousandSeparators(item.non_business_sum),
|
||||
item.spatial_count,
|
||||
addThousandSeparators(item.spatial_sum),
|
||||
item.waiting_click_dpmptsp_count,
|
||||
addThousandSeparators(item.waiting_click_dpmptsp_sum),
|
||||
item.issuance_realization_pbg_count,
|
||||
addThousandSeparators(
|
||||
item.issuance_realization_pbg_sum
|
||||
),
|
||||
item.process_in_technical_office_count,
|
||||
addThousandSeparators(
|
||||
item.process_in_technical_office_sum
|
||||
),
|
||||
moment(item.created_at).format("YYYY-MM-DD H:mm:ss"),
|
||||
]),
|
||||
]);
|
||||
},
|
||||
total: (data) => data.total,
|
||||
},
|
||||
}).render(tableContainer);
|
||||
|
||||
@@ -64,7 +64,7 @@ class BusinessIndustries {
|
||||
},
|
||||
],
|
||||
pagination: {
|
||||
limit: 15,
|
||||
limit: 50,
|
||||
server: {
|
||||
url: (prev, page) =>
|
||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||
|
||||
@@ -53,7 +53,7 @@ class Customers {
|
||||
},
|
||||
],
|
||||
pagination: {
|
||||
limit: 15,
|
||||
limit: 50,
|
||||
server: {
|
||||
url: (prev, page) =>
|
||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||
|
||||
@@ -31,7 +31,7 @@ class UsersTable {
|
||||
},
|
||||
],
|
||||
pagination: {
|
||||
limit: 15,
|
||||
limit: 50,
|
||||
server: {
|
||||
url: (prev, page) =>
|
||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||
|
||||
@@ -83,7 +83,7 @@ class Menus {
|
||||
},
|
||||
],
|
||||
pagination: {
|
||||
limit: 15,
|
||||
limit: 50,
|
||||
server: {
|
||||
url: (prev, page) =>
|
||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||
|
||||
@@ -52,7 +52,7 @@ class Roles {
|
||||
},
|
||||
],
|
||||
pagination: {
|
||||
limit: 15,
|
||||
limit: 50,
|
||||
server: {
|
||||
url: (prev, page) =>
|
||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||
|
||||
@@ -26,7 +26,7 @@ class SyncronizeTask {
|
||||
},
|
||||
},
|
||||
pagination: {
|
||||
limit: 15,
|
||||
limit: 50,
|
||||
server: {
|
||||
url: (prev, page) =>
|
||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||
|
||||
Reference in New Issue
Block a user