ทะเบียนประวัติ ==> fix เลขที่ตำแหน่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-03-17 16:01:02 +07:00
parent 6da4d8efc8
commit a8f0a486e3
7 changed files with 43 additions and 22 deletions

View file

@ -36,7 +36,10 @@ const positionKeyword = ref<string>("");
//
const typeKeywordOps = ref<DataOption[]>([
{ id: "no", name: "ตำแหน่งเลขที่" },
{
id: "no",
name: employeeClass.value === "officer" ? "เลขที่ตำแหน่ง" : "ตำแหน่งเลขที่",
},
{ id: "position", name: "ตำแหน่ง" },
]);
@ -69,7 +72,8 @@ const columns = ref<QTableProps["columns"]>([
{
name: "posNo",
align: "left",
label: "ตำแหน่งเลขที่",
label:
employeeClass.value === "officer" ? "เลขที่ตำแหน่ง" : "ตำแหน่งเลขที่",
field: "posNo",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
@ -201,8 +205,14 @@ function closeDialog() {
dense
bg-color="white"
v-model="Keyword"
placeholder="ตำแหน่งเลขที่"
:rules="[(val:string) => !!val || `${'กรุณากรอก ตำแหน่งเลขที่'}`]"
:placeholder="
employeeClass === 'officer'
? 'เลขที่ตำแหน่ง'
: 'ตำแหน่งเลขที่'
"
:rules="[(val:string) => !!val || employeeClass === 'officer'
? 'กรุณากรอก เลขที่ตำแหน่ง'
: 'กรุณากรอก ตำแหน่งเลขที่']"
hide-bottom-space
/>
</div>