Update DRP Pengadaan dan bug select box, authentication with menus

This commit is contained in:
Titan Hadiyan
2023-06-01 20:09:46 +07:00
parent 7ae5db711e
commit 3f0aafc0e9
7 changed files with 1339 additions and 1115 deletions

View File

@@ -121,21 +121,12 @@ const instansiOptions = new CustomStore({
data: response.data
};
})
// .then(data => {
// console.log(JSON.parse(data));
// })
.catch(() => { throw new Error('Terdapat kesalahan memuat data'); });
},
byKey: (key) => {
return fetch(URL_instansi+'/' + key)
.then((response) => response.json())
.then(response => {
console.log(response.instansi);
return {
data: response.instansi
};
})
.catch(() => { throw new Error('Terdapat kesalahan memuat data'); });
}
});
@@ -152,21 +143,12 @@ const bidangOptions = new CustomStore({
data: response.data
};
})
// .then(data => {
// console.log(JSON.parse(data));
// })
.catch(() => { throw new Error('Terdapat kesalahan memuat data'); });
},
byKey: (key) => {
return fetch(URL_bidang+'/' + key)
.then((response) => response.json())
.then(response => {
console.log(response.bidang);
return {
data: response.bidang
};
})
.catch(() => { throw new Error('Terdapat kesalahan memuat data'); });
}
});