updated retire
This commit is contained in:
parent
4c91f54d6a
commit
a9732db31f
3 changed files with 94 additions and 112 deletions
|
|
@ -20,9 +20,9 @@ const router = useRouter();
|
|||
const $q = useQuasar();
|
||||
const retireDate = ref<Date>();
|
||||
const { showLoader, hideLoader, messageError, date2Thai } = mixin;
|
||||
const empType = ref<string>(
|
||||
route.name !== "appoint-employee-detail" ? "" : "-employee"
|
||||
);
|
||||
|
||||
const isEmployee = defineModel("isEmployee", { type: String });
|
||||
const empType = ref<string>("");
|
||||
/** props*/
|
||||
const props = defineProps({
|
||||
id: {
|
||||
|
|
@ -165,6 +165,12 @@ watch(
|
|||
modal.value = props.modal ? props.modal : false;
|
||||
if (modal.value) {
|
||||
if (props.id) {
|
||||
empType.value =
|
||||
route.name === "appoint-employee-detail" ||
|
||||
isEmployee.value == "EMPLOYEE"
|
||||
? "-employee"
|
||||
: "";
|
||||
|
||||
fetchInformation(props.id);
|
||||
fetchProfileGov(props.id);
|
||||
}
|
||||
|
|
@ -196,8 +202,8 @@ async function fetchProfile(id: string, avatarName: string) {
|
|||
<q-card style="width: 420px; overflow: visible">
|
||||
<q-toolbar>
|
||||
<q-toolbar-title class="text-subtitle1 text-bold"
|
||||
>ทะเบียนประวัติ</q-toolbar-title
|
||||
>
|
||||
>ทะเบียนประวัติ
|
||||
</q-toolbar-title>
|
||||
<q-btn
|
||||
icon="close"
|
||||
unelevated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue