From 1267b04af3591d9750f00bf1c38b8d9c3bdb5b91 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Mon, 16 Sep 2024 14:38:11 +0700 Subject: [PATCH] =?UTF-8?q?Template=20=E0=B8=AA=E0=B8=B3=E0=B8=AB=E0=B8=A3?= =?UTF-8?q?=E0=B8=B1=E0=B8=9A=E0=B8=A5=E0=B8=87=E0=B9=83=E0=B8=99=E0=B8=95?= =?UTF-8?q?=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87/?= =?UTF-8?q?=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94=E0=B8=B7?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/05_command/api.command.ts | 14 +- .../05_command/interface/index/Main.ts | 15 +- src/modules/05_command/views/salaryLists.vue | 291 ++++++++++-------- 3 files changed, 194 insertions(+), 126 deletions(-) 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(() => { > - {{ item.name }} + {{ item.sysName }} @@ -269,6 +281,21 @@ onMounted(() => {
+
+ +
{ bordered :paging="true" dense + :rows-per-page-options="[1, 25, 50, 100]" + @update:pagination="updatePagination" :visible-columns="visibleColumns" > + +