This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-06-27 11:08:01 +07:00
parent 6399e23d28
commit aafef60aab
3 changed files with 15 additions and 9 deletions

View file

@ -89,6 +89,8 @@ function getRound() {
store.roundYear = roundFilter.value.year;
store.isClosedRound = roundFilter.value.isClose;
console.log(roundFilter.value);
await getSnap(roundFilter.value.shortCode);
await getAgency(roundFilter.value.revisionId);
await getAgencyPosition(roundFilter.value.revisionId);
@ -150,8 +152,8 @@ function getSnap(code: string) {
* @param id revisionId
*/
async function getAgency(id: string) {
id &&
(await http
if (id) {
await http
.get(config.API.activeOrganizationRootById(id))
.then(async (res) => {
const data = res.data.result;
@ -170,7 +172,11 @@ async function getAgency(id: string) {
})
.catch((err) => {
messageError($q, err);
}));
});
} else {
agencyOptionsMain.value = [];
agencyFilter.value = "";
}
}
/**

View file

@ -120,15 +120,13 @@ function fetchTree(id: string) {
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
/** function
/** function
* @param data อมลทงหมดของ row
*/
*/
function updateSelected(data: DataTree) {
orgName.value = data.orgTreeName;
formData.node = data.orgLevel;
@ -240,8 +238,7 @@ onMounted(async () => {
</template>
</datepicker>
</div>
<div class="col-xs-10 col-sm-10 col-md-10">
</div>
<div class="col-xs-10 col-sm-10 col-md-10"></div>
<div class="col-xs-12 col-sm-12 col-md-12">
<q-input
outlined

View file

@ -217,6 +217,9 @@ function onSubmit() {
orgChild3Id: props.orgLevel === 3 ? props.treeId : null,
orgChild4Id: props.orgLevel === 4 ? props.treeId : null,
positions: positionsData,
isDirector: false,
isOfficer: false,
// succession: succession.value,
};
try {