Merge branch 'NiceDev' into develop
This commit is contained in:
parent
37bef4e836
commit
0b8b5d497c
13 changed files with 168 additions and 357 deletions
|
|
@ -1,28 +1,25 @@
|
|||
<script setup lang="ts">
|
||||
import { reactive, onMounted, ref, watch } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { reactive, onMounted, ref } from "vue";
|
||||
|
||||
/**importTyep*/
|
||||
import type {
|
||||
PersonInformation,
|
||||
FormSpec,
|
||||
} from "@/modules/06_evaluate/interface/evalute";
|
||||
|
||||
/** 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 จาก Tab1.vue*/
|
||||
const props = defineProps({
|
||||
educations: Array,
|
||||
data: {
|
||||
type: Array,
|
||||
type: Object as () => PersonInformation,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -31,7 +28,7 @@ const emit = defineEmits(["update:spec"]);
|
|||
const modal = ref<boolean>(false);
|
||||
const show = ref<boolean>(false);
|
||||
|
||||
const formData = reactive<any>({
|
||||
const formData = reactive<FormSpec>({
|
||||
isEducationalQft: false, // คุณวุฒิการศึกษา
|
||||
isGovermantServiceHtr: false, // ประวัติการรับราชการ
|
||||
isOperatingExp: false, // ประสบการณ์ในการปฏิบัติงาน
|
||||
|
|
@ -48,14 +45,9 @@ async function updateValue() {
|
|||
|
||||
/**
|
||||
* function fetchData ตรวจสอบคุณสมบัติ
|
||||
* @param id ประเมิน
|
||||
* @param data ตรวจสอบคุณสมบัติ
|
||||
*/
|
||||
async function fetchCheckSpec(data: any) {
|
||||
// showLoader();
|
||||
// await http
|
||||
// .get(config.API.evaluationCheckspecByid(id))
|
||||
// .then((res) => {
|
||||
// const data = res.data.result;
|
||||
async function fetchCheckSpec(data: PersonInformation) {
|
||||
formData.isEducationalQft = data.isEducationalQft;
|
||||
formData.isGovermantServiceHtr = data.isGovermantServiceHtr;
|
||||
formData.isOperatingExp = data.isOperatingExp;
|
||||
|
|
@ -63,13 +55,6 @@ async function fetchCheckSpec(data: any) {
|
|||
formData.isHaveSpecificQft = data.isHaveSpecificQft;
|
||||
formData.isHaveProLicense = data.isHaveProLicense;
|
||||
formData.isHaveMinPeriodOrHoldPos = data.isHaveMinPeriodOrHoldPos;
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// messageError($q, err);
|
||||
// })
|
||||
// .finally(() => {
|
||||
// hideLoader();
|
||||
// });
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -88,8 +73,6 @@ function closeModal() {
|
|||
|
||||
/**hook lifecycle*/
|
||||
onMounted(() => {
|
||||
// setTimeout(() => {
|
||||
// }, 1000);
|
||||
props.data && fetchCheckSpec(props.data);
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue