โครงสร้างแสดงดาวน์โหลดรายงาน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-11 17:37:40 +07:00
parent 96d6e470f8
commit 293250ac03
4 changed files with 29 additions and 14 deletions

View file

@ -11,7 +11,7 @@ import { useCounterMixin } from "@/stores/mixin";
/**
* importType
*/
import type { DataOption } from "@/modules/02_organization/interface/index/Main";
import type { DataOrgRevision } from "@/modules/02_organization/interface/index/Main";
import type { OrgRevision } from "@/modules/02_organization/interface/response/organizational";
/**
@ -37,7 +37,7 @@ const modalDateTime = ref<boolean>(false); // ตั้งเวลาเผย
const isStatusData = ref<boolean>(false); //
const typeStructure = ref<string>(""); //
/** ประวัติโครงสร้าง*/
const itemHistory = ref<DataOption[]>([]); // List
const itemHistory = ref<DataOrgRevision[]>([]); // List
const historyId = ref<string>(""); // ID
const labelHistory = ref<string>("ประวัติโครงสร้าง"); //
const count = ref<number>(0);
@ -91,6 +91,8 @@ async function fetchHistory() {
itemHistory.value = filterData.map((e: OrgRevision) => ({
id: e.orgRevisionId,
name: e.orgRevisionName,
orgRevisionCreatedAt:
e.orgRevisionCreatedAt ?? date2Thai(e.orgRevisionCreatedAt),
}));
})
.catch((err) => {
@ -291,7 +293,10 @@ onMounted(async () => {
@click="onClickHistory(item.id, item.name)"
>
<q-item-section>
<q-item-label>{{ item.name }}</q-item-label>
<q-item-label
>{{ item.orgRevisionCreatedAt }}
{{ item.name }}</q-item-label
>
</q-item-section>
</q-item>
</q-list>