ปรับ ประเมินบุคคล => ข้อมูลส่วนตัว

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-12-26 11:09:51 +07:00
parent 4d9be43479
commit 864c7c3637
6 changed files with 233 additions and 84 deletions

View file

@ -4,16 +4,21 @@ import { useQuasar } from "quasar";
import http from "@/plugins/http";
import config from "@/app.config";
import { useCounterMixin } from "@/stores/mixin";
import { useEvaluateStore } from "@/modules/06_evaluate/store";
/** importComponents*/
import PopupCheckFeatures from "@/modules/06_evaluate/components/PopupCheckFeatures.vue";
/** importStores*/
import { useCounterMixin } from "@/stores/mixin";
import { useEvaluateStore } from "@/modules/06_evaluate/store";
/** use*/
const mixin = useCounterMixin();
const $q = useQuasar();
const store = useEvaluateStore();
const { showLoader, hideLoader, messageError } = mixin;
/** props ID จาก Tab1.vue*/
const props = defineProps({
evaluateId: {
type: String,
@ -21,9 +26,10 @@ const props = defineProps({
educations: Array,
});
const emit = defineEmits(["update:spec"]);
const modal = ref<boolean>(false);
const show = ref<boolean>(false);
const emit = defineEmits(["update:spec"]);
const formData = reactive<any>({
isEducationalQft: false, //
@ -34,10 +40,16 @@ const formData = reactive<any>({
isHaveProLicense: false, //
isHaveMinPeriodOrHoldPos: false, // ]
});
/** function อัปเดทตรวจสอบคุณสมบัติ*/
async function updateValue() {
emit("update:spec", formData);
}
/**
* function fetchData ตรวจสอบคณสมบ
* @param id ประเม
*/
async function fetchCheckSpec(id: string) {
showLoader();
await http
@ -60,18 +72,22 @@ async function fetchCheckSpec(id: string) {
});
}
/**
* function openPopup
* @param status
*/
function openModal(status: boolean) {
modal.value = true;
show.value = status;
}
/** function closePopup*/
function closeModal() {
modal.value = false;
}
/**hook lifecycle*/
onMounted(() => {
console.log(store.step);
props.evaluateId && fetchCheckSpec(props.evaluateId);
});
</script>