รายการเงินเดือน => ดาวน์โหลไฟล์
This commit is contained in:
parent
b331a79277
commit
dd91af09f3
2 changed files with 24 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue