Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default async function(
- p_apiDetilId,
- p_modeMobile,
- p_flagAkses01,
- p_flagAkses02,
- p_flagAksese1, //data kualitas
- p_flagAksese5 = "0" //keagenan
- ) {
- console.log(
- p_apiDetilId,
- p_modeMobile,
- p_flagAkses01,
- p_flagAkses02,
- p_flagAksese1,
- p_flagAksese5
- );
- let dtMsg = "";
- try {
- let dtTextSatu = "";
- let dtbuttonSize = 0;
- let dtFontSize = "";
- let dtSpasi = 0;
- let dtMenu = [];
- let dtSwitchBack = "";
- let dtCard = {};
- //set home ----------------------------------------------------
- if (p_apiDetilId === "MAIN_HOME") {
- //home UTAMA ----------------------------
- dtTextSatu = "";
- if (p_flagAkses01 === "1") {
- dtMenu.push({
- akses: p_flagAkses01,
- kodeMenu: "xd01",
- namaMenu: "KEPESERTAAN",
- src: require("@/assets/icon/img_home_kepesertaan.png"),
- });
- }
- if (p_flagAkses02 === "1") {
- dtMenu.push({
- kodeMenu: "xd02",
- namaMenu: "PELAYANAN",
- src: require("@/assets/icon/img_home_pelayanan.png"),
- });
- }
- if (p_flagAkses01 === "1" || p_flagAkses02 === "1") {
- dtMenu.push({
- kodeMenu: "xd03",
- namaMenu: "PROFIL PK/BU",
- src: require("@/assets/icon/img_home_pkbu.png"),
- });
- }
- if (p_flagAkses01 === "1" || p_flagAkses02 === "1") {
- dtMenu.push({
- kodeMenu: "xd04",
- namaMenu: "E-SERVICE",
- src: require("@/assets/icon/img_home_eservice.png"),
- });
- }
- if (p_flagAkses01 === "1" || p_flagAkses02 === "1") {
- dtMenu.push({
- kodeMenu: "xd05",
- namaMenu: "OVERVIEW",
- src: require("@/assets/icon/img_home_maps.png"),
- });
- }
- if (p_flagAkses01 === "1" || p_flagAkses02 === "1") {
- dtMenu.push({
- kodeMenu: "xd06",
- namaMenu: "KINERJA",
- src: require("@/assets/icon/img_home_kinerja.png"),
- });
- }
- if (p_flagAksese1 === "1") {
- dtMenu.push({
- kodeMenu: "xd07",
- namaMenu: "DATA KUALITAS",
- src: require("@/assets/icon/img_wsrkualitas.png"),
- });
- }
- if (p_modeMobile) {
- dtbuttonSize = "80";
- dtFontSize = "11px";
- dtSpasi = "3";
- } else {
- dtbuttonSize = "90";
- dtFontSize = "13px";
- dtSpasi = "2";
- }
- } else if (p_apiDetilId === "XD01_HOME") {
- //home KEPS ----------------------------
- dtMenu = [
- {
- kodeMenu: "xd0101",
- namaMenu: "ALL SEGMENT",
- src: require("@/assets/icon/img_allsegmen2.png"),
- },
- {
- kodeMenu: "xd0102",
- namaMenu: "PU",
- src: require("@/assets/icon/img_pu.png"),
- },
- {
- kodeMenu: "xd0103",
- namaMenu: "BPU",
- src: require("@/assets/icon/img_bpu.png"),
- },
- {
- kodeMenu: "xd0104",
- namaMenu: "PMI",
- src: require("@/assets/icon/img_pmi.png"),
- },
- {
- kodeMenu: "xd0105",
- namaMenu: "JAKON",
- src: require("@/assets/icon/img_jakon.png"),
- },
- {
- kodeMenu: "xd0106",
- namaMenu: "RSJHT/JP",
- src: require("@/assets/icon/img_rsjht.png"),
- },
- {
- kodeMenu: "xd0107",
- namaMenu: "WASRIK",
- src: require("@/assets/icon/img_wasrik.png"),
- },
- {
- kodeMenu: "xd0108",
- namaMenu: "POTENSI",
- src: require("@/assets/icon/img_wsrtk.png"),
- },
- ];
- if (p_flagAksese5 == "1")
- dtMenu.push({
- kodeMenu: "xd0109",
- namaMenu: "KEAGENAN",
- src: require("@/assets/icon/icon_agen.jpeg"),
- });
- dtMenu.push({
- kodeMenu: "xd0111",
- namaMenu: "Lap.Usaha & BPS",
- src: require("@/assets/icon/img_bylapusaha.png"),
- });
- if (p_modeMobile) {
- dtbuttonSize = "65";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "72";
- dtFontSize = "12px";
- dtSpasi = "1";
- }
- dtTextSatu =
- "Summary data kepesertaan dan iuran per segmen, monitoring pemberitahuan RSJHT/JP serta Wasrik";
- dtSwitchBack = "main";
- //end home KEPS ------------------------
- } else if (p_apiDetilId === "XD0108_HOME") {
- //home potensi -------------------------------
- dtMenu = [
- {
- kodeMenu: "xd010800",
- namaMenu: "POTENSI TAHUN INI",
- src: require("@/assets/icon/img_wsrtk.png"),
- },
- {
- kodeMenu: "xd010801",
- namaMenu: "COVERAGE SEMESTA",
- src: require("@/assets/icon/img_allsegmen2.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "75";
- dtFontSize = "11px";
- dtSpasi = "3";
- } else {
- dtbuttonSize = "80";
- dtFontSize = "11px";
- dtSpasi = "3";
- }
- dtTextSatu = "Dashboard data potensi tenaga kerja:";
- dtSwitchBack = "xd01";
- //end home potensi ---------------------------
- } else if (p_apiDetilId === "XD02_HOME") {
- //home KLM -----------------------------
- dtMenu = [
- {
- kodeMenu: "xd0201",
- namaMenu: "JHT",
- src: require("@/assets/icon/img_jht.png"),
- },
- {
- kodeMenu: "xd0202",
- namaMenu: "JKK",
- src: require("@/assets/icon/img_jkk.png"),
- },
- {
- kodeMenu: "xd0203",
- namaMenu: "JKM",
- src: require("@/assets/icon/img_jkm.png"),
- },
- {
- kodeMenu: "xd0204",
- namaMenu: "JP",
- src: require("@/assets/icon/img_jpn.png"),
- },
- // gw 2022-03-15
- {
- kodeMenu: "xd0205",
- namaMenu: "JKP",
- src: require("@/assets/icon/icon_jkp.png"),
- },
- {
- kodeMenu: "xd020600",
- namaMenu: "ESTIMASI",
- src: require("@/assets/icon/icon_beban.png"),
- },
- {
- kodeMenu: "xd020700",
- namaMenu: "BEASISWA",
- src: require("@/assets/icon/icon_beasiswa.png"),
- },
- {
- kodeMenu: "xd020106",
- namaMenu: "KLAIM USIA JT",
- src: require("@/assets/icon/icon_klaimusiajt.png"),
- },
- {
- kodeMenu: "xd020114",
- namaMenu: "JHT JT TEMPO",
- src: require("@/assets/icon/icon_jhtjt.png"),
- },
- {
- kodeMenu: "xd020800",
- namaMenu: "MLT",
- src: require("@/assets/icon/icon_mlt.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "75";
- dtFontSize = "11px";
- dtSpasi = "3";
- } else {
- dtbuttonSize = "75";
- dtFontSize = "11px";
- dtSpasi = "3";
- }
- dtTextSatu = "Summary data pelayanan jaminan per jenis klaim:";
- dtSwitchBack = "main";
- //end home KLM -------------------------
- } else if (p_apiDetilId === "XD0201_HOME_BYPOPUP") {
- //home KLM 01 --------------------------
- dtMenu = [
- {
- kodeMenu: "xd020101",
- namaMenu: "Upah",
- src: require("@/assets/icon/img_byupah.png"),
- },
- {
- kodeMenu: "xd020102",
- namaMenu: "Usia",
- src: require("@/assets/icon/img_byusia.png"),
- },
- {
- kodeMenu: "xd020103",
- namaMenu: "Masa Keps",
- src: require("@/assets/icon/img_bykeps.png"),
- },
- {
- kodeMenu: "xd020104",
- namaMenu: "Saldo",
- src: require("@/assets/icon/img_bysaldo.png"),
- },
- {
- kodeMenu: "xd020105",
- namaMenu: "Sebab Klaim",
- src: require("@/assets/icon/img_bysebabklaim.png"),
- },
- {
- kodeMenu: "xd020107",
- namaMenu: "Lap. Usaha",
- src: require("@/assets/icon/img_bylapusaha.png"),
- },
- {
- kodeMenu: "xd020108",
- namaMenu: "Kanal Layanan",
- src: require("@/assets/icon/img_bylapusaha.png"),
- },
- {
- kodeMenu: "xd020109",
- namaMenu: "Bank",
- src: require("@/assets/icon/img_bylapusaha.png"),
- },
- {
- kodeMenu: "xd020110",
- namaMenu: "By Kasus",
- src: require("@/assets/icon/img_bytop10kasus.png"),
- },
- {
- kodeMenu: "xd020111",
- namaMenu: "By Manfaat",
- src: require("@/assets/icon/img_bytop10mnf.png"),
- },
- {
- kodeMenu: "xd020112",
- namaMenu: "Siap Bayar",
- src: require("@/assets/icon/img_byupah.png"),
- },
- {
- kodeMenu: "xd020113",
- namaMenu: "Kurang Bayar",
- src: require("@/assets/icon/img_bykurangbyr.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- }
- dtTextSatu = "Dashboard Klaim JHT, berdasarkan atas:";
- dtSwitchBack = "xd0201";
- //end home KLM -------------------------
- } else if (p_apiDetilId === "XD0202_HOME_BYPOPUP") {
- //home KLM 02 --------------------------
- dtMenu = [
- {
- kodeMenu: "xd020201",
- namaMenu: "Upah",
- src: require("@/assets/icon/img_byupah.png"),
- },
- {
- kodeMenu: "xd020202",
- namaMenu: "Usia",
- src: require("@/assets/icon/img_byusia.png"),
- },
- {
- kodeMenu: "xd020203",
- namaMenu: "Masa Kepesertaan",
- src: require("@/assets/icon/img_bykeps.png"),
- },
- {
- kodeMenu: "xd020204",
- namaMenu: "Rate ILO",
- src: require("@/assets/icon/img_bysaldo.png"),
- },
- {
- kodeMenu: "xd020205",
- namaMenu: "Bank",
- src: require("@/assets/icon/img_bylapusaha.png"),
- },
- {
- kodeMenu: "xd020206",
- namaMenu: "By Kasus",
- src: require("@/assets/icon/img_bytop10kasus.png"),
- },
- {
- kodeMenu: "xd020207",
- namaMenu: "By Manfaat",
- src: require("@/assets/icon/img_bytop10mnf.png"),
- },
- {
- kodeMenu: "xd020208",
- namaMenu: "Siap Bayar",
- src: require("@/assets/icon/img_byupah.png"),
- },
- {
- kodeMenu: "xd020209",
- namaMenu: "Detil Manfaat",
- src: require("@/assets/icon/img_byupah.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- }
- dtTextSatu = "Dashboard Klaim JKK, berdasarkan atas:";
- dtSwitchBack = "xd0202";
- //end home KLM 02 ----------------------
- } else if (p_apiDetilId === "XD0203_HOME_BYPOPUP") {
- //home KLM 03 --------------------------
- dtMenu = [
- {
- kodeMenu: "xd020301",
- namaMenu: "Upah",
- src: require("@/assets/icon/img_byupah.png"),
- },
- {
- kodeMenu: "xd020302",
- namaMenu: "Usia",
- src: require("@/assets/icon/img_byusia.png"),
- },
- {
- kodeMenu: "xd020303",
- namaMenu: "Masa Kepesertaan",
- src: require("@/assets/icon/img_bykeps.png"),
- },
- {
- kodeMenu: "xd020304",
- namaMenu: "Bank",
- src: require("@/assets/icon/img_bylapusaha.png"),
- },
- {
- kodeMenu: "xd020305",
- namaMenu: "By Kasus",
- src: require("@/assets/icon/img_bytop10kasus.png"),
- },
- {
- kodeMenu: "xd020306",
- namaMenu: "By Manfaat",
- src: require("@/assets/icon/img_bytop10mnf.png"),
- },
- {
- kodeMenu: "xd020307",
- namaMenu: "Siap Bayar",
- src: require("@/assets/icon/img_byupah.png"),
- },
- {
- kodeMenu: "xd020308",
- namaMenu: "Detil Manfaat",
- src: require("@/assets/icon/img_byupah.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- }
- dtTextSatu = "Dashboard Klaim JKM, berdasarkan atas:";
- dtSwitchBack = "xd0203";
- //end home KLM 03 ---------------------
- } else if (p_apiDetilId === "XD0204_HOME_BYPOPUP") {
- //home KLM 04 --------------------------
- dtMenu = [
- {
- kodeMenu: "xd020401",
- namaMenu: "Upah",
- src: require("@/assets/icon/img_byupah.png"),
- },
- {
- kodeMenu: "xd020402",
- namaMenu: "Usia",
- src: require("@/assets/icon/img_byusia.png"),
- },
- {
- kodeMenu: "xd020403",
- namaMenu: "Masa Kepesertaan",
- src: require("@/assets/icon/img_bykeps.png"),
- },
- {
- kodeMenu: "xd020404",
- namaMenu: "Sebab Klaim",
- src: require("@/assets/icon/img_bysebabklaim.png"),
- },
- {
- kodeMenu: "xd020405",
- namaMenu: "Usia Jt Tempo",
- src: require("@/assets/icon/img_bykeps.png"),
- },
- {
- kodeMenu: "xd020406",
- namaMenu: "Bank",
- src: require("@/assets/icon/img_bylapusaha.png"),
- },
- {
- kodeMenu: "xd020407",
- namaMenu: "Siap Bayar",
- src: require("@/assets/icon/img_byupah.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- }
- dtTextSatu = "Dashboard Klaim JP, berdasarkan atas:";
- dtSwitchBack = "xd0204";
- //end home KLM 04 ---------------------
- } else if (p_apiDetilId === "XD0205_HOME_BYPOPUP") {
- //home KLM 05 --------------------------
- dtMenu = [
- {
- kodeMenu: "xd020501",
- namaMenu: "Upah",
- src: require("@/assets/icon/img_byupah.png"),
- },
- {
- kodeMenu: "xd020502",
- namaMenu: "Usia",
- src: require("@/assets/icon/img_byusia.png"),
- },
- {
- kodeMenu: "xd020503",
- namaMenu: "Masa Kepesertaan",
- src: require("@/assets/icon/img_bykeps.png"),
- },
- {
- kodeMenu: "xd020504",
- namaMenu: "Sebab Klaim",
- src: require("@/assets/icon/img_bysebabklaim.png"),
- },
- {
- kodeMenu: "xd020505",
- namaMenu: "Usia Jt Tempo",
- src: require("@/assets/icon/img_bykeps.png"),
- },
- {
- kodeMenu: "xd020506",
- namaMenu: "Bank",
- src: require("@/assets/icon/img_bylapusaha.png"),
- },
- {
- kodeMenu: "xd020507",
- namaMenu: "Siap Bayar",
- src: require("@/assets/icon/img_byupah.png"),
- },
- {
- kodeMenu: "xd020508",
- namaMenu: "Belum/Tidak Klaim Manfaat",
- src: require("@/assets/icon/img_byupah.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- }
- dtTextSatu = "Dashboard Klaim JKP, berdasarkan atas:";
- dtSwitchBack = "xd0205";
- //end home KLM 05 ---------------------
- } else if (p_apiDetilId === "XD0207_HOME_BYPOPUP") {
- //home KLM 07 --------------------------
- dtMenu = [
- {
- kodeMenu: "xd020501",
- namaMenu: "Jenjang Pendidikan",
- src: require("@/assets/icon/img_byupah.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- }
- dtTextSatu = "Dashboard Klaim JKP, berdasarkan atas:";
- dtSwitchBack = "xd0205";
- //end home KLM 07 ---------------------
- } else if (p_apiDetilId === "XD0277_HOME_BYPOPUP") {
- //home KLM 07 --------------------------
- dtMenu = [
- {
- kodeMenu: "xd020701",
- namaMenu: "Cadangan Teknis",
- src: require("@/assets/icon/icon_beasiswa.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- }
- dtTextSatu = "Dashboard Beasiswa, berdasarkan atas:";
- dtSwitchBack = "xd020700";
- //end home KLM 07 ---------------------
- } else if (p_apiDetilId === "XD0288_HOME_BYPOPUP") {
- //home KLM 07 --------------------------
- dtMenu = [
- {
- kodeMenu: "xd060307",
- namaMenu: "TK Keluar PU BY KBLI",
- src: require("@/assets/icon/img_wsrtk.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- }
- dtTextSatu = "Dashboard Penerima Upah, berdasarkan atas:";
- dtSwitchBack = "xd060304";
- //end home KLM 07 ---------------------
- } else if (p_apiDetilId === "XD0299_HOME_BYPOPUP") {
- //home KLM 07 --------------------------
- dtMenu = [
- {
- kodeMenu: "xd060308",
- namaMenu: "TK Keluar JAKON by Sumber Pembiayaan",
- src: require("@/assets/icon/img_wsrtk.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- }
- dtTextSatu = "Dashboard Jasa Konstruksi, berdasarkan atas:";
- dtSwitchBack = "xd060305";
- //end home KLM 07 ---------------------
- } else if (p_apiDetilId === "XD0634_HOME_BYPOPUP") {
- //home KLM 07 --------------------------
- dtMenu = [
- {
- kodeMenu: "xd060309",
- namaMenu: "TK Keluar BPU by Engine",
- src: require("@/assets/icon/img_wsrtk.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "60";
- dtFontSize = "11px";
- dtSpasi = "1";
- }
- dtTextSatu = "Dashboard Bukan Penerima Upah, berdasarkan atas:";
- dtSwitchBack = "xd060302";
- //end home KLM 07 ---------------------
- } else if (p_apiDetilId === "XD04_HOME") {
- //home ESERV ----------------------------
- dtMenu = [
- {
- kodeMenu: "xd0401",
- namaMenu: "LAPAK ASIK",
- src: require("@/assets/icon/img_lapakasik.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "75";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "75";
- dtFontSize = "11px";
- dtSpasi = "1";
- }
- dtTextSatu = "Dashboard monitoring layanan melalui e-service:";
- dtSwitchBack = "main";
- //end home ESERV --------------------------
- } else if (p_apiDetilId === "XD06_HOME") {
- //home KJ ---------------------------------
- dtMenu = [
- {
- kodeMenu: "xd0602",
- namaMenu: "KINERJA PELAYANAN",
- src: require("@/assets/icon/img_home_pelayanan.png"),
- },
- {
- kodeMenu: "xd0603",
- namaMenu: "KINERJA KEPESERTAAN",
- src: require("@/assets/icon/img_home_kepesertaan.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "75";
- dtFontSize = "11px";
- dtSpasi = "3";
- } else {
- dtbuttonSize = "85";
- dtFontSize = "11px";
- dtSpasi = "3";
- }
- dtTextSatu = "Dashboard penilaian kinerja:";
- dtSwitchBack = "main";
- //end home KJ -----------------------------
- } else if (p_apiDetilId === "XD0601_HOME") {
- //home KJ01 -------------------------------
- dtMenu = [
- {
- kodeMenu: "xd060101",
- namaMenu: "ALL SEGMENT",
- src: require("@/assets/icon/img_allsegmen2.png"),
- },
- {
- kodeMenu: "xd060102",
- namaMenu: "PU",
- src: require("@/assets/icon/img_pu.png"),
- },
- {
- kodeMenu: "xd060102",
- namaMenu: "PMI",
- src: require("@/assets/icon/img_pu.png"),
- },
- {
- kodeMenu: "xd060103",
- namaMenu: "BPU",
- src: require("@/assets/icon/img_bpu.png"),
- },
- {
- kodeMenu: "xd060104",
- namaMenu: "JAKON",
- src: require("@/assets/icon/img_jakon.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "65";
- dtFontSize = "11px";
- dtSpasi = "1";
- } else {
- dtbuttonSize = "80";
- dtFontSize = "11px";
- dtSpasi = "3";
- }
- dtTextSatu =
- "Kinerja atas pencapaian target kepesertaan dan iuran per segmen:";
- dtSwitchBack = "xd06";
- //end home KJ01 ---------------------------
- } else if (p_apiDetilId === "XD0602_HOME") {
- //home KJ02 -------------------------------
- dtMenu = [
- {
- kodeMenu: "xd060204",
- namaMenu: "SLA KLAIM",
- src: require("@/assets/icon/img_home_kinerja.png"),
- },
- {
- kodeMenu: "xd060202",
- namaMenu: "KINERJA LAPAK ASIK",
- src: require("@/assets/icon/img_lapakasik.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "75";
- dtFontSize = "11px";
- dtSpasi = "3";
- } else {
- dtbuttonSize = "80";
- dtFontSize = "11px";
- dtSpasi = "3";
- }
- dtTextSatu = "Dashboard penilaian kinerja pelayanan:";
- dtSwitchBack = "xd06";
- //end home KJ02 ---------------------------
- } else if (p_apiDetilId === "XD0603_HOME") {
- //home KJ02 -------------------------------
- dtMenu = [
- {
- kodeMenu: "xd060301",
- namaMenu: "ALL SEGMENT",
- src: require("@/assets/icon/img_allsegmen2.png"),
- },
- {
- kodeMenu: "xd060302",
- namaMenu: "PU",
- src: require("@/assets/icon/img_pu.png"),
- },
- {
- kodeMenu: "xd060303",
- namaMenu: "PMI",
- src: require("@/assets/icon/img_pmi.png"),
- },
- {
- kodeMenu: "xd060304",
- namaMenu: "BPU",
- src: require("@/assets/icon/img_bpu.png"),
- },
- {
- kodeMenu: "xd060305",
- namaMenu: "JAKON",
- src: require("@/assets/icon/img_jakon.png"),
- },
- {
- kodeMenu: "xd060306",
- namaMenu: "Year On Year",
- src: require("@/assets/icon/img_wsrtk.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "75";
- dtFontSize = "11px";
- dtSpasi = "3";
- } else {
- dtbuttonSize = "80";
- dtFontSize = "11px";
- dtSpasi = "3";
- }
- dtTextSatu = "Dashboard penilaian kinerja kepesertaan:";
- dtSwitchBack = "xd06";
- //end home KJ02 ---------------------------
- } else if (p_apiDetilId === "XD07_HOME") {
- //home KJ02 -------------------------------
- dtMenu = [
- {
- kodeMenu: "xd0710",
- namaMenu: "PK/BU",
- src: require("@/assets/icon/img_wsrpkbu.png"),
- },
- {
- kodeMenu: "xd0720",
- namaMenu: "Tenaga Kerja",
- src: require("@/assets/icon/img_wasrik.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "75";
- dtFontSize = "11px";
- dtSpasi = "3";
- } else {
- dtbuttonSize = "80";
- dtFontSize = "11px";
- dtSpasi = "3";
- }
- dtTextSatu = "Dashboard data kualitas:";
- dtSwitchBack = "main";
- //end home KJ02 ---------------------------
- } else if (p_apiDetilId === "XD0720_HOME") {
- //home KJ02 -------------------------------
- dtMenu = [
- {
- kodeMenu: "xd0704",
- namaMenu: "ALL SEGMENT",
- src: require("@/assets/icon/img_allsegmen2.png"),
- },
- {
- kodeMenu: "xd0701",
- namaMenu: "PU",
- src: require("@/assets/icon/img_pu.png"),
- },
- {
- kodeMenu: "xd0702",
- namaMenu: "BPU",
- src: require("@/assets/icon/img_bpu.png"),
- },
- {
- kodeMenu: "xd0703",
- namaMenu: "PMI",
- src: require("@/assets/icon/img_pmi.png"),
- },
- ];
- if (p_modeMobile) {
- dtbuttonSize = "75";
- dtFontSize = "11px";
- dtSpasi = "3";
- } else {
- dtbuttonSize = "80";
- dtFontSize = "11px";
- dtSpasi = "3";
- }
- dtTextSatu = "Dashboard data kualitas:";
- dtSwitchBack = "xd07";
- //end home KJ02 ---------------------------
- }
- //end set home ------------------------------------------------
- //end set home ------------------------------------------------
- dtCard = {
- dtMenu: dtMenu,
- dtbuttonSize: dtbuttonSize,
- dtFontSize: dtFontSize,
- dtSpasi: dtSpasi,
- dtTextSatu: dtTextSatu,
- dtSwitchBack: dtSwitchBack,
- };
- dtMsg = "OK";
- return { ret: 0, msg: dtMsg, dtCard: dtCard };
- } catch (e) {
- dtMsg =
- "Mohon maaf, terjadi kesalahan pada sistem. Silahkan ulangi kembali. Error: " +
- e +
- ".";
- return { ret: -1, msg: dtMsg };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement