รายงานพัฒนา เพิ่มส่ง ปี / แก้ รายงานเครื่องราชอิสริยาภรณ์

This commit is contained in:
setthawutttty 2025-02-13 18:11:26 +07:00
parent 00699a4ff8
commit f6285a1ed7
3 changed files with 61 additions and 23 deletions

View file

@ -87,7 +87,14 @@ async function getReport() {
loadingBtn.value = true;
pdfSrc.value = undefined;
await http
.get(config.API.developmentReport() + `${typeReport.value}${typeReport.value == 'main' || typeReport.value == 'report3' ? `?rootId=${organization.value}`:``}`)
.get(
config.API.developmentReport() +
`${typeReport.value}${
typeReport.value == "main" || typeReport.value == "report3"
? `?rootId=${organization.value}&year=${year.value}`
: `?year=${year.value}`
}`
)
.then(async (res) => {
const data = res.data.result;
detailReport.value = data;