This commit is contained in:
Warunee Tamkoo 2024-05-13 18:05:47 +07:00
parent f453b95f32
commit c3cc2e0aeb
7 changed files with 484 additions and 168 deletions

View file

@ -169,10 +169,12 @@ function changRound() {
}
function redirectViewDetail(id: string) {
store.tabMain = "1";
router.push(`/KPI/${id}`);
}
function onClickAddList() {
async function onClickAddList() {
await getProfile();
modalDialog.value = true;
}
@ -194,11 +196,11 @@ function onSubmit() {
lastName: formRound.lastName,
evaluatorId: formRound.evaluatorId,
commanderId: formRound.commanderId,
commanderHighId: formRound.commanderHighId,
commanderId: formRound.commanderId == "" ? null : formRound.commanderId,
commanderHighId:
formRound.commanderHighId == "" ? null : formRound.commanderHighId,
})
.then((res) => {
console.log(res);
const id = res.data.result;
redirectViewDetail(id);
onCloseDialog();
@ -314,7 +316,6 @@ function filterOption(val: any, update: Function, refData: string) {
}
onMounted(() => {
getProfile();
fetchRoundOption("main");
getOrgOp();
});