no message
This commit is contained in:
parent
a487e8445d
commit
56f4d36bf8
3 changed files with 33 additions and 21 deletions
|
|
@ -58,7 +58,6 @@ function fetchEvaluation() {
|
|||
formProfile.status = store.convertStatus(data.evaluationStatus);
|
||||
formProfile.result = store.convertResults(data.evaluationResults);
|
||||
fetchProfile(data.profileId);
|
||||
console.log(store.dataEvaluation);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -127,26 +126,27 @@ async function clearDialog() {
|
|||
|
||||
function onSubmit() {
|
||||
dialogConfirm($q, () => {
|
||||
if(id.value){
|
||||
if (id.value) {
|
||||
showLoader();
|
||||
http
|
||||
.put(config.API.kpiEvaluationCheck + `/${id.value}`, {
|
||||
evaluatorId: evaluatorId.value ? evaluatorId.value.id:null,
|
||||
commanderId: commanderId.value ? commanderId.value.id:null,
|
||||
commanderHighId: commanderHighId.value ? commanderHighId.value.id:null,
|
||||
})
|
||||
.then((res) => {
|
||||
success($q, "บันทึกสำเร็จ");
|
||||
clearDialog();
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
http
|
||||
.put(config.API.kpiEvaluationCheck + `/${id.value}`, {
|
||||
evaluatorId: evaluatorId.value ? evaluatorId.value.id : null,
|
||||
commanderId: commanderId.value ? commanderId.value.id : null,
|
||||
commanderHighId: commanderHighId.value
|
||||
? commanderHighId.value.id
|
||||
: null,
|
||||
})
|
||||
.then((res) => {
|
||||
success($q, "บันทึกสำเร็จ");
|
||||
clearDialog();
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue