add per page 50 and add some column onn laporan pimpinan
This commit is contained in:
@@ -159,7 +159,7 @@ class BigDataResumeController extends Controller
|
|||||||
$query->where('name', 'LIKE', '%'.$request->input('search').'%');
|
$query->where('name', 'LIKE', '%'.$request->input('search').'%');
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = $query->paginate(15);
|
$query = $query->paginate(config('app.paginate_per_page', 50));
|
||||||
return BigdataResumeResource::collection($query)->response()->getData(true);
|
return BigdataResumeResource::collection($query)->response()->getData(true);
|
||||||
}catch(\Exception $e){
|
}catch(\Exception $e){
|
||||||
Log::error($e->getMessage());
|
Log::error($e->getMessage());
|
||||||
@@ -167,38 +167,6 @@ class BigDataResumeController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Store a newly created resource in storage.
|
|
||||||
*/
|
|
||||||
public function store(Request $request)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Display the specified resource.
|
|
||||||
*/
|
|
||||||
public function show(string $id)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Update the specified resource in storage.
|
|
||||||
*/
|
|
||||||
public function update(Request $request, string $id)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Remove the specified resource from storage.
|
|
||||||
*/
|
|
||||||
public function destroy(string $id)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
private function response_empty_resume(){
|
private function response_empty_resume(){
|
||||||
$result = [
|
$result = [
|
||||||
'target_pad' => [
|
'target_pad' => [
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class BusinessOrIndustriesController extends Controller
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return response()->json($query->paginate());
|
return response()->json($query->paginate(config('app.paginate_per_page', 50)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class CustomersController extends Controller
|
|||||||
->orWhere('nama', 'LIKE', '%'.$request->get('search').'%')
|
->orWhere('nama', 'LIKE', '%'.$request->get('search').'%')
|
||||||
->orWhere('kota_pelayanan', 'LIKE', '%'.$request->get('search').'%');
|
->orWhere('kota_pelayanan', 'LIKE', '%'.$request->get('search').'%');
|
||||||
}
|
}
|
||||||
return CustomersResource::collection($query->paginate());
|
return CustomersResource::collection($query->paginate(config('app.paginate_per_page', 50)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class ImportDatasourceController extends Controller
|
|||||||
$search = $request->get("search");
|
$search = $request->get("search");
|
||||||
$query->where('status', 'like', "%".$search."%");
|
$query->where('status', 'like', "%".$search."%");
|
||||||
}
|
}
|
||||||
return ImportDatasourceResource::collection($query->paginate());
|
return ImportDatasourceResource::collection($query->paginate(config('app.paginate_per_page', 50)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function checkImportDatasource(){
|
public function checkImportDatasource(){
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class MenusController extends Controller
|
|||||||
$query = $query->where("name", "like", "%".$request->get("search")."%");
|
$query = $query->where("name", "like", "%".$request->get("search")."%");
|
||||||
}
|
}
|
||||||
|
|
||||||
return response()->json($query->paginate());
|
return response()->json($query->paginate(config('app.paginate_per_page', 50)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class RolesController extends Controller
|
|||||||
$query = $query->where('name', 'like', '%'. $request->get('search') . '%');
|
$query = $query->where('name', 'like', '%'. $request->get('search') . '%');
|
||||||
}
|
}
|
||||||
|
|
||||||
return response()->json($query->paginate());
|
return response()->json($query->paginate(config('app.paginate_per_page', 50)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class UsersController extends Controller
|
|||||||
if($request->has('search') && !empty($request->get("search"))){
|
if($request->has('search') && !empty($request->get("search"))){
|
||||||
$query->where('name', 'LIKE', '%'.$request->get('search').'%');
|
$query->where('name', 'LIKE', '%'.$request->get('search').'%');
|
||||||
}
|
}
|
||||||
return UserResource::collection($query->paginate());
|
return UserResource::collection($query->paginate(config('app.paginate_per_page', 50)));
|
||||||
}
|
}
|
||||||
public function logout(Request $request){
|
public function logout(Request $request){
|
||||||
$request->user()->tokens()->delete();
|
$request->user()->tokens()->delete();
|
||||||
|
|||||||
@@ -34,7 +34,16 @@ class BigdataResumeResource extends JsonResource
|
|||||||
|
|
||||||
'spatial_count' => (int) $this->spatial_count,
|
'spatial_count' => (int) $this->spatial_count,
|
||||||
'spatial_sum' => number_format((float) $this->spatial_sum, 2, ',', '.'),
|
'spatial_sum' => number_format((float) $this->spatial_sum, 2, ',', '.'),
|
||||||
|
|
||||||
|
'issuance_realization_pbg_count' => (int) $this->issuance_realization_pbg_count,
|
||||||
|
'issuance_realization_pbg_sum' => number_format((float) $this->issuance_realization_pbg_sum, 2, ',', '.'),
|
||||||
|
|
||||||
|
'waiting_click_dpmptsp_count' => (int) $this->waiting_click_dpmptsp_count,
|
||||||
|
'waiting_click_dpmptsp_sum' => number_format((float) $this->waiting_click_dpmptsp_sum, 2, ',', '.'),
|
||||||
|
|
||||||
|
'process_in_technical_office_count' => (int) $this->process_in_technical_office_count,
|
||||||
|
'process_in_technical_office_sum' => number_format((float) $this->process_in_technical_office_sum, 2, ',', '.'),
|
||||||
|
|
||||||
'year' => $this->year,
|
'year' => $this->year,
|
||||||
'created_at' => $this->created_at->toDateTimeString(),
|
'created_at' => $this->created_at->toDateTimeString(),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -123,5 +123,6 @@ return [
|
|||||||
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
||||||
],
|
],
|
||||||
|
|
||||||
'api_url' => env('API_URL', 'http://localhost:8000')
|
'api_url' => env('API_URL', 'http://localhost:8000'),
|
||||||
|
'paginate_per_page' => 50
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ class BigdataResume {
|
|||||||
|
|
||||||
initTableDataSettings() {
|
initTableDataSettings() {
|
||||||
let tableContainer = document.getElementById("table-bigdata-resumes");
|
let tableContainer = document.getElementById("table-bigdata-resumes");
|
||||||
// Create a new Grid.js instance only if it doesn't exist
|
|
||||||
this.table = new Grid({
|
this.table = new Grid({
|
||||||
columns: [
|
columns: [
|
||||||
{ name: "ID" },
|
{ name: "ID" },
|
||||||
@@ -46,13 +45,19 @@ class BigdataResume {
|
|||||||
{ name: "Total Non Usaha" },
|
{ name: "Total Non Usaha" },
|
||||||
{ name: "Jumlah Tata Ruang" },
|
{ name: "Jumlah Tata Ruang" },
|
||||||
{ name: "Total 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",
|
name: "Created",
|
||||||
attributes: { style: "width: 200px; white-space: nowrap;" }, // Set width dynamically
|
attributes: { style: "width: 200px; white-space: nowrap;" }, // Set width dynamically
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
pagination: {
|
pagination: {
|
||||||
limit: 15,
|
limit: 50,
|
||||||
server: {
|
server: {
|
||||||
url: (prev, page) =>
|
url: (prev, page) =>
|
||||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||||
@@ -74,8 +79,8 @@ class BigdataResume {
|
|||||||
.getAttribute("content")}`,
|
.getAttribute("content")}`,
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
then: (data) =>
|
then: (data) => {
|
||||||
data.data.map((item) => [
|
return data.data.map((item) => [
|
||||||
item.id,
|
item.id,
|
||||||
item.potention_count,
|
item.potention_count,
|
||||||
addThousandSeparators(item.potention_sum),
|
addThousandSeparators(item.potention_sum),
|
||||||
@@ -89,8 +94,19 @@ class BigdataResume {
|
|||||||
addThousandSeparators(item.non_business_sum),
|
addThousandSeparators(item.non_business_sum),
|
||||||
item.spatial_count,
|
item.spatial_count,
|
||||||
addThousandSeparators(item.spatial_sum),
|
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"),
|
moment(item.created_at).format("YYYY-MM-DD H:mm:ss"),
|
||||||
]),
|
]);
|
||||||
|
},
|
||||||
total: (data) => data.total,
|
total: (data) => data.total,
|
||||||
},
|
},
|
||||||
}).render(tableContainer);
|
}).render(tableContainer);
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class BusinessIndustries {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
pagination: {
|
pagination: {
|
||||||
limit: 15,
|
limit: 50,
|
||||||
server: {
|
server: {
|
||||||
url: (prev, page) =>
|
url: (prev, page) =>
|
||||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class Customers {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
pagination: {
|
pagination: {
|
||||||
limit: 15,
|
limit: 50,
|
||||||
server: {
|
server: {
|
||||||
url: (prev, page) =>
|
url: (prev, page) =>
|
||||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class UsersTable {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
pagination: {
|
pagination: {
|
||||||
limit: 15,
|
limit: 50,
|
||||||
server: {
|
server: {
|
||||||
url: (prev, page) =>
|
url: (prev, page) =>
|
||||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ class Menus {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
pagination: {
|
pagination: {
|
||||||
limit: 15,
|
limit: 50,
|
||||||
server: {
|
server: {
|
||||||
url: (prev, page) =>
|
url: (prev, page) =>
|
||||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class Roles {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
pagination: {
|
pagination: {
|
||||||
limit: 15,
|
limit: 50,
|
||||||
server: {
|
server: {
|
||||||
url: (prev, page) =>
|
url: (prev, page) =>
|
||||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class SyncronizeTask {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
pagination: {
|
pagination: {
|
||||||
limit: 15,
|
limit: 50,
|
||||||
server: {
|
server: {
|
||||||
url: (prev, page) =>
|
url: (prev, page) =>
|
||||||
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
`${prev}${prev.includes("?") ? "&" : "?"}page=${
|
||||||
|
|||||||
Reference in New Issue
Block a user