diff --git a/src/api/05_command/api.command.ts b/src/api/05_command/api.command.ts
index 6d174539..b332aefb 100644
--- a/src/api/05_command/api.command.ts
+++ b/src/api/05_command/api.command.ts
@@ -1,7 +1,17 @@
import env from "../index";
const order = `${env.API_URI}/org`;
-
+const commandSys = `${env.API_URI}/org/commandSys`;
+const commandSalary = `${env.API_URI}/org/commandSalary`;
export default {
commandType: `${order}/commandType`,
- commandSysList: `${order}/commandSys/list`,
+ commandSysList: `${commandSys}/list`,
+ commandSalary,
+ commandSalaryDetail: (
+ page: number,
+ pageSize: number,
+ isActive: boolean,
+ commandSysId: string
+ ) =>
+ `${commandSalary}/admin?page=${page}&pageSize=${pageSize}&isActive=${isActive}&commandSysId=${commandSysId}`,
+ commandSalaryById:(id:string)=>`${commandSalary}/${id}`
};
diff --git a/src/modules/05_command/interface/index/Main.ts b/src/modules/05_command/interface/index/Main.ts
index 6a801da2..72ba65cb 100644
--- a/src/modules/05_command/interface/index/Main.ts
+++ b/src/modules/05_command/interface/index/Main.ts
@@ -7,6 +7,16 @@ interface DateOption {
id: string;
}
+interface CommandSysType {
+ id: string;
+ createdAt: Date | null;
+ lastUpdatedAt: Date | null;
+ createdFullName: string;
+ lastUpdateFullName: string;
+ sysName: string;
+ sysDescription: string;
+}
+
interface ActiveOptions {
value: boolean;
label: string;
@@ -22,9 +32,9 @@ interface ListOrder {
}
interface ListTemplateSalary {
- id: number | null;
+ id: string;
name: string;
- status?: boolean;
+ isActive?: boolean;
}
interface Tabs {
@@ -38,4 +48,5 @@ export type {
ListOrder,
Tabs,
ListTemplateSalary,
+ CommandSysType
};
diff --git a/src/modules/05_command/views/salaryLists.vue b/src/modules/05_command/views/salaryLists.vue
index 3ce0a08e..3b9f0326 100644
--- a/src/modules/05_command/views/salaryLists.vue
+++ b/src/modules/05_command/views/salaryLists.vue
@@ -1,5 +1,5 @@
@@ -253,7 +265,7 @@ onMounted(() => {
>
สถานะการใช้งาน