diff --git a/src/modules/18_command/components/DialogAssign.vue b/src/modules/18_command/components/DialogAssign.vue index fbe10f73f..11288977a 100644 --- a/src/modules/18_command/components/DialogAssign.vue +++ b/src/modules/18_command/components/DialogAssign.vue @@ -9,7 +9,7 @@ import { usePagination } from "@/composables/usePagination"; import { useCounterMixin } from "@/stores/mixin"; import type { DataOption } from "@/modules/18_command/interface/index/Main"; -import type { DataProfile} from "@/modules/18_command/interface/response/Main"; +import type { DataProfile } from "@/modules/18_command/interface/response/Main"; import DialogHeader from "@/components/DialogHeader.vue"; @@ -68,7 +68,7 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, - { + { name: "posNo", align: "left", label: "เลขที่ตำแหน่ง", @@ -77,7 +77,7 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, - { + { name: "position", align: "left", label: "ตำแหน่งในสายงาน", @@ -86,7 +86,7 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, - { + { name: "positionType", align: "left", label: "ประเภทตำแหน่ง", @@ -96,7 +96,9 @@ const columns = ref([ style: "font-size: 14px", format(val, row) { return row.posTypeName - ? `${row.posTypeName} ${row.positionLevelName ? `(${row.positionLevelName})` : ""}` + ? `${row.posTypeName} ${ + row.positionLevelName ? `(${row.positionLevelName})` : "" + }` : "-"; }, }, @@ -119,7 +121,7 @@ async function fetchDataPerson() { { fieldName: type.value, keyword: keyword.value.trim(), - system: (route.meta?.Key as string) || 'COMMAND', + system: (route.meta?.Key as string) || "COMMAND", }, { params: params.value, @@ -137,7 +139,7 @@ async function fetchDataPerson() { function onSubmit() { if (selected.value.length == 0) { - dialogMessageNotify($q, "กรุณาเลือกบุคคลที่ต้องการหมอบหมายคำสั่ง"); + dialogMessageNotify($q, "กรุณาเลือกบุคคลที่ต้องการมอบหมายคำสั่ง"); return; } dialogConfirm($q, async () => { @@ -148,7 +150,7 @@ function onSubmit() { }); await props.fetchListCommand(); handleClose(); - success($q, "หมอบหมายคำสั่งสำเร็จ"); + success($q, "มอบหมายคำสั่งสำเร็จ"); } catch (error) { messageError($q, error); } finally { @@ -180,7 +182,7 @@ watch(modal, (newVal) => {