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