แก้ส่งtype
This commit is contained in:
parent
e808f11ab9
commit
28c44fa14e
4 changed files with 6 additions and 6 deletions
|
|
@ -102,7 +102,7 @@ async function fetchInformation(id: string) {
|
|||
.get(
|
||||
config.API.orgProfileById(
|
||||
id,
|
||||
`${props.type == "employee" ? `-${props.type}` : ""}`
|
||||
`${props.type.toLocaleLowerCase() == "employee" ? `-${props.type.toLocaleLowerCase()}` : ""}`
|
||||
)
|
||||
)
|
||||
.then(async (res) => {
|
||||
|
|
@ -146,7 +146,7 @@ async function fetchProfileGov(id: string) {
|
|||
.get(
|
||||
config.API.profileNewGovernmentCard(
|
||||
id,
|
||||
`${props.type == "employee" ? `-${props.type}` : ""}`
|
||||
`${props.type.toLocaleLowerCase() == "employee" ? `-${props.type.toLocaleLowerCase()}` : ""}`
|
||||
)
|
||||
)
|
||||
.then(async (res) => {
|
||||
|
|
@ -222,7 +222,7 @@ async function fetchProfile(id: string, avatarName: string) {
|
|||
<q-card style="width: 420px; overflow: visible">
|
||||
<q-toolbar>
|
||||
<q-toolbar-title class="text-subtitle1 text-bold"
|
||||
>ทะเบียนประวัติ
|
||||
>ทะเบียนประวัติ{{ props.type }}
|
||||
</q-toolbar-title>
|
||||
<q-btn
|
||||
icon="close"
|
||||
|
|
|
|||
|
|
@ -1803,7 +1803,7 @@ onMounted(async () => {
|
|||
:modal="modalPersonal"
|
||||
:id="personId"
|
||||
@update:modal="updatemodalPersonal"
|
||||
v-model:is-employee="isEmpType"
|
||||
:type="isEmpType"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
|
|
@ -2028,7 +2028,7 @@ onMounted(async () => {
|
|||
:modal="modalPersonal"
|
||||
:id="personId"
|
||||
@update:modal="updatemodalPersonal"
|
||||
v-model:is-employee="isEmpType"
|
||||
:type="isEmpType"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
|
|
@ -654,7 +654,7 @@ watch(
|
|||
<PopupPersonal
|
||||
:modal="modalPersonal"
|
||||
:id="personId"
|
||||
v-model:is-employee="isEmpType"
|
||||
:type="isEmpType"
|
||||
@update:modal="updatemodalPersonal"
|
||||
/>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue