fix bug popup ทะเบียนประวัติ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-20 15:14:46 +07:00
parent bfcd07e65b
commit 3219ccf902

View file

@ -3,6 +3,7 @@ import { ref, reactive, watch, onMounted } from "vue";
import { useQuasar } from "quasar";
import http from "@/plugins/http";
import config from "@/app.config";
import { useRouter } from "vue-router";
/** importType*/
import type { PersonalImformation } from "@/components/information/interface/response/Information";
@ -14,6 +15,7 @@ import { useCounterMixin } from "@/stores/mixin";
/** use*/
const mixin = useCounterMixin();
const router = useRouter();
const $q = useQuasar();
const retireDate = ref<Date>();
const { showLoader, hideLoader, messageError, date2Thai } = mixin;
@ -164,7 +166,7 @@ function loaderFunction() {
}
function redirecToRegistry() {
window.open(`/registry-new/${props.id}`, "_blank");
router.push(`/registry-new/${props.id}`);
modal.value = false;
}
@ -395,7 +397,10 @@ async function fetchProfile(id: string) {
label="ระดับ"
/>
</div>
<div class="col-xs-6 col-md-6" v-if="props.type !== 'employee'">
<div
class="col-xs-6 col-md-6"
v-if="props.type !== 'employee'"
>
<q-input
borderless
readonly
@ -403,7 +408,10 @@ async function fetchProfile(id: string) {
label="ตำแหน่งทางการบริหาร"
/>
</div>
<div class="col-xs-6 col-md-6" v-if="props.type !== 'employee'">
<div
class="col-xs-6 col-md-6"
v-if="props.type !== 'employee'"
>
<q-input
borderless
readonly