ปรับ ประเมินบุคคล => ข้อมูลส่วนตัว
This commit is contained in:
parent
4d9be43479
commit
864c7c3637
6 changed files with 233 additions and 84 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue