props type

This commit is contained in:
STW_TTTY\stwtt 2024-05-17 17:20:50 +07:00
parent e66a5f8258
commit 30befa38c2
6 changed files with 44 additions and 15 deletions

View file

@ -21,6 +21,7 @@ const { messageError, findOrgName } = useCounterMixin();
/** propsDataProfile*/
const props = defineProps({
data: { type: Object, required: true },
type: { type: String, default: "" },
});
const profile = reactive<FormProfile>({
@ -110,7 +111,7 @@ watch(
</div>
<div class="col-xs-6 col-sm-3 row items-center">
<div class="col-12 q-pl-md">
<div class="col-12 text-top">ตำแหนงในสายงาน</div>
<div class="col-12 text-top">{{ props.type == 'employee' ? 'ตำแหน่ง':'ตำแหน่งในสายงาน'}}</div>
<div class="col-12 text-detail">
{{ profile.position }}
</div>
@ -118,7 +119,7 @@ watch(
</div>
<div class="col-xs-6 col-sm-3 row items-center">
<div class="col-12">
<div class="col-12 text-top">ประเภทตำแหน</div>
<div class="col-12 text-top">{{ props.type == 'employee' ? 'กลุ่มงาน':'ประเภทตำแหน่ง'}}</div>
<div class="col-12 text-detail">
{{ profile.positionLevel }}
</div>
@ -140,6 +141,7 @@ watch(
:modal="modalPersonal"
:id="profile.id"
@update:modal="updatemodalPersonal"
:type="props.type"
/>
</template>