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

120 lines
2.8 KiB
TypeScript
Raw Normal View History

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");
const commandSalary = () =>
import("@/modules/13_salary/views/commandSalary.vue");
2024-08-01 15:25:48 +07:00
const commandSalaryAdd = () =>
import("@/modules/13_salary/components/Command/detail.vue");
// const commandSalary = () => import("@/modules/13_salary/views/commandSalary.vue");
// const commandSalary = () => import("@/modules/13_salary/views/commandSalary.vue");
export default [
{
path: "/salary",
name: "salaryChart",
component: salaryChart,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_SALARY_CHART_OFFICER",
Role: "STAFF",
},
},
{
path: "/salary/rate/:id",
name: "salaryRate",
component: salaryRate,
meta: {
Auth: true,
Key: "SYS_SALARY_CHART_OFFICER",
Role: "STAFF",
},
},
{
path: "/salary-employee",
name: "salaryEmployeeChart",
component: salaryEmployeeChart,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_WAGE_CHART_EMP",
Role: "STAFF",
},
},
{
path: "/salary-employee/rate/:id",
name: "salaryEmployeeRate",
component: salaryEmployeeRate,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_WAGE_CHART_EMP",
Role: "STAFF",
},
},
{
path: "/salary/round",
name: "salaryRound",
component: salaryRound,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_SALARY_ROUND",
Role: "STAFF",
},
},
{
path: "/salary/lists",
name: "salaryLists",
component: salaryLists,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_SALARY_OFFICER",
Role: "STAFF",
},
},
{
path: "/salary-employee/lists",
name: "salaryEmployeeLists",
component: salaryEmployeeLists,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_WAGE",
Role: "STAFF",
},
},
{
path: "/salary/command",
name: "commandSalary",
component: commandSalary,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_SALARY_COMMAND",
Role: "STAFF",
},
},
{
path: "/salary/command/add",
name: "commandSalaryAdd",
component: commandSalaryAdd,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_SALARY_COMMAND",
Role: "STAFF",
},
},
{
path: "/salary/command/detail/:id",
name: "commandSalaryDatail",
component: commandSalaryAdd,
meta: {
Auth: true,
2024-08-01 15:25:48 +07:00
Key: "SYS_SALARY_COMMAND",
Role: "STAFF",
},
},
];