fix: tourisms
This commit is contained in:
@@ -5,38 +5,23 @@ import GlobalConfig from "../../global-config.js";
|
|||||||
import GeneralTable from "../../table-generator.js";
|
import GeneralTable from "../../table-generator.js";
|
||||||
|
|
||||||
const dataTourismsColumns = [
|
const dataTourismsColumns = [
|
||||||
"ID Proyek",
|
|
||||||
"Jenis Proyek",
|
|
||||||
"NIB",
|
|
||||||
"Nama Perusahaan",
|
"Nama Perusahaan",
|
||||||
"Tanggal Terbit OSS",
|
|
||||||
"Uraian Status Penanaman Modal",
|
|
||||||
"Uraian Jenis Perusahaan",
|
|
||||||
"Risiko Proyek",
|
|
||||||
"Nama Proyek",
|
"Nama Proyek",
|
||||||
"Uraian Skala Usaha",
|
|
||||||
"Alamat Usaha",
|
"Alamat Usaha",
|
||||||
"Kecamatan",
|
"Kecamatan",
|
||||||
"Desa",
|
"Desa",
|
||||||
"Longitude",
|
|
||||||
"Latitude",
|
|
||||||
"Tanggal Pengajuan Project",
|
|
||||||
"KBLI",
|
|
||||||
"Judul KBLI",
|
|
||||||
"Sektor Pembina",
|
|
||||||
"Nama User",
|
|
||||||
"Email",
|
|
||||||
"Kontak",
|
|
||||||
"Luas Tanah (m2)",
|
"Luas Tanah (m2)",
|
||||||
"Jumlah Investasi",
|
"Jumlah Investasi",
|
||||||
"TKI",
|
"TKI",
|
||||||
|
"Longitude",
|
||||||
|
"Latitude",
|
||||||
{
|
{
|
||||||
name: "Actions",
|
name: "Actions",
|
||||||
widht: "120px",
|
widht: "120px",
|
||||||
formatter: function (cell, row) {
|
formatter: function (cell, row) {
|
||||||
const id = row.cells[25].data;
|
const id = row.cells[10].data;
|
||||||
const long = row.cells[13].data;
|
const long = row.cells[8].data;
|
||||||
const lat = row.cells[14].data;
|
const lat = row.cells[9].data;
|
||||||
const model = "data/tourisms";
|
const model = "data/tourisms";
|
||||||
return gridjs.html(`
|
return gridjs.html(`
|
||||||
<div class="d-flex justify-items-end gap-10">
|
<div class="d-flex justify-items-end gap-10">
|
||||||
@@ -47,7 +32,7 @@ const dataTourismsColumns = [
|
|||||||
|
|
||||||
<button class="btn btn-info me-2 btn-view"
|
<button class="btn btn-info me-2 btn-view"
|
||||||
data-long="${long}" data-lat="${lat}">
|
data-long="${long}" data-lat="${lat}">
|
||||||
<i class='bx bx-show'></i></button>
|
<i class='bx bx-map'></i></button>
|
||||||
|
|
||||||
<button class="btn btn-red btn-delete"
|
<button class="btn btn-red btn-delete"
|
||||||
data-id="${id}">
|
data-id="${id}">
|
||||||
@@ -69,31 +54,16 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
table.processData = function (data) {
|
table.processData = function (data) {
|
||||||
return data.data.map((item) => {
|
return data.data.map((item) => {
|
||||||
return [
|
return [
|
||||||
item.project_id,
|
|
||||||
item.project_type_id,
|
|
||||||
item.nib,
|
|
||||||
item.business_name,
|
item.business_name,
|
||||||
item.oss_publication_date,
|
|
||||||
item.investment_status_description,
|
|
||||||
item.business_form,
|
|
||||||
item.project_risk,
|
|
||||||
item.project_name,
|
item.project_name,
|
||||||
item.business_scale,
|
|
||||||
item.business_address,
|
item.business_address,
|
||||||
item.district_name,
|
item.district_name,
|
||||||
item.village_name,
|
item.village_name,
|
||||||
item.longitude,
|
|
||||||
item.latitude,
|
|
||||||
item.project_submission_date,
|
|
||||||
item.kbli,
|
|
||||||
item.kbli_title,
|
|
||||||
item.supervisory_sector,
|
|
||||||
item.user_name,
|
|
||||||
item.email,
|
|
||||||
item.contact,
|
|
||||||
item.land_area_in_m2,
|
item.land_area_in_m2,
|
||||||
item.investment_amount,
|
item.investment_amount,
|
||||||
item.tki,
|
item.tki,
|
||||||
|
item.longitude,
|
||||||
|
item.latitude,
|
||||||
item.id,
|
item.id,
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user