รายการเงินเดือน => ดาวน์โหลไฟล์

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-03-05 10:52:14 +07:00
parent b331a79277
commit dd91af09f3
2 changed files with 24 additions and 3 deletions

View file

@ -160,17 +160,17 @@ function getAgency(id: string) {
* function เรยกขอมลหนยวงานปจ
* @param id revisionId
*/
function getAgencyPosition(id: string) {
async function getAgencyPosition(id: string) {
if (id) {
http
.get(config.API.keycloakPositionByid(id))
.then((res) => {
.then(async (res) => {
const data = res.data.result;
const position = agencyOptions.value?.find(
(e: DataOption) => e.id === data.rootId
);
agencyFilter.value = position ? position.id : "";
agencyFilter.value = await (position ? position.id : "");
if (agencyFilter.value && roundFilter.value.id && snapFilter.value) {
fetchSalalyPeriod(