hrms-mgt/src/modules/13_salary/router.ts

83 lines
1.8 KiB
TypeScript

const salaryChart = () => import("@/modules/13_salary/views/salaryChart.vue");
const salaryEmployeeChart = () =>
import("@/modules/13_salary/views/salaryEmployeeChart.vue");
const salaryEmployeeRate = () =>
import("@/modules/13_salary/views/salaryEmployeeRate.vue");
const salaryRate = () => import("@/modules/13_salary/views/salaryRate.vue");
const salaryRound = () => import("@/modules/13_salary/views/salaryRound.vue");
const salaryLists = () => import("@/modules/13_salary/views/salaryLists.vue");
const salaryEmployeeLists = () =>
import("@/modules/13_salary/views/salaryEmployeeLists.vue");
export default [
{
path: "/salary",
name: "salaryChart",
component: salaryChart,
meta: {
Auth: true,
Key: [1.1],
Role: "salary",
},
},
{
path: "/salary-employee",
name: "salaryEmployeeChart",
component: salaryEmployeeChart,
meta: {
Auth: true,
Key: [1.1],
Role: "salary",
},
},
{
path: "/salary-employee/rate/:id",
name: "salaryEmployeeRate",
component: salaryEmployeeRate,
meta: {
Auth: true,
Key: [1.1],
Role: "salary",
},
},
{
path: "/salary/rate/:id",
name: "salaryRate",
component: salaryRate,
meta: {
Auth: true,
Key: [1.2],
Role: "salary",
},
},
{
path: "/salary/round",
name: "salaryRound",
component: salaryRound,
meta: {
Auth: true,
Key: [1.3],
Role: "salary",
},
},
{
path: "/salary/lists",
name: "salaryLists",
component: salaryLists,
meta: {
Auth: true,
Key: [1.4],
Role: "salary",
},
},
{
path: "/salary-employee/lists",
name: "salaryEmployeeLists",
component: salaryEmployeeLists,
meta: {
Auth: true,
Key: [1.4],
Role: "salary",
},
},
];