ปรับ โครงสร้างอัตรากำลัง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-01-10 11:34:15 +07:00
parent dd57d5d76a
commit a48f2afad7
10 changed files with 51 additions and 2 deletions

View file

@ -491,8 +491,9 @@ watch(
() => formData.isDirector,
(newData, oldData) => {
if (newData === true) {
formData.positionSign = !formData.positionSign
? "ผู้อำนวยการ" + props.dataTree?.orgRootName
? ''
: formData.positionSign;
} else {
formData.positionSign = "";

View file

@ -801,6 +801,14 @@ watch(
? col.value + " " + "(นั่งทับตำแหน่ง)"
: col.value
}}
<q-icon
name="mdi-star"
color="primary"
v-if="props.row.isDirector"
>
<q-tooltip>อำนวยการ/วหน</q-tooltip>
</q-icon>
</div>
<div v-else-if="col.name === 'posLevelName'">
{{

View file

@ -118,6 +118,7 @@ interface PosMaster {
profilePoslevel: string;
conditionReason: string;
isCondition: boolean;
isDirector: boolean;
}
interface Position2 {
id: string; // id ตำแหน่ง
@ -157,6 +158,7 @@ interface PosMaster2 {
profilePosition: string;
profilePoslevel: string;
profilePostype: string;
isDirector?: boolean;
}
interface HistoryPos {

View file

@ -432,6 +432,13 @@ onMounted(async () => {
? col.value + " " + "(นั่งทับตำแหน่ง)"
: col.value
}}
<q-icon
name="mdi-star"
color="primary"
v-if="props.row.isDirector"
>
<q-tooltip>อำนวยการ/วหน</q-tooltip>
</q-icon>
</div>
<div v-else-if="col.name === 'isPosition'">
<div v-if="col.value">

View file

@ -9,6 +9,7 @@ interface DataPositionNo {
isSit: boolean;
positions: Positions[];
isCondition: boolean;
isDirector?: boolean;
}
interface Positions {
@ -24,6 +25,7 @@ interface Positions {
positionField: string;
positionIsSelected: boolean;
positionName: string;
isDirector?: boolean;
}
export type { DataPositionNo };

View file

@ -692,6 +692,13 @@ onBeforeMount(async () => {
? col.value + " " + "(นั่งทับตำแหน่ง)"
: col.value
}}
<q-icon
name="mdi-star"
color="primary"
v-if="props.row.isDirector"
>
<q-tooltip>อำนวยการ/วหน</q-tooltip>
</q-icon>
</div>
<div v-else-if="col.name === 'isPosition'">
<div v-if="col.value">

View file

@ -29,6 +29,7 @@ interface DataPositionCondition {
profilePoslevel: string;
profilePostype: string;
positions: Positions[];
isDirector?: boolean;
}
interface Positions {

View file

@ -365,7 +365,7 @@ onMounted(async () => {
<!-- Table -->
<q-card-section
class="col-lg-9 col-md-8 col-xs-12 q-gutter-sm scroll"
style="height: 80vh;"
style="height: 80vh"
v-if="orgTreeId"
>
<div class="row col-12 q-gutter-sm">
@ -458,6 +458,17 @@ onMounted(async () => {
/>
<span v-else>-</span>
</div>
<div v-else-if="col.name === 'posMasterNo'">
{{ col.value }}
<q-icon
name="mdi-star"
color="primary"
v-if="props.row.isDirector"
>
<q-tooltip>อำนวยการ/วหน</q-tooltip>
</q-icon>
</div>
<div v-else>
{{ col.value ? col.value : "-" }}
</div>