รายละเอียดการประเมินผลการปฏิบัติราชการระดับบุคคล

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-30 14:08:58 +07:00
parent 0bfdcd73e7
commit 71c1dedd7b
4 changed files with 54 additions and 68 deletions

View file

@ -164,7 +164,7 @@ function onSubmit() {
}
async function getOrgOp() {
http
await http
.get(config.API.Kpiorg + `/${store.dataProfile.profileId}`)
.then((res) => {
const data = res.data.result;
@ -202,8 +202,7 @@ async function getOrgOp() {
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {});
});
}
function filterOption(val: any, update: Function, refData: string) {
@ -240,19 +239,13 @@ async function getProfile() {
.then(async (res) => {
const data = await res.data.result;
store.dataProfile = await data;
setTimeout(() => {
store.checkStep();
}, 1000);
store.checkStep();
})
.catch((e) => {
messageError($q, e);
});
}
async function getAll() {
await fetchEvaluation();
}
function sendToEvaluatore() {
dialogConfirm(
$q,
@ -337,6 +330,7 @@ function requireEdit() {
function openGovernment() {
modalGovernment.value = true;
}
function openStatus() {
router.push(`/probation-detail/${store.dataEvaluation.profileId}`);
}
@ -350,7 +344,7 @@ function sendToEvauator() {
id: [store.dataEvaluation.id],
})
.then(async () => {
await getAll();
await fetchEvaluation();
store.tabMain = "3";
})
.catch((e) => {
@ -369,7 +363,7 @@ function goToSummary() {
showLoader();
http
.get(config.API.sendToSummary(store.dataEvaluation.id))
.then(async (res) => {
.then(async () => {
await fetchEvaluation();
store.tabMain = "4";
store.tabOpen = 4;
@ -435,8 +429,8 @@ async function fetchProfileEvaluator(id: string) {
}
onMounted(async () => {
store.isUpdate = await false;
await getAll();
store.isUpdate = false;
await fetchEvaluation();
});
onUnmounted(() => {