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

@ -29,6 +29,7 @@ const props = defineProps({
type: Boolean,
requier: true,
},
type: { type: String, default: "" },
});
/** emit*/
@ -394,7 +395,7 @@ async function fetchProfile(id: string) {
label="ระดับ"
/>
</div>
<div class="col-xs-6 col-md-6">
<div class="col-xs-6 col-md-6" v-if="props.type !== 'employee'">
<q-input
borderless
readonly
@ -402,7 +403,7 @@ async function fetchProfile(id: string) {
label="ตำแหน่งทางการบริหาร"
/>
</div>
<div class="col-xs-6 col-md-6">
<div class="col-xs-6 col-md-6" v-if="props.type !== 'employee'">
<q-input
borderless
readonly