From 851bc7f511566d3a852161b96d85d49c62172ad2 Mon Sep 17 00:00:00 2001 From: Ray Fajar Salinggih <58242304+rayfajars@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:48:26 +0700 Subject: [PATCH] feat: add component daftar IKP --- components/Aduan/DaftarIKP/Table/index.vue | 388 +++++++++++++++++++++ constant/daftar-ikp.js | 53 +++ pages/aduan/penginputan-ikp/index.vue | 2 +- 3 files changed, 442 insertions(+), 1 deletion(-) create mode 100644 components/Aduan/DaftarIKP/Table/index.vue create mode 100644 constant/daftar-ikp.js diff --git a/components/Aduan/DaftarIKP/Table/index.vue b/components/Aduan/DaftarIKP/Table/index.vue new file mode 100644 index 00000000..16d73bc2 --- /dev/null +++ b/components/Aduan/DaftarIKP/Table/index.vue @@ -0,0 +1,388 @@ + + + + + diff --git a/constant/daftar-ikp.js b/constant/daftar-ikp.js new file mode 100644 index 00000000..fc77725f --- /dev/null +++ b/constant/daftar-ikp.js @@ -0,0 +1,53 @@ +export const headerDaftarIkp = [ + { + key: 'narasi_ikp', + text: 'Narasi IKP', + sortable: true + }, + { + key: 'complaint_total', + text: 'Jml Aduan', + sortable: true + }, + { + key: 'created_at', + text: 'Tanggal Dibuat', + sortable: true + }, + { + key: 'deadline_at', + text: 'Tanggal Deadline', + sortable: true + }, + { + key: 'complaint_status_id', + text: 'Status', + sortable: true + }, + { + key: 'action', + text: 'Aksi', + sortable: false + } +] + +export const ikpStatus = Object.freeze({ + total: { + id: 'total', + name: 'Semua Aduan', + value: 0, + icon: '/icon/icon-aduan/complaint-status/complaint-all-icon.svg' + }, + followup: { + id: 'followup', + name: 'Ditindaklanjuti', + value: 0, + icon: '/icon/icon-aduan/complaint-status/complaint-followup-icon.svg' + }, + finished: { + id: 'finished', + name: 'Selesai', + value: 0, + icon: '/icon/icon-aduan/complaint-status/complaint-finished-icon.svg' + } +}) diff --git a/pages/aduan/penginputan-ikp/index.vue b/pages/aduan/penginputan-ikp/index.vue index baef0148..bc8847a4 100644 --- a/pages/aduan/penginputan-ikp/index.vue +++ b/pages/aduan/penginputan-ikp/index.vue @@ -6,6 +6,7 @@ :type-aduan-page="typeAduan.penginputanIkp.props" link-page-detail="/aduan/penginputan-ikp/detail" /> + @@ -43,7 +44,6 @@ export default { }, methods: { clickTab (idTab) { - console.log(idTab) this.idTab = idTab } }