From 8a5a9f3e20b55dd0300b664192576ee1f05b757c Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 17 Apr 2025 10:07:15 +0700 Subject: [PATCH] fix --- .../components/DialogFormPosition.vue | 2 +- .../components/DialogSortPosition.vue | 31 +- .../02_organization/store/organizational.ts | 2 +- .../04_salaryLists/DialogMoveLevelMulti.vue | 316 +++++++++--------- 4 files changed, 168 insertions(+), 183 deletions(-) diff --git a/src/modules/02_organization/components/DialogFormPosition.vue b/src/modules/02_organization/components/DialogFormPosition.vue index 5786aed69..d023d8730 100644 --- a/src/modules/02_organization/components/DialogFormPosition.vue +++ b/src/modules/02_organization/components/DialogFormPosition.vue @@ -134,7 +134,7 @@ const columns = ref([ { name: "posTypeName", align: "left", - label: "ประเภทตำเเหน่ง", + label: "ตำแหน่งประเภท", sortable: true, field: "posTypeName", headerStyle: "font-size: 14px", diff --git a/src/modules/02_organization/components/DialogSortPosition.vue b/src/modules/02_organization/components/DialogSortPosition.vue index ac8824ca1..f9bf5a4fc 100644 --- a/src/modules/02_organization/components/DialogSortPosition.vue +++ b/src/modules/02_organization/components/DialogSortPosition.vue @@ -7,28 +7,20 @@ import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; import { useOrganizational } from "@/modules/02_organization/store/organizational"; -/** - * importType - */ +/** importType*/ import type { QTableProps } from "quasar"; import type { DataSortPos } from "@/modules/02_organization/interface/index/organizational"; -/** - * importComponents - */ +/** importComponents*/ import DialogHeader from "@/components/DialogHeader.vue"; -/** - * use - */ +/** use*/ const $q = useQuasar(); const store = useOrganizational(); const { dialogConfirm, showLoader, success, hideLoader, messageError } = useCounterMixin(); -/** - * props - */ +/** props*/ const modal = defineModel("sortPosition", { required: true }); const props = defineProps({ fetchDataTable: Function, @@ -56,9 +48,7 @@ function onDrop(from: number, to: number) { rows.value.splice(to, 0, rows.value.splice(from, 1)[0]); } -/** - * function บันทึกการจัดลำดับ - */ +/** function บันทึกการจัดลำดับ*/ function save() { dialogConfirm($q, () => { const data = rows.value; @@ -84,9 +74,7 @@ function save() { }); } -/** - * function เรียกรายการข้อมูลตำแหน่ง - */ +/** function เรียกรายการข้อมูลตำแหน่ง*/ function getData() { showLoader(); http @@ -103,7 +91,7 @@ function getData() { const dataList = res.data.result.data; const dataMap = dataList.map((item: any) => ({ id: item.id, - name: `${item.orgShortname}${ + name: `${item.orgShortname} ${ item.posMasterNoPrefix ? item.posMasterNoPrefix : "" }${item.posMasterNo ? item.posMasterNo : ""}${ item.posMasterNoSuffix ? item.posMasterNoSuffix : "" @@ -123,9 +111,7 @@ function getData() { }); } -/** - * callback function ทำงานเมื่อ modal = true ทำการเรียกข้อมูลตำแหน่ง - */ +/** callback function ทำงานเมื่อ modal = true ทำการเรียกข้อมูลตำแหน่ง*/ watch( () => modal.value, () => { @@ -135,6 +121,7 @@ watch( } ); +