โครงสร้างแสดงดาวน์โหลดรายงาน
This commit is contained in:
parent
96d6e470f8
commit
293250ac03
4 changed files with 29 additions and 14 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue