From 1e25bfc4b65458a3fa5d8dd772ba093635564d4d Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 27 Mar 2024 17:16:17 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=99=E0=B9=80=E0=B8=87=E0=B8=B7=E0=B8=99=E0=B9=80=E0=B8=94?= =?UTF-8?q?=E0=B8=B7=E0=B8=AD=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/Salary/01_PositionSalary.vue | 32 ++-- .../SalaryEmployeeLists/Dashboard.vue | 177 +++++++++--------- .../components/SalaryLists/Dashboard.vue | 6 +- .../components/SalaryLists/TabMain.vue | 2 +- .../13_salary/views/salaryEmployeeLists.vue | 57 +++--- src/modules/13_salary/views/salaryLists.vue | 77 ++++---- 6 files changed, 185 insertions(+), 166 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue b/src/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue index 879a5b8c9..853cf295f 100644 --- a/src/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue +++ b/src/modules/04_registryNew/components/detail/Salary/01_PositionSalary.vue @@ -87,20 +87,20 @@ const columns = ref([ }, { - name: "postionTypeName", + name: "positionType", align: "left", label: "ตำแหน่งประเภท", sortable: true, - field: "postionTypeName", + field: "positionType", headerStyle: "font-size: 14px", style: "font-size: 14px", }, { - name: "positionLevelName", + name: "positionLevel", align: "left", label: "ระดับ", sortable: true, - field: "positionLevelName", + field: "positionLevel", headerStyle: "font-size: 14px", style: "font-size: 14px", }, @@ -130,8 +130,8 @@ const visibleColumns = ref([ "positionSalaryAmount", "mouthSalaryAmount", "posNo", - "postionTypeName", - "positionLevelName", + "positionType", + "positionLevel", "templateDoc", "refCommandNo", ]); @@ -247,7 +247,9 @@ function fetchType() { } async function updateSelectType(val: string, status: boolean = false) { - const listLevel = await dataLevel.value.find((e: any) => e.id === val); + const listLevel = await dataLevel.value.find( + (e: any) => e.posTypeName === val + ); if (listLevel) { posLevelOptionMain.value = listLevel.posLevels.map((e: any) => ({ id: e.id, @@ -630,7 +632,15 @@ onMounted(() => {
- +
@@ -687,7 +697,7 @@ onMounted(() => { map-options option-label="name" :options="posTypeOptions" - option-value="id" + option-value="name" hide-bottom-space use-input input-debounce="0" @@ -713,7 +723,7 @@ onMounted(() => { map-options option-label="name" :options="posLevelOption" - option-value="id" + option-value="name" hide-bottom-space use-input input-debounce="0" diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/Dashboard.vue b/src/modules/13_salary/components/SalaryEmployeeLists/Dashboard.vue index d8f7e1519..54fa80a1b 100644 --- a/src/modules/13_salary/components/SalaryEmployeeLists/Dashboard.vue +++ b/src/modules/13_salary/components/SalaryEmployeeLists/Dashboard.vue @@ -1,5 +1,5 @@ diff --git a/src/modules/13_salary/components/SalaryLists/Dashboard.vue b/src/modules/13_salary/components/SalaryLists/Dashboard.vue index 487160d2a..25d8c3541 100644 --- a/src/modules/13_salary/components/SalaryLists/Dashboard.vue +++ b/src/modules/13_salary/components/SalaryLists/Dashboard.vue @@ -256,7 +256,7 @@ const visibleColumns = ref( : [] ); -const gruup = ref("กลุ่ม 1"); +const gruup = ref("ทั้งหมด"); const options = ref(["ทั้งหมด", "กลุ่ม 1", "กลุ่ม 2"]); @@ -327,12 +327,10 @@ const options = ref(["ทั้งหมด", "กลุ่ม 1", "กลุ่ ref="table" :columns="columns" :rows="rows" - row-key="subject" + row-key="id" flat bordered dense - class="custom-header-table" - :visible-columns="visibleColumns" >