Merge branch 'Nice' into develop

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-09-15 14:27:12 +07:00
commit 5901c10141

View file

@ -181,7 +181,8 @@ const document = computed(() => {
return baseDocument.value;
} else {
return baseDocument.value.filter(
(e: DataDocument) => e.val === "report2" || e.val === "report4"
(e: DataDocument) =>
e.val === "report2" || e.val === "report4" || e.val === "report1"
);
}
});
@ -538,17 +539,17 @@ function getSummary() {
}
/**
* function DownloadReport
* function ดาวนโหลดรายงาน
* @param val ประเภทเอกสาร
* @param name อเอกสาร
*/
async function onClickDownloadReport(val: string, name: string) {
const newReport =
store.typeOrganizational !== "draft" && val === "report2"
? "report2-history"
: val;
showLoader();
await http
.get(config.API.orgReport(newReport) + `/${orgRootId.value}`)
.post(config.API.orgReport(val), {
node: orgLevel.value,
nodeId: treeId.value,
})
.then(async (res) => {
const data = res.data.result;
if (data) {
@ -691,14 +692,8 @@ watch(
</div>
<!-- v-if="store.typeOrganizational === 'draft'" -->
<q-btn
v-if="orgLevel == 0"
flat
round
dense
color="deep-purple"
icon="save_alt"
>
<!-- v-if="orgLevel == 0" -->
<q-btn flat round dense color="deep-purple" icon="save_alt">
<q-menu>
<q-list
dense