Advertisement
BlackBoY_

ui-node-12\src\views\dashboard\js\home.js

Jan 29th, 2024
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.77 KB | None | 0 0
  1. export default async function(
  2. p_apiDetilId,
  3. p_modeMobile,
  4. p_flagAkses01,
  5. p_flagAkses02,
  6. p_flagAksese1, //data kualitas
  7. p_flagAksese5 = "0" //keagenan
  8. ) {
  9. console.log(
  10. p_apiDetilId,
  11. p_modeMobile,
  12. p_flagAkses01,
  13. p_flagAkses02,
  14. p_flagAksese1,
  15. p_flagAksese5
  16. );
  17. let dtMsg = "";
  18. try {
  19. let dtTextSatu = "";
  20. let dtbuttonSize = 0;
  21. let dtFontSize = "";
  22. let dtSpasi = 0;
  23. let dtMenu = [];
  24. let dtSwitchBack = "";
  25. let dtCard = {};
  26. //set home ----------------------------------------------------
  27. if (p_apiDetilId === "MAIN_HOME") {
  28. //home UTAMA ----------------------------
  29. dtTextSatu = "";
  30. if (p_flagAkses01 === "1") {
  31. dtMenu.push({
  32. akses: p_flagAkses01,
  33. kodeMenu: "xd01",
  34. namaMenu: "KEPESERTAAN",
  35. src: require("@/assets/icon/img_home_kepesertaan.png"),
  36. });
  37. }
  38. if (p_flagAkses02 === "1") {
  39. dtMenu.push({
  40. kodeMenu: "xd02",
  41. namaMenu: "PELAYANAN",
  42. src: require("@/assets/icon/img_home_pelayanan.png"),
  43. });
  44. }
  45. if (p_flagAkses01 === "1" || p_flagAkses02 === "1") {
  46. dtMenu.push({
  47. kodeMenu: "xd03",
  48. namaMenu: "PROFIL PK/BU",
  49. src: require("@/assets/icon/img_home_pkbu.png"),
  50. });
  51. }
  52. if (p_flagAkses01 === "1" || p_flagAkses02 === "1") {
  53. dtMenu.push({
  54. kodeMenu: "xd04",
  55. namaMenu: "E-SERVICE",
  56. src: require("@/assets/icon/img_home_eservice.png"),
  57. });
  58. }
  59. if (p_flagAkses01 === "1" || p_flagAkses02 === "1") {
  60. dtMenu.push({
  61. kodeMenu: "xd05",
  62. namaMenu: "OVERVIEW",
  63. src: require("@/assets/icon/img_home_maps.png"),
  64. });
  65. }
  66. if (p_flagAkses01 === "1" || p_flagAkses02 === "1") {
  67. dtMenu.push({
  68. kodeMenu: "xd06",
  69. namaMenu: "KINERJA",
  70. src: require("@/assets/icon/img_home_kinerja.png"),
  71. });
  72. }
  73. if (p_flagAksese1 === "1") {
  74. dtMenu.push({
  75. kodeMenu: "xd07",
  76. namaMenu: "DATA KUALITAS",
  77. src: require("@/assets/icon/img_wsrkualitas.png"),
  78. });
  79. }
  80.  
  81. if (p_modeMobile) {
  82. dtbuttonSize = "80";
  83. dtFontSize = "11px";
  84. dtSpasi = "3";
  85. } else {
  86. dtbuttonSize = "90";
  87. dtFontSize = "13px";
  88. dtSpasi = "2";
  89. }
  90. } else if (p_apiDetilId === "XD01_HOME") {
  91. //home KEPS ----------------------------
  92. dtMenu = [
  93. {
  94. kodeMenu: "xd0101",
  95. namaMenu: "ALL SEGMENT",
  96. src: require("@/assets/icon/img_allsegmen2.png"),
  97. },
  98. {
  99. kodeMenu: "xd0102",
  100. namaMenu: "PU",
  101. src: require("@/assets/icon/img_pu.png"),
  102. },
  103. {
  104. kodeMenu: "xd0103",
  105. namaMenu: "BPU",
  106. src: require("@/assets/icon/img_bpu.png"),
  107. },
  108. {
  109. kodeMenu: "xd0104",
  110. namaMenu: "PMI",
  111. src: require("@/assets/icon/img_pmi.png"),
  112. },
  113. {
  114. kodeMenu: "xd0105",
  115. namaMenu: "JAKON",
  116. src: require("@/assets/icon/img_jakon.png"),
  117. },
  118. {
  119. kodeMenu: "xd0106",
  120. namaMenu: "RSJHT/JP",
  121. src: require("@/assets/icon/img_rsjht.png"),
  122. },
  123. {
  124. kodeMenu: "xd0107",
  125. namaMenu: "WASRIK",
  126. src: require("@/assets/icon/img_wasrik.png"),
  127. },
  128. {
  129. kodeMenu: "xd0108",
  130. namaMenu: "POTENSI",
  131. src: require("@/assets/icon/img_wsrtk.png"),
  132. },
  133. ];
  134. if (p_flagAksese5 == "1")
  135. dtMenu.push({
  136. kodeMenu: "xd0109",
  137. namaMenu: "KEAGENAN",
  138. src: require("@/assets/icon/icon_agen.jpeg"),
  139. });
  140. dtMenu.push({
  141. kodeMenu: "xd0111",
  142. namaMenu: "Lap.Usaha & BPS",
  143. src: require("@/assets/icon/img_bylapusaha.png"),
  144. });
  145. if (p_modeMobile) {
  146. dtbuttonSize = "65";
  147. dtFontSize = "11px";
  148. dtSpasi = "1";
  149. } else {
  150. dtbuttonSize = "72";
  151. dtFontSize = "12px";
  152. dtSpasi = "1";
  153. }
  154. dtTextSatu =
  155. "Summary data kepesertaan dan iuran per segmen, monitoring pemberitahuan RSJHT/JP serta Wasrik";
  156. dtSwitchBack = "main";
  157. //end home KEPS ------------------------
  158. } else if (p_apiDetilId === "XD0108_HOME") {
  159. //home potensi -------------------------------
  160. dtMenu = [
  161. {
  162. kodeMenu: "xd010800",
  163. namaMenu: "POTENSI TAHUN INI",
  164. src: require("@/assets/icon/img_wsrtk.png"),
  165. },
  166. {
  167. kodeMenu: "xd010801",
  168. namaMenu: "COVERAGE SEMESTA",
  169. src: require("@/assets/icon/img_allsegmen2.png"),
  170. },
  171. ];
  172. if (p_modeMobile) {
  173. dtbuttonSize = "75";
  174. dtFontSize = "11px";
  175. dtSpasi = "3";
  176. } else {
  177. dtbuttonSize = "80";
  178. dtFontSize = "11px";
  179. dtSpasi = "3";
  180. }
  181. dtTextSatu = "Dashboard data potensi tenaga kerja:";
  182. dtSwitchBack = "xd01";
  183. //end home potensi ---------------------------
  184. } else if (p_apiDetilId === "XD02_HOME") {
  185. //home KLM -----------------------------
  186. dtMenu = [
  187. {
  188. kodeMenu: "xd0201",
  189. namaMenu: "JHT",
  190. src: require("@/assets/icon/img_jht.png"),
  191. },
  192. {
  193. kodeMenu: "xd0202",
  194. namaMenu: "JKK",
  195. src: require("@/assets/icon/img_jkk.png"),
  196. },
  197. {
  198. kodeMenu: "xd0203",
  199. namaMenu: "JKM",
  200. src: require("@/assets/icon/img_jkm.png"),
  201. },
  202. {
  203. kodeMenu: "xd0204",
  204. namaMenu: "JP",
  205. src: require("@/assets/icon/img_jpn.png"),
  206. },
  207. // gw 2022-03-15
  208.  
  209. {
  210. kodeMenu: "xd0205",
  211. namaMenu: "JKP",
  212. src: require("@/assets/icon/icon_jkp.png"),
  213. },
  214. {
  215. kodeMenu: "xd020600",
  216. namaMenu: "ESTIMASI",
  217. src: require("@/assets/icon/icon_beban.png"),
  218. },
  219. {
  220. kodeMenu: "xd020700",
  221. namaMenu: "BEASISWA",
  222. src: require("@/assets/icon/icon_beasiswa.png"),
  223. },
  224. {
  225. kodeMenu: "xd020106",
  226. namaMenu: "KLAIM USIA JT",
  227. src: require("@/assets/icon/icon_klaimusiajt.png"),
  228. },
  229. {
  230. kodeMenu: "xd020114",
  231. namaMenu: "JHT JT TEMPO",
  232. src: require("@/assets/icon/icon_jhtjt.png"),
  233. },
  234. {
  235. kodeMenu: "xd020800",
  236. namaMenu: "MLT",
  237. src: require("@/assets/icon/icon_mlt.png"),
  238. },
  239. ];
  240. if (p_modeMobile) {
  241. dtbuttonSize = "75";
  242. dtFontSize = "11px";
  243. dtSpasi = "3";
  244. } else {
  245. dtbuttonSize = "75";
  246. dtFontSize = "11px";
  247. dtSpasi = "3";
  248. }
  249. dtTextSatu = "Summary data pelayanan jaminan per jenis klaim:";
  250. dtSwitchBack = "main";
  251. //end home KLM -------------------------
  252. } else if (p_apiDetilId === "XD0201_HOME_BYPOPUP") {
  253. //home KLM 01 --------------------------
  254. dtMenu = [
  255. {
  256. kodeMenu: "xd020101",
  257. namaMenu: "Upah",
  258. src: require("@/assets/icon/img_byupah.png"),
  259. },
  260. {
  261. kodeMenu: "xd020102",
  262. namaMenu: "Usia",
  263. src: require("@/assets/icon/img_byusia.png"),
  264. },
  265. {
  266. kodeMenu: "xd020103",
  267. namaMenu: "Masa Keps",
  268. src: require("@/assets/icon/img_bykeps.png"),
  269. },
  270. {
  271. kodeMenu: "xd020104",
  272. namaMenu: "Saldo",
  273. src: require("@/assets/icon/img_bysaldo.png"),
  274. },
  275. {
  276. kodeMenu: "xd020105",
  277. namaMenu: "Sebab Klaim",
  278. src: require("@/assets/icon/img_bysebabklaim.png"),
  279. },
  280. {
  281. kodeMenu: "xd020107",
  282. namaMenu: "Lap. Usaha",
  283. src: require("@/assets/icon/img_bylapusaha.png"),
  284. },
  285. {
  286. kodeMenu: "xd020108",
  287. namaMenu: "Kanal Layanan",
  288. src: require("@/assets/icon/img_bylapusaha.png"),
  289. },
  290. {
  291. kodeMenu: "xd020109",
  292. namaMenu: "Bank",
  293. src: require("@/assets/icon/img_bylapusaha.png"),
  294. },
  295. {
  296. kodeMenu: "xd020110",
  297. namaMenu: "By Kasus",
  298. src: require("@/assets/icon/img_bytop10kasus.png"),
  299. },
  300. {
  301. kodeMenu: "xd020111",
  302. namaMenu: "By Manfaat",
  303. src: require("@/assets/icon/img_bytop10mnf.png"),
  304. },
  305. {
  306. kodeMenu: "xd020112",
  307. namaMenu: "Siap Bayar",
  308. src: require("@/assets/icon/img_byupah.png"),
  309. },
  310. {
  311. kodeMenu: "xd020113",
  312. namaMenu: "Kurang Bayar",
  313. src: require("@/assets/icon/img_bykurangbyr.png"),
  314. },
  315. ];
  316. if (p_modeMobile) {
  317. dtbuttonSize = "60";
  318. dtFontSize = "11px";
  319. dtSpasi = "1";
  320. } else {
  321. dtbuttonSize = "60";
  322. dtFontSize = "11px";
  323. dtSpasi = "1";
  324. }
  325. dtTextSatu = "Dashboard Klaim JHT, berdasarkan atas:";
  326. dtSwitchBack = "xd0201";
  327. //end home KLM -------------------------
  328. } else if (p_apiDetilId === "XD0202_HOME_BYPOPUP") {
  329. //home KLM 02 --------------------------
  330. dtMenu = [
  331. {
  332. kodeMenu: "xd020201",
  333. namaMenu: "Upah",
  334. src: require("@/assets/icon/img_byupah.png"),
  335. },
  336. {
  337. kodeMenu: "xd020202",
  338. namaMenu: "Usia",
  339. src: require("@/assets/icon/img_byusia.png"),
  340. },
  341. {
  342. kodeMenu: "xd020203",
  343. namaMenu: "Masa Kepesertaan",
  344. src: require("@/assets/icon/img_bykeps.png"),
  345. },
  346. {
  347. kodeMenu: "xd020204",
  348. namaMenu: "Rate ILO",
  349. src: require("@/assets/icon/img_bysaldo.png"),
  350. },
  351. {
  352. kodeMenu: "xd020205",
  353. namaMenu: "Bank",
  354. src: require("@/assets/icon/img_bylapusaha.png"),
  355. },
  356. {
  357. kodeMenu: "xd020206",
  358. namaMenu: "By Kasus",
  359. src: require("@/assets/icon/img_bytop10kasus.png"),
  360. },
  361. {
  362. kodeMenu: "xd020207",
  363. namaMenu: "By Manfaat",
  364. src: require("@/assets/icon/img_bytop10mnf.png"),
  365. },
  366. {
  367. kodeMenu: "xd020208",
  368. namaMenu: "Siap Bayar",
  369. src: require("@/assets/icon/img_byupah.png"),
  370. },
  371. {
  372. kodeMenu: "xd020209",
  373. namaMenu: "Detil Manfaat",
  374. src: require("@/assets/icon/img_byupah.png"),
  375. },
  376. ];
  377. if (p_modeMobile) {
  378. dtbuttonSize = "60";
  379. dtFontSize = "11px";
  380. dtSpasi = "1";
  381. } else {
  382. dtbuttonSize = "60";
  383. dtFontSize = "11px";
  384. dtSpasi = "1";
  385. }
  386. dtTextSatu = "Dashboard Klaim JKK, berdasarkan atas:";
  387. dtSwitchBack = "xd0202";
  388. //end home KLM 02 ----------------------
  389. } else if (p_apiDetilId === "XD0203_HOME_BYPOPUP") {
  390. //home KLM 03 --------------------------
  391. dtMenu = [
  392. {
  393. kodeMenu: "xd020301",
  394. namaMenu: "Upah",
  395. src: require("@/assets/icon/img_byupah.png"),
  396. },
  397. {
  398. kodeMenu: "xd020302",
  399. namaMenu: "Usia",
  400. src: require("@/assets/icon/img_byusia.png"),
  401. },
  402. {
  403. kodeMenu: "xd020303",
  404. namaMenu: "Masa Kepesertaan",
  405. src: require("@/assets/icon/img_bykeps.png"),
  406. },
  407. {
  408. kodeMenu: "xd020304",
  409. namaMenu: "Bank",
  410. src: require("@/assets/icon/img_bylapusaha.png"),
  411. },
  412. {
  413. kodeMenu: "xd020305",
  414. namaMenu: "By Kasus",
  415. src: require("@/assets/icon/img_bytop10kasus.png"),
  416. },
  417. {
  418. kodeMenu: "xd020306",
  419. namaMenu: "By Manfaat",
  420. src: require("@/assets/icon/img_bytop10mnf.png"),
  421. },
  422. {
  423. kodeMenu: "xd020307",
  424. namaMenu: "Siap Bayar",
  425. src: require("@/assets/icon/img_byupah.png"),
  426. },
  427. {
  428. kodeMenu: "xd020308",
  429. namaMenu: "Detil Manfaat",
  430. src: require("@/assets/icon/img_byupah.png"),
  431. },
  432. ];
  433. if (p_modeMobile) {
  434. dtbuttonSize = "60";
  435. dtFontSize = "11px";
  436. dtSpasi = "1";
  437. } else {
  438. dtbuttonSize = "60";
  439. dtFontSize = "11px";
  440. dtSpasi = "1";
  441. }
  442. dtTextSatu = "Dashboard Klaim JKM, berdasarkan atas:";
  443. dtSwitchBack = "xd0203";
  444. //end home KLM 03 ---------------------
  445. } else if (p_apiDetilId === "XD0204_HOME_BYPOPUP") {
  446. //home KLM 04 --------------------------
  447. dtMenu = [
  448. {
  449. kodeMenu: "xd020401",
  450. namaMenu: "Upah",
  451. src: require("@/assets/icon/img_byupah.png"),
  452. },
  453. {
  454. kodeMenu: "xd020402",
  455. namaMenu: "Usia",
  456. src: require("@/assets/icon/img_byusia.png"),
  457. },
  458. {
  459. kodeMenu: "xd020403",
  460. namaMenu: "Masa Kepesertaan",
  461. src: require("@/assets/icon/img_bykeps.png"),
  462. },
  463. {
  464. kodeMenu: "xd020404",
  465. namaMenu: "Sebab Klaim",
  466. src: require("@/assets/icon/img_bysebabklaim.png"),
  467. },
  468. {
  469. kodeMenu: "xd020405",
  470. namaMenu: "Usia Jt Tempo",
  471. src: require("@/assets/icon/img_bykeps.png"),
  472. },
  473. {
  474. kodeMenu: "xd020406",
  475. namaMenu: "Bank",
  476. src: require("@/assets/icon/img_bylapusaha.png"),
  477. },
  478. {
  479. kodeMenu: "xd020407",
  480. namaMenu: "Siap Bayar",
  481. src: require("@/assets/icon/img_byupah.png"),
  482. },
  483. ];
  484. if (p_modeMobile) {
  485. dtbuttonSize = "60";
  486. dtFontSize = "11px";
  487. dtSpasi = "1";
  488. } else {
  489. dtbuttonSize = "60";
  490. dtFontSize = "11px";
  491. dtSpasi = "1";
  492. }
  493. dtTextSatu = "Dashboard Klaim JP, berdasarkan atas:";
  494. dtSwitchBack = "xd0204";
  495. //end home KLM 04 ---------------------
  496. } else if (p_apiDetilId === "XD0205_HOME_BYPOPUP") {
  497. //home KLM 05 --------------------------
  498. dtMenu = [
  499. {
  500. kodeMenu: "xd020501",
  501. namaMenu: "Upah",
  502. src: require("@/assets/icon/img_byupah.png"),
  503. },
  504. {
  505. kodeMenu: "xd020502",
  506. namaMenu: "Usia",
  507. src: require("@/assets/icon/img_byusia.png"),
  508. },
  509. {
  510. kodeMenu: "xd020503",
  511. namaMenu: "Masa Kepesertaan",
  512. src: require("@/assets/icon/img_bykeps.png"),
  513. },
  514. {
  515. kodeMenu: "xd020504",
  516. namaMenu: "Sebab Klaim",
  517. src: require("@/assets/icon/img_bysebabklaim.png"),
  518. },
  519. {
  520. kodeMenu: "xd020505",
  521. namaMenu: "Usia Jt Tempo",
  522. src: require("@/assets/icon/img_bykeps.png"),
  523. },
  524. {
  525. kodeMenu: "xd020506",
  526. namaMenu: "Bank",
  527. src: require("@/assets/icon/img_bylapusaha.png"),
  528. },
  529. {
  530. kodeMenu: "xd020507",
  531. namaMenu: "Siap Bayar",
  532. src: require("@/assets/icon/img_byupah.png"),
  533. },
  534. {
  535. kodeMenu: "xd020508",
  536. namaMenu: "Belum/Tidak Klaim Manfaat",
  537. src: require("@/assets/icon/img_byupah.png"),
  538. },
  539. ];
  540. if (p_modeMobile) {
  541. dtbuttonSize = "60";
  542. dtFontSize = "11px";
  543. dtSpasi = "1";
  544. } else {
  545. dtbuttonSize = "60";
  546. dtFontSize = "11px";
  547. dtSpasi = "1";
  548. }
  549. dtTextSatu = "Dashboard Klaim JKP, berdasarkan atas:";
  550. dtSwitchBack = "xd0205";
  551. //end home KLM 05 ---------------------
  552. } else if (p_apiDetilId === "XD0207_HOME_BYPOPUP") {
  553. //home KLM 07 --------------------------
  554. dtMenu = [
  555. {
  556. kodeMenu: "xd020501",
  557. namaMenu: "Jenjang Pendidikan",
  558. src: require("@/assets/icon/img_byupah.png"),
  559. },
  560. ];
  561. if (p_modeMobile) {
  562. dtbuttonSize = "60";
  563. dtFontSize = "11px";
  564. dtSpasi = "1";
  565. } else {
  566. dtbuttonSize = "60";
  567. dtFontSize = "11px";
  568. dtSpasi = "1";
  569. }
  570. dtTextSatu = "Dashboard Klaim JKP, berdasarkan atas:";
  571. dtSwitchBack = "xd0205";
  572. //end home KLM 07 ---------------------
  573. } else if (p_apiDetilId === "XD0277_HOME_BYPOPUP") {
  574. //home KLM 07 --------------------------
  575. dtMenu = [
  576. {
  577. kodeMenu: "xd020701",
  578. namaMenu: "Cadangan Teknis",
  579. src: require("@/assets/icon/icon_beasiswa.png"),
  580. },
  581. ];
  582. if (p_modeMobile) {
  583. dtbuttonSize = "60";
  584. dtFontSize = "11px";
  585. dtSpasi = "1";
  586. } else {
  587. dtbuttonSize = "60";
  588. dtFontSize = "11px";
  589. dtSpasi = "1";
  590. }
  591. dtTextSatu = "Dashboard Beasiswa, berdasarkan atas:";
  592. dtSwitchBack = "xd020700";
  593. //end home KLM 07 ---------------------
  594. } else if (p_apiDetilId === "XD0288_HOME_BYPOPUP") {
  595. //home KLM 07 --------------------------
  596. dtMenu = [
  597. {
  598. kodeMenu: "xd060307",
  599. namaMenu: "TK Keluar PU BY KBLI",
  600. src: require("@/assets/icon/img_wsrtk.png"),
  601. },
  602. ];
  603. if (p_modeMobile) {
  604. dtbuttonSize = "60";
  605. dtFontSize = "11px";
  606. dtSpasi = "1";
  607. } else {
  608. dtbuttonSize = "60";
  609. dtFontSize = "11px";
  610. dtSpasi = "1";
  611. }
  612. dtTextSatu = "Dashboard Penerima Upah, berdasarkan atas:";
  613. dtSwitchBack = "xd060304";
  614. //end home KLM 07 ---------------------
  615. } else if (p_apiDetilId === "XD0299_HOME_BYPOPUP") {
  616. //home KLM 07 --------------------------
  617. dtMenu = [
  618. {
  619. kodeMenu: "xd060308",
  620. namaMenu: "TK Keluar JAKON by Sumber Pembiayaan",
  621. src: require("@/assets/icon/img_wsrtk.png"),
  622. },
  623. ];
  624. if (p_modeMobile) {
  625. dtbuttonSize = "60";
  626. dtFontSize = "11px";
  627. dtSpasi = "1";
  628. } else {
  629. dtbuttonSize = "60";
  630. dtFontSize = "11px";
  631. dtSpasi = "1";
  632. }
  633. dtTextSatu = "Dashboard Jasa Konstruksi, berdasarkan atas:";
  634. dtSwitchBack = "xd060305";
  635. //end home KLM 07 ---------------------
  636. } else if (p_apiDetilId === "XD0634_HOME_BYPOPUP") {
  637. //home KLM 07 --------------------------
  638. dtMenu = [
  639. {
  640. kodeMenu: "xd060309",
  641. namaMenu: "TK Keluar BPU by Engine",
  642. src: require("@/assets/icon/img_wsrtk.png"),
  643. },
  644. ];
  645. if (p_modeMobile) {
  646. dtbuttonSize = "60";
  647. dtFontSize = "11px";
  648. dtSpasi = "1";
  649. } else {
  650. dtbuttonSize = "60";
  651. dtFontSize = "11px";
  652. dtSpasi = "1";
  653. }
  654. dtTextSatu = "Dashboard Bukan Penerima Upah, berdasarkan atas:";
  655. dtSwitchBack = "xd060302";
  656. //end home KLM 07 ---------------------
  657. } else if (p_apiDetilId === "XD04_HOME") {
  658. //home ESERV ----------------------------
  659. dtMenu = [
  660. {
  661. kodeMenu: "xd0401",
  662. namaMenu: "LAPAK ASIK",
  663. src: require("@/assets/icon/img_lapakasik.png"),
  664. },
  665. ];
  666. if (p_modeMobile) {
  667. dtbuttonSize = "75";
  668. dtFontSize = "11px";
  669. dtSpasi = "1";
  670. } else {
  671. dtbuttonSize = "75";
  672. dtFontSize = "11px";
  673. dtSpasi = "1";
  674. }
  675. dtTextSatu = "Dashboard monitoring layanan melalui e-service:";
  676. dtSwitchBack = "main";
  677. //end home ESERV --------------------------
  678. } else if (p_apiDetilId === "XD06_HOME") {
  679. //home KJ ---------------------------------
  680. dtMenu = [
  681. {
  682. kodeMenu: "xd0602",
  683. namaMenu: "KINERJA PELAYANAN",
  684. src: require("@/assets/icon/img_home_pelayanan.png"),
  685. },
  686. {
  687. kodeMenu: "xd0603",
  688. namaMenu: "KINERJA KEPESERTAAN",
  689. src: require("@/assets/icon/img_home_kepesertaan.png"),
  690. },
  691. ];
  692. if (p_modeMobile) {
  693. dtbuttonSize = "75";
  694. dtFontSize = "11px";
  695. dtSpasi = "3";
  696. } else {
  697. dtbuttonSize = "85";
  698. dtFontSize = "11px";
  699. dtSpasi = "3";
  700. }
  701. dtTextSatu = "Dashboard penilaian kinerja:";
  702. dtSwitchBack = "main";
  703. //end home KJ -----------------------------
  704. } else if (p_apiDetilId === "XD0601_HOME") {
  705. //home KJ01 -------------------------------
  706. dtMenu = [
  707. {
  708. kodeMenu: "xd060101",
  709. namaMenu: "ALL SEGMENT",
  710. src: require("@/assets/icon/img_allsegmen2.png"),
  711. },
  712. {
  713. kodeMenu: "xd060102",
  714. namaMenu: "PU",
  715. src: require("@/assets/icon/img_pu.png"),
  716. },
  717. {
  718. kodeMenu: "xd060102",
  719. namaMenu: "PMI",
  720. src: require("@/assets/icon/img_pu.png"),
  721. },
  722. {
  723. kodeMenu: "xd060103",
  724. namaMenu: "BPU",
  725. src: require("@/assets/icon/img_bpu.png"),
  726. },
  727. {
  728. kodeMenu: "xd060104",
  729. namaMenu: "JAKON",
  730. src: require("@/assets/icon/img_jakon.png"),
  731. },
  732. ];
  733. if (p_modeMobile) {
  734. dtbuttonSize = "65";
  735. dtFontSize = "11px";
  736. dtSpasi = "1";
  737. } else {
  738. dtbuttonSize = "80";
  739. dtFontSize = "11px";
  740. dtSpasi = "3";
  741. }
  742. dtTextSatu =
  743. "Kinerja atas pencapaian target kepesertaan dan iuran per segmen:";
  744. dtSwitchBack = "xd06";
  745. //end home KJ01 ---------------------------
  746. } else if (p_apiDetilId === "XD0602_HOME") {
  747. //home KJ02 -------------------------------
  748. dtMenu = [
  749. {
  750. kodeMenu: "xd060204",
  751. namaMenu: "SLA KLAIM",
  752. src: require("@/assets/icon/img_home_kinerja.png"),
  753. },
  754. {
  755. kodeMenu: "xd060202",
  756. namaMenu: "KINERJA LAPAK ASIK",
  757. src: require("@/assets/icon/img_lapakasik.png"),
  758. },
  759. ];
  760. if (p_modeMobile) {
  761. dtbuttonSize = "75";
  762. dtFontSize = "11px";
  763. dtSpasi = "3";
  764. } else {
  765. dtbuttonSize = "80";
  766. dtFontSize = "11px";
  767. dtSpasi = "3";
  768. }
  769. dtTextSatu = "Dashboard penilaian kinerja pelayanan:";
  770. dtSwitchBack = "xd06";
  771. //end home KJ02 ---------------------------
  772. } else if (p_apiDetilId === "XD0603_HOME") {
  773. //home KJ02 -------------------------------
  774. dtMenu = [
  775. {
  776. kodeMenu: "xd060301",
  777. namaMenu: "ALL SEGMENT",
  778. src: require("@/assets/icon/img_allsegmen2.png"),
  779. },
  780. {
  781. kodeMenu: "xd060302",
  782. namaMenu: "PU",
  783. src: require("@/assets/icon/img_pu.png"),
  784. },
  785. {
  786. kodeMenu: "xd060303",
  787. namaMenu: "PMI",
  788. src: require("@/assets/icon/img_pmi.png"),
  789. },
  790. {
  791. kodeMenu: "xd060304",
  792. namaMenu: "BPU",
  793. src: require("@/assets/icon/img_bpu.png"),
  794. },
  795. {
  796. kodeMenu: "xd060305",
  797. namaMenu: "JAKON",
  798. src: require("@/assets/icon/img_jakon.png"),
  799. },
  800. {
  801. kodeMenu: "xd060306",
  802. namaMenu: "Year On Year",
  803. src: require("@/assets/icon/img_wsrtk.png"),
  804. },
  805. ];
  806. if (p_modeMobile) {
  807. dtbuttonSize = "75";
  808. dtFontSize = "11px";
  809. dtSpasi = "3";
  810. } else {
  811. dtbuttonSize = "80";
  812. dtFontSize = "11px";
  813. dtSpasi = "3";
  814. }
  815. dtTextSatu = "Dashboard penilaian kinerja kepesertaan:";
  816. dtSwitchBack = "xd06";
  817. //end home KJ02 ---------------------------
  818. } else if (p_apiDetilId === "XD07_HOME") {
  819. //home KJ02 -------------------------------
  820. dtMenu = [
  821. {
  822. kodeMenu: "xd0710",
  823. namaMenu: "PK/BU",
  824. src: require("@/assets/icon/img_wsrpkbu.png"),
  825. },
  826. {
  827. kodeMenu: "xd0720",
  828. namaMenu: "Tenaga Kerja",
  829. src: require("@/assets/icon/img_wasrik.png"),
  830. },
  831. ];
  832. if (p_modeMobile) {
  833. dtbuttonSize = "75";
  834. dtFontSize = "11px";
  835. dtSpasi = "3";
  836. } else {
  837. dtbuttonSize = "80";
  838. dtFontSize = "11px";
  839. dtSpasi = "3";
  840. }
  841. dtTextSatu = "Dashboard data kualitas:";
  842. dtSwitchBack = "main";
  843. //end home KJ02 ---------------------------
  844. } else if (p_apiDetilId === "XD0720_HOME") {
  845. //home KJ02 -------------------------------
  846. dtMenu = [
  847. {
  848. kodeMenu: "xd0704",
  849. namaMenu: "ALL SEGMENT",
  850. src: require("@/assets/icon/img_allsegmen2.png"),
  851. },
  852. {
  853. kodeMenu: "xd0701",
  854. namaMenu: "PU",
  855. src: require("@/assets/icon/img_pu.png"),
  856. },
  857. {
  858. kodeMenu: "xd0702",
  859. namaMenu: "BPU",
  860. src: require("@/assets/icon/img_bpu.png"),
  861. },
  862. {
  863. kodeMenu: "xd0703",
  864. namaMenu: "PMI",
  865. src: require("@/assets/icon/img_pmi.png"),
  866. },
  867. ];
  868. if (p_modeMobile) {
  869. dtbuttonSize = "75";
  870. dtFontSize = "11px";
  871. dtSpasi = "3";
  872. } else {
  873. dtbuttonSize = "80";
  874. dtFontSize = "11px";
  875. dtSpasi = "3";
  876. }
  877. dtTextSatu = "Dashboard data kualitas:";
  878. dtSwitchBack = "xd07";
  879. //end home KJ02 ---------------------------
  880. }
  881. //end set home ------------------------------------------------
  882. //end set home ------------------------------------------------
  883.  
  884. dtCard = {
  885. dtMenu: dtMenu,
  886. dtbuttonSize: dtbuttonSize,
  887. dtFontSize: dtFontSize,
  888. dtSpasi: dtSpasi,
  889. dtTextSatu: dtTextSatu,
  890. dtSwitchBack: dtSwitchBack,
  891. };
  892. dtMsg = "OK";
  893. return { ret: 0, msg: dtMsg, dtCard: dtCard };
  894. } catch (e) {
  895. dtMsg =
  896. "Mohon maaf, terjadi kesalahan pada sistem. Silahkan ulangi kembali. Error: " +
  897. e +
  898. ".";
  899. return { ret: -1, msg: dtMsg };
  900. }
  901. }
  902.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement