routes for penyata anggota

This commit is contained in:
nurafrinaalimi16
2026-02-25 08:54:22 +08:00
parent 62648d7277
commit d82ca97183
2 changed files with 499 additions and 501 deletions
+122 -107
View File
@@ -1,223 +1,238 @@
import AdminIndex from './components/demo/admin/index.vue'; import AdminIndex from "./components/demo/admin/index.vue";
import AdminLogin from './components/demo/admin/login.vue'; import AdminLogin from "./components/demo/admin/login.vue";
import test from './components/demo/admin/position/test.vue'; import test from "./components/demo/admin/position/test.vue";
import FinalResult from './components/demo/admin/home/final.vue'; import FinalResult from "./components/demo/admin/home/final.vue";
import ManageElection from './components/demo/admin/home/home.vue'; import ManageElection from "./components/demo/admin/home/home.vue";
import ManageElectionIndex from './components/demo/admin/home/index.vue'; import ManageElectionIndex from "./components/demo/admin/home/index.vue";
import ManageElectionResult from './components/demo/admin/home/result.vue'; import ManageElectionResult from "./components/demo/admin/home/result.vue";
import ManagePosition from './components/demo/admin/position/position.vue'; import ManagePosition from "./components/demo/admin/position/position.vue";
import ManagePositionIndex from './components/demo/admin/position/index.vue'; import ManagePositionIndex from "./components/demo/admin/position/index.vue";
import ManagePositionAdd from './components/demo/admin/position/add.vue'; import ManagePositionAdd from "./components/demo/admin/position/add.vue";
import ManagePositionEdit from './components/demo/admin/position/edit.vue'; import ManagePositionEdit from "./components/demo/admin/position/edit.vue";
import ManagePartylist from './components/demo/admin/partylist/partylist.vue'; import ManagePartylist from "./components/demo/admin/partylist/partylist.vue";
import ManagePartylistIndex from './components/demo/admin/partylist/index.vue'; import ManagePartylistIndex from "./components/demo/admin/partylist/index.vue";
import ManagePartylistAdd from './components/demo/admin/partylist/add.vue'; import ManagePartylistAdd from "./components/demo/admin/partylist/add.vue";
import ManagePartylistEdit from './components/demo/admin/partylist/edit.vue'; import ManagePartylistEdit from "./components/demo/admin/partylist/edit.vue";
import ManageVoter from './components/demo/admin/voter/voter.vue'; import ManageVoter from "./components/demo/admin/voter/voter.vue";
import ManageVoterIndex from './components/demo/admin/voter/index.vue'; import ManageVoterIndex from "./components/demo/admin/voter/index.vue";
import ManageVoterAdd from './components/demo/admin/voter/add.vue'; import ManageVoterAdd from "./components/demo/admin/voter/add.vue";
import ManageVoterEdit from './components/demo/admin/voter/edit.vue'; import ManageVoterEdit from "./components/demo/admin/voter/edit.vue";
import ManageNominee from './components/demo/admin/nominee/nominee.vue'; import ManageNominee from "./components/demo/admin/nominee/nominee.vue";
import ManageNomineeIndex from './components/demo/admin/nominee/index.vue'; import ManageNomineeIndex from "./components/demo/admin/nominee/index.vue";
import ManageNomineeAdd from './components/demo/admin/nominee/add.vue'; import ManageNomineeAdd from "./components/demo/admin/nominee/add.vue";
import ManageNomineeEdit from './components/demo/admin/nominee/edit.vue'; import ManageNomineeEdit from "./components/demo/admin/nominee/edit.vue";
import ManageAccount from "./components/demo/admin/admin/admin.vue";
import ManageAccountIndex from "./components/demo/admin/admin/index.vue";
import ManageAccountEdit from "./components/demo/admin/admin/edit.vue";
import ManageAccountPassword from "./components/demo/admin/admin/password.vue";
import ManageAccountAdd from "./components/demo/admin/admin/add.vue";
import ManagePenyata from './components/demo/admin/penyata/penyata.vue';
import ManagePenyataIndex from './components/demo/admin/penyata/index.vue';
import ManagePenyataView from './components/demo/admin/penyata/view.vue';
import ManageAccount from './components/demo/admin/admin/admin.vue';
import ManageAccountIndex from './components/demo/admin/admin/index.vue';
import ManageAccountEdit from './components/demo/admin/admin/edit.vue';
import ManageAccountPassword from './components/demo/admin/admin/password.vue';
import ManageAccountAdd from './components/demo/admin/admin/add.vue';
const default_component = { const default_component = {
template: '<div>Not found: {{ $route.path }}</div>' template: "<div>Not found: {{ $route.path }}</div>",
} };
const routes = [ const routes = [
{ {
path: '/', path: "/",
component: AdminIndex, component: AdminIndex,
children: [ children: [
{ {
path: 'result/:election_id', path: "result/:election_id",
component: FinalResult, component: FinalResult,
name: 'Election Result' name: "Election Result",
}, },
{ {
path: '', path: "penyata",
component: ManagePenyata,
children: [
{
path: "",
component: ManagePenyataIndex,
name: "Manage Penyata",
},
{
path: "view/:no_anggota",
component: ManagePenyataView,
name: "View Penyata",
},
],
},
{
path: "",
component: ManageElection, component: ManageElection,
children: [ children: [
{ {
path: '', path: "",
component: ManageElectionIndex, component: ManageElectionIndex,
name: 'Admin Home' name: "Admin Home",
}, },
{ {
path: 'result', path: "result",
component: ManageElectionResult, component: ManageElectionResult,
name: 'Result' name: "Result",
} },
],
]
}, },
{ {
path: 'position', path: "position",
component: ManagePosition, component: ManagePosition,
children: [ children: [
{ {
path:'', path: "",
component: ManagePositionIndex, component: ManagePositionIndex,
name: 'Kemaskini Jawatan' name: "Kemaskini Jawatan",
}, },
{ {
path:'add', path: "add",
component: ManagePositionAdd, component: ManagePositionAdd,
name: 'Tambah Jawatan' name: "Tambah Jawatan",
}, },
{ {
path: 'edit/:id', path: "edit/:id",
component: ManagePositionEdit, component: ManagePositionEdit,
name: 'Edit Position' name: "Edit Position",
} },
] ],
}, },
{ {
path: 'partylist', path: "partylist",
component: ManagePartylist, component: ManagePartylist,
children: [ children: [
{ {
path: '', path: "",
component: ManagePartylistIndex, component: ManagePartylistIndex,
name: 'Manage Partylist' name: "Manage Partylist",
}, },
{ {
path: 'add', path: "add",
component: ManagePartylistAdd, component: ManagePartylistAdd,
name: 'Add Partylist' name: "Add Partylist",
}, },
{ {
path: 'edit/:id', path: "edit/:id",
component: ManagePartylistEdit, component: ManagePartylistEdit,
name: 'Edit Partylist' name: "Edit Partylist",
} },
],
]
}, },
{ {
path: 'voter', path: "voter",
component: ManageVoter, component: ManageVoter,
children: [ children: [
{ {
path: '', path: "",
component: ManageVoterIndex, component: ManageVoterIndex,
name: 'Manage Voter' name: "Manage Voter",
}, },
{ {
path: 'add', path: "add",
component: ManageVoterAdd, component: ManageVoterAdd,
name: 'Tambah Pengundi' name: "Tambah Pengundi",
}, },
{ {
path: 'edit/:id', path: "edit/:id",
component: ManageVoterEdit, component: ManageVoterEdit,
name: 'Edit Voter' name: "Edit Voter",
} },
],
]
}, },
{ {
path: 'nominee', path: "nominee",
component: ManageNominee, component: ManageNominee,
children: [ children: [
{ {
path: '', path: "",
component: ManageNomineeIndex, component: ManageNomineeIndex,
name: 'Maklumat Calon' name: "Maklumat Calon",
}, },
{ {
path: 'add', path: "add",
component: ManageNomineeAdd, component: ManageNomineeAdd,
name: 'Tambah Calon' name: "Tambah Calon",
}, },
{ {
path: 'edit/:id', path: "edit/:id",
component: ManageNomineeEdit, component: ManageNomineeEdit,
name: 'Edit Nominee' name: "Edit Nominee",
} },
],
]
}, },
{ {
path: '/account', path: "/account",
component: ManageAccount, component: ManageAccount,
children: [ children: [
{ {
path: '', path: "",
component: ManageAccountIndex, component: ManageAccountIndex,
name: 'Manage Account' name: "Manage Account",
}, },
{ {
path: 'update', path: "update",
component: ManageAccountEdit, component: ManageAccountEdit,
name: 'Update Account' name: "Update Account",
}, },
{ {
path: 'password', path: "password",
component: ManageAccountPassword, component: ManageAccountPassword,
name: 'Update Password' name: "Update Password",
}, },
{ {
path: 'add', path: "add",
component: ManageAccountAdd, component: ManageAccountAdd,
name: 'Add Account' name: "Add Account",
} },
],
] },
} ],
]
}, },
{ {
path: '/login', path: "/login",
component: AdminLogin, component: AdminLogin,
name: 'Admin Login' name: "Admin Login",
}, },
{ {
path: '/test', path: "/test",
component: test component: test,
} },
{
path: "/penyata/:id",
name: "penyataView",
component: () => import("@/views/penyata.vue"),
},
]; ];
export default routes; export default routes;
+161 -178
View File
@@ -1,364 +1,347 @@
import VoterLogin from './components/demo/voter/login.vue'; import VoterLogin from "./components/demo/voter/login.vue";
import VoterVerification from './components/demo/voter/verification.vue'; import VoterVerification from "./components/demo/voter/verification.vue";
import VoterHome from './components/demo/voter/index.vue'; import VoterHome from "./components/demo/voter/index.vue";
import Home from './components/demo/voter/home/index.vue'; import Home from "./components/demo/voter/home/index.vue";
import Mat from './components/demo/voter/home/mat.vue'; import Mat from "./components/demo/voter/home/mat.vue";
import Vote from './components/demo/voter/home/vote.vue'; import Vote from "./components/demo/voter/home/vote.vue";
import Result from './components/demo/voter/home/result.vue'; import Result from "./components/demo/voter/home/result.vue";
import Attendance from './components/demo/voter/home/attendance.vue'; import Attendance from "./components/demo/voter/home/attendance.vue";
import Zoom from './components/demo/voter/home/zoom.vue'; import Zoom from "./components/demo/voter/home/zoom.vue";
import Penyata from './components/demo/voter/home/penyata.vue'; import Penyata from "./components/demo/voter/home/penyata.vue";
import AdminLogin from './components/demo/admin/login.vue'; import AdminLogin from "./components/demo/admin/login.vue";
import AdminIndex from './components/demo/admin/index.vue'; import AdminIndex from "./components/demo/admin/index.vue";
import FinalResult from './components/demo/admin/home/final.vue'; import FinalResult from "./components/demo/admin/home/final.vue";
import ManageElection from './components/demo/admin/home/home.vue'; import ManageElection from "./components/demo/admin/home/home.vue";
import ManageElectionIndex from './components/demo/admin/home/index.vue'; import ManageElectionIndex from "./components/demo/admin/home/index.vue";
import ManageElectionResult from './components/demo/admin/home/result.vue'; import ManageElectionResult from "./components/demo/admin/home/result.vue";
import ManagePosition from './components/demo/admin/position/position.vue'; import ManagePosition from "./components/demo/admin/position/position.vue";
import ManagePositionIndex from './components/demo/admin/position/index.vue'; import ManagePositionIndex from "./components/demo/admin/position/index.vue";
import ManagePositionAdd from './components/demo/admin/position/add.vue'; import ManagePositionAdd from "./components/demo/admin/position/add.vue";
import ManagePositionEdit from './components/demo/admin/position/edit.vue'; import ManagePositionEdit from "./components/demo/admin/position/edit.vue";
import ManagePartylist from './components/demo/admin/partylist/partylist.vue'; import ManagePartylist from "./components/demo/admin/partylist/partylist.vue";
import ManagePartylistIndex from './components/demo/admin/partylist/index.vue'; import ManagePartylistIndex from "./components/demo/admin/partylist/index.vue";
import ManagePartylistAdd from './components/demo/admin/partylist/add.vue'; import ManagePartylistAdd from "./components/demo/admin/partylist/add.vue";
import ManagePartylistEdit from './components/demo/admin/partylist/edit.vue'; import ManagePartylistEdit from "./components/demo/admin/partylist/edit.vue";
import ManageVoter from './components/demo/admin/voter/voter.vue'; import ManageVoter from "./components/demo/admin/voter/voter.vue";
import ManageVoterIndex from './components/demo/admin/voter/index.vue'; import ManageVoterIndex from "./components/demo/admin/voter/index.vue";
import ManageVoterAdd from './components/demo/admin/voter/add.vue'; import ManageVoterAdd from "./components/demo/admin/voter/add.vue";
import ManageVoterEdit from './components/demo/admin/voter/edit.vue'; import ManageVoterEdit from "./components/demo/admin/voter/edit.vue";
import KehadiranCalon from './components/demo/admin/voter/kehadiran.vue'; import KehadiranCalon from "./components/demo/admin/voter/kehadiran.vue";
import KehadiranCalonFizikal from './components/demo/admin/voter/fizikal.vue'; import KehadiranCalonFizikal from "./components/demo/admin/voter/fizikal.vue";
import KehadiranCalonMaya from './components/demo/admin/voter/maya.vue'; import KehadiranCalonMaya from "./components/demo/admin/voter/maya.vue";
import ViewKehadiranCalon from './components/demo/admin/voter/viewkehadiran.vue'; import ViewKehadiranCalon from "./components/demo/admin/voter/viewkehadiran.vue";
import ManageNominee from "./components/demo/admin/nominee/nominee.vue";
import ManageNomineeIndex from "./components/demo/admin/nominee/index.vue";
import ManageNomineeAdd from "./components/demo/admin/nominee/add.vue";
import ManageNomineeEdit from "./components/demo/admin/nominee/edit.vue";
import ManageNominee from './components/demo/admin/nominee/nominee.vue'; import ManageAccount from "./components/demo/admin/admin/admin.vue";
import ManageNomineeIndex from './components/demo/admin/nominee/index.vue'; import ManageAccountIndex from "./components/demo/admin/admin/index.vue";
import ManageNomineeAdd from './components/demo/admin/nominee/add.vue'; import ManageAccountEdit from "./components/demo/admin/admin/edit.vue";
import ManageNomineeEdit from './components/demo/admin/nominee/edit.vue'; import ManageAccountPassword from "./components/demo/admin/admin/password.vue";
import ManageAccountAdd from "./components/demo/admin/admin/add.vue";
import ManageAccount from './components/demo/admin/admin/admin.vue';
import ManageAccountIndex from './components/demo/admin/admin/index.vue';
import ManageAccountEdit from './components/demo/admin/admin/edit.vue';
import ManageAccountPassword from './components/demo/admin/admin/password.vue';
import ManageAccountAdd from './components/demo/admin/admin/add.vue';
import ManagePembiayaan from './components/demo/admin/admin/pembiayaan.vue';
import ManageBelianKomoditi from './components/demo/admin/admin/beliankomoditi.vue';
import ManageKontrakMurabahah from './components/demo/admin/admin/kontrakmurabahah.vue';
import CetakPermohonan from './components/demo/admin/admin/cetakpermohonan.vue';
import ManagePembiayaan from "./components/demo/admin/admin/pembiayaan.vue";
import ManageBelianKomoditi from "./components/demo/admin/admin/beliankomoditi.vue";
import ManageKontrakMurabahah from "./components/demo/admin/admin/kontrakmurabahah.vue";
import CetakPermohonan from "./components/demo/admin/admin/cetakpermohonan.vue";
import ManagePenyata from "./components/demo/admin/admin/penyata-anggota.vue";
const default_component = { const default_component = {
template: '<div>Not found: {{ $route.path }}</div>' template: "<div>Not found: {{ $route.path }}</div>",
} };
export default [ export default [
{ {
path: '/', path: "/",
component: VoterHome, component: VoterHome,
children: [ children: [
{ {
path: '', path: "",
component: Home, component: Home,
name: 'Voter Home' name: "Voter Home",
}, },
{ {
path: 'mat27', path: "mat27",
component: Mat, component: Mat,
name: 'Mat' name: "Mat",
}, },
{ {
path: 'vote', path: "vote",
component: Vote, component: Vote,
name: 'Vote' name: "Vote",
}, },
{ {
path: 'result', path: "result",
component: Result, component: Result,
name: 'Result' name: "Result",
}, },
{ {
path: 'attendance', path: "attendance",
component: Attendance, component: Attendance,
name: 'Attendance' name: "Attendance",
}, },
{ {
path: 'zoom', path: "zoom",
component: Zoom, component: Zoom,
name: 'Zoom' name: "Zoom",
}, },
{ {
path: 'penyata', path: "/penyata/:no_anggota",
name: "penyata",
component: Penyata, component: Penyata,
name: 'Penyata' },
} ],
]
}, },
{ {
path: '/login', path: "/login",
component: VoterLogin, component: VoterLogin,
name: 'Voter Login' name: "Voter Login",
}, },
{ {
path: '/verification', path: "/verification",
component: VoterVerification, component: VoterVerification,
name: 'Voter Verify' name: "Voter Verify",
}, },
{ {
path: '/admin/login', path: "/admin/login",
component: AdminLogin, component: AdminLogin,
name: 'Admin Login' name: "Admin Login",
}, },
{ {
path: '/admin', path: "/admin",
component: AdminIndex, component: AdminIndex,
children: [ children: [
{ {
path: 'result/:election_id', path: "result/:election_id",
component: FinalResult, component: FinalResult,
name: 'Election Result' name: "Election Result",
}, },
{ {
path: '', path: "",
component: ManageElection, component: ManageElection,
children: [ children: [
{ {
path: '', path: "",
component: ManageElectionIndex, component: ManageElectionIndex,
name: 'Admin Home' name: "Admin Home",
}, },
{ {
path: 'result', path: "result",
component: ManageElectionResult, component: ManageElectionResult,
name: 'Current Result' name: "Current Result",
} },
],
]
}, },
{ {
path: 'position', path: "position",
component: ManagePosition, component: ManagePosition,
children: [ children: [
{ {
path:'', path: "",
component: ManagePositionIndex, component: ManagePositionIndex,
name: 'Kemaskini Jawatan' name: "Kemaskini Jawatan",
}, },
{ {
path:'add', path: "add",
component: ManagePositionAdd, component: ManagePositionAdd,
name: 'Tambah Jawatan' name: "Tambah Jawatan",
}, },
{ {
path: 'edit/:id', path: "edit/:id",
component: ManagePositionEdit, component: ManagePositionEdit,
name: 'Edit Position' name: "Edit Position",
} },
] ],
}, },
{ {
path: 'partylist', path: "partylist",
component: ManagePartylist, component: ManagePartylist,
children: [ children: [
{ {
path: '', path: "",
component: ManagePartylistIndex, component: ManagePartylistIndex,
name: 'Manage Partylist' name: "Manage Partylist",
}, },
{ {
path: 'add', path: "add",
component: ManagePartylistAdd, component: ManagePartylistAdd,
name: 'Add Partylist' name: "Add Partylist",
}, },
{ {
path: 'edit/:id', path: "edit/:id",
component: ManagePartylistEdit, component: ManagePartylistEdit,
name: 'Edit Partylist' name: "Edit Partylist",
} },
],
]
}, },
{ {
path: 'voter', path: "voter",
component: ManageVoter, component: ManageVoter,
children: [ children: [
{ {
path: '', path: "",
component: ManageVoterIndex, component: ManageVoterIndex,
name: 'Manage Voter' name: "Manage Voter",
}, },
{ {
path: 'add', path: "add",
component: ManageVoterAdd, component: ManageVoterAdd,
name: 'Tambah Pengundi' name: "Tambah Pengundi",
}, },
{ {
path: 'edit/:id', path: "edit/:id",
component: ManageVoterEdit, component: ManageVoterEdit,
name: 'Edit Voter' name: "Edit Voter",
}, },
{ {
path: 'kehadiran', path: "kehadiran",
component: KehadiranCalon, component: KehadiranCalon,
name: 'Kehadiran Calon' name: "Kehadiran Calon",
}, },
{ {
path: 'fizikal', path: "fizikal",
component: KehadiranCalonFizikal, component: KehadiranCalonFizikal,
name: 'Fizikal' name: "Fizikal",
}, },
{ {
path: 'maya', path: "maya",
component: KehadiranCalonMaya, component: KehadiranCalonMaya,
name: 'Maya' name: "Maya",
}, },
{ {
path: 'viewkehadiran', path: "viewkehadiran",
component: ViewKehadiranCalon, component: ViewKehadiranCalon,
name: 'Calon Hadir' name: "Calon Hadir",
}, },
],
]
}, },
{ {
path: 'nominee', path: "nominee",
component: ManageNominee, component: ManageNominee,
children: [ children: [
{ {
path: '', path: "",
component: ManageNomineeIndex, component: ManageNomineeIndex,
name: 'Maklumat Calon' name: "Maklumat Calon",
}, },
{ {
path: 'add', path: "add",
component: ManageNomineeAdd, component: ManageNomineeAdd,
name: 'Tambah Calon' name: "Tambah Calon",
}, },
{ {
path: 'edit/:id', path: "edit/:id",
component: ManageNomineeEdit, component: ManageNomineeEdit,
name: 'Edit Nominee' name: "Edit Nominee",
} },
],
]
}, },
{ {
path: '/account', path: "/account",
component: ManageAccount, component: ManageAccount,
children: [ children: [
{ {
path: '', path: "",
component: ManageAccountIndex, component: ManageAccountIndex,
name: 'Manage Account' name: "Manage Account",
}, },
{ {
path: 'update', path: "update",
component: ManageAccountEdit, component: ManageAccountEdit,
name: 'Update Account' name: "Update Account",
}, },
{ {
path: 'password', path: "password",
component: ManageAccountPassword, component: ManageAccountPassword,
name: 'Update Password' name: "Update Password",
}, },
{ {
path: 'add', path: "add",
component: ManageAccountAdd, component: ManageAccountAdd,
name: 'Add Account' name: "Add Account",
}, },
{ {
path: '/pembiayaan', path: "/pembiayaan",
name: 'Pembiayaan', name: "Pembiayaan",
component: ManagePembiayaan component: ManagePembiayaan,
}, },
{ {
path: '/beliankomoditi', path: "/beliankomoditi",
name: 'BelianKomoditi', name: "BelianKomoditi",
component: ManageBelianKomoditi component: ManageBelianKomoditi,
}, },
{ {
path: '/kontrakmurabahah', path: "/kontrakmurabahah",
name: 'KontrakMurabahah', name: "KontrakMurabahah",
component: ManageKontrakMurabahah component: ManageKontrakMurabahah,
}, },
{ {
path: '/cetakpermohonan', path: "/cetakpermohonan",
name: 'CetakPermohonan', name: "CetakPermohonan",
component: CetakPermohonan component: CetakPermohonan,
}, },
{
path: "/penyata-anggota",
name: "Penyata Anggota",
component: ManagePenyata,
},
{ {
path: '/:pathMatch(.*)*', path: "/:pathMatch(.*)*",
name: 'NotFound', name: "NotFound",
component: { component: {
template: '<div class="text-center mt-5">Not found: {{ $route.path }}</div>' template:
} '<div class="text-center mt-5">Not found: {{ $route.path }}</div>',
} },
},
],
},
] ],
} },
] ];
}
]