ปรับ โครงสร้างอัตรากำลัง
This commit is contained in:
parent
dd57d5d76a
commit
a48f2afad7
10 changed files with 51 additions and 2 deletions
|
|
@ -491,8 +491,9 @@ watch(
|
|||
() => formData.isDirector,
|
||||
(newData, oldData) => {
|
||||
if (newData === true) {
|
||||
|
||||
formData.positionSign = !formData.positionSign
|
||||
? "ผู้อำนวยการ" + props.dataTree?.orgRootName
|
||||
? ''
|
||||
: formData.positionSign;
|
||||
} else {
|
||||
formData.positionSign = "";
|
||||
|
|
|
|||
|
|
@ -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'">
|
||||
{{
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ interface DataPositionCondition {
|
|||
profilePoslevel: string;
|
||||
profilePostype: string;
|
||||
positions: Positions[];
|
||||
isDirector?: boolean;
|
||||
}
|
||||
|
||||
interface Positions {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue