แก้ประเมินบุคคล
This commit is contained in:
parent
c7dde080e0
commit
74e65d80a4
3 changed files with 9 additions and 6 deletions
|
|
@ -143,7 +143,8 @@ async function onCilckprPeviousStep(type: string) {
|
|||
}
|
||||
|
||||
async function saveStep1() {
|
||||
saveEvaluation(formSpec, formDetail.value);
|
||||
showLoader();
|
||||
await saveEvaluation(formSpec, formDetail.value);
|
||||
}
|
||||
|
||||
async function updateCheckSpec(data: FormSpec) {
|
||||
|
|
@ -202,8 +203,6 @@ async function validateStep2() {
|
|||
}
|
||||
if (hasError.every((result) => result === true)) {
|
||||
store.step === 2 ? saveStep2() : saveStep6();
|
||||
} else {
|
||||
console.log("ไม่ผ่าน");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -262,6 +261,8 @@ onMounted(async () => {
|
|||
|
||||
<template>
|
||||
<div class="row q-col-gutter-md">
|
||||
<!-- currentStep = {{ store.currentStep }}<br/>
|
||||
step = {{ store.step }} -->
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<div class="toptitle">
|
||||
{{ props.title }}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,9 @@ async function fetchCheckDate() {
|
|||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
dateStartAnnounce.value = date2Thai(data.dateStartAnnounce);
|
||||
dateEndAnnounce.value = date2Thai(data.dateStartAnnounce);
|
||||
const endDate = new Date(data.dateStartAnnounce);
|
||||
endDate.setDate(endDate.getDate() + 30);
|
||||
dateEndAnnounce.value = date2Thai(endDate);
|
||||
})
|
||||
.catch((err) => {}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue