fixing display
This commit is contained in:
parent
07c816a8ef
commit
92d6804b31
1 changed files with 25 additions and 36 deletions
|
|
@ -675,6 +675,10 @@ onMounted(() => {
|
||||||
dense
|
dense
|
||||||
class="custom-header-table"
|
class="custom-header-table"
|
||||||
hide-pagination
|
hide-pagination
|
||||||
|
:pagination="{
|
||||||
|
page: 1,
|
||||||
|
rowsPerPage: 100,
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<template v-slot:header="props">
|
<template v-slot:header="props">
|
||||||
<q-tr :props="props">
|
<q-tr :props="props">
|
||||||
|
|
@ -693,8 +697,8 @@ onMounted(() => {
|
||||||
"
|
"
|
||||||
round
|
round
|
||||||
flat
|
flat
|
||||||
color="primary"
|
color="edit"
|
||||||
icon="mdi-pencil-outline"
|
icon="edit"
|
||||||
size="14px"
|
size="14px"
|
||||||
@click="onOpenDialog(props.row)"
|
@click="onOpenDialog(props.row)"
|
||||||
>
|
>
|
||||||
|
|
@ -709,10 +713,19 @@ onMounted(() => {
|
||||||
>
|
>
|
||||||
{{ `- ${row.position}`
|
{{ `- ${row.position}`
|
||||||
}}{{
|
}}{{
|
||||||
row.posType !== null || row.posLevel !== null
|
props.row.groupTarget === "OFFICER" &&
|
||||||
? ` (${row.posType ? row.posType : ""}${
|
(row.posType || row.posLevel)
|
||||||
row.posLevel ? " " + row.posLevel : ""
|
? ` (${
|
||||||
})`
|
row.posType &&
|
||||||
|
(row.posType == "อำนวยการ" ||
|
||||||
|
row.posType == "บริหาร")
|
||||||
|
? row.posType
|
||||||
|
: ""
|
||||||
|
}${row.posLevel ? row.posLevel : ""})`
|
||||||
|
: row.posLevel
|
||||||
|
? ` (${row.posLevel})`
|
||||||
|
: row.posType
|
||||||
|
? ` (${row.posType})`
|
||||||
: ""
|
: ""
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -751,6 +764,10 @@ onMounted(() => {
|
||||||
dense
|
dense
|
||||||
class="custom-header-table"
|
class="custom-header-table"
|
||||||
hide-pagination
|
hide-pagination
|
||||||
|
:pagination="{
|
||||||
|
page: 1,
|
||||||
|
rowsPerPage: 100,
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<template v-slot:header="props">
|
<template v-slot:header="props">
|
||||||
<q-tr :props="props">
|
<q-tr :props="props">
|
||||||
|
|
@ -769,8 +786,8 @@ onMounted(() => {
|
||||||
"
|
"
|
||||||
round
|
round
|
||||||
flat
|
flat
|
||||||
color="primary"
|
color="edit"
|
||||||
icon="mdi-pencil-outline"
|
icon="edit"
|
||||||
size="14px"
|
size="14px"
|
||||||
@click="
|
@click="
|
||||||
() => {
|
() => {
|
||||||
|
|
@ -1100,13 +1117,6 @@ onMounted(() => {
|
||||||
option-value="name"
|
option-value="name"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
:rules="[
|
|
||||||
(val:string) =>
|
|
||||||
!!val || `${formGroupTarget.groupTargetSub !== 'EMPLOYEE' &&
|
|
||||||
formGroupTarget.groupTargetSub !== 'EMPLOYEETEMP'
|
|
||||||
? 'กรุณาเลือกตำแหน่งประเภท'
|
|
||||||
: 'กรุณาเลือกกลุ่มงาน ' }`,
|
|
||||||
]"
|
|
||||||
input-class="text-red"
|
input-class="text-red"
|
||||||
:label="
|
:label="
|
||||||
formGroupTarget.groupTargetSub !== 'EMPLOYEE' &&
|
formGroupTarget.groupTargetSub !== 'EMPLOYEE' &&
|
||||||
|
|
@ -1141,13 +1151,6 @@ onMounted(() => {
|
||||||
? 'ระดับตำแหน่ง'
|
? 'ระดับตำแหน่ง'
|
||||||
: 'ระดับชั้นงาน'
|
: 'ระดับชั้นงาน'
|
||||||
"
|
"
|
||||||
:rules="[
|
|
||||||
(val:string) =>
|
|
||||||
!!val || `${formGroupTarget.groupTargetSub !== 'EMPLOYEE' &&
|
|
||||||
formGroupTarget.groupTargetSub !== 'EMPLOYEETEMP'
|
|
||||||
? 'กรุณาเลือกระดับตำแหน่ง'
|
|
||||||
: 'กรุณาเลือกระดับชั้นงาน ' }`,
|
|
||||||
]"
|
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -1398,13 +1401,6 @@ onMounted(() => {
|
||||||
? 'ตำแหน่งประเภท'
|
? 'ตำแหน่งประเภท'
|
||||||
: 'กลุ่มงาน'
|
: 'กลุ่มงาน'
|
||||||
"
|
"
|
||||||
:rules="[
|
|
||||||
(val:string) =>
|
|
||||||
!!val || `${formGroupTarget.groupTargetSub !== 'EMPLOYEE' &&
|
|
||||||
formGroupTarget.groupTargetSub !== 'EMPLOYEETEMP'
|
|
||||||
? 'กรุณาเลือกตำแหน่งประเภท'
|
|
||||||
: 'กรุณาเลือกกลุ่มงาน ' }`,
|
|
||||||
]"
|
|
||||||
clearable
|
clearable
|
||||||
@update:model-value="updatePosTypeName"
|
@update:model-value="updatePosTypeName"
|
||||||
/>
|
/>
|
||||||
|
|
@ -1432,13 +1428,6 @@ onMounted(() => {
|
||||||
"
|
"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
lazy-rules
|
lazy-rules
|
||||||
:rules="[
|
|
||||||
(val:string) =>
|
|
||||||
!!val || `${formGroupTarget.groupTargetSub !== 'EMPLOYEE' &&
|
|
||||||
formGroupTarget.groupTargetSub !== 'EMPLOYEETEMP'
|
|
||||||
? 'กรุณาเลือกระดับตำแหน่ง'
|
|
||||||
: 'กรุณาเลือกระดับชั้นงาน ' }`,
|
|
||||||
]"
|
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue