แก้ชื่อ
This commit is contained in:
parent
a6320f18da
commit
bb864d8913
1 changed files with 10 additions and 6 deletions
|
|
@ -516,9 +516,9 @@ async function onSearch() {
|
|||
total.value = res.data.result.total;
|
||||
rows.value = data.map((item: any, index: number) => ({
|
||||
no: index + 1,
|
||||
fullName: `${item.prefix ?? ""}${item.firstName ?? ""} ${
|
||||
item.lastName ?? ""
|
||||
}`,
|
||||
fullName: item.firstName
|
||||
? `${item.prefix ?? ""}${item.firstName ?? ""} ${item.lastName ?? ""}`
|
||||
: "-",
|
||||
posNo: item.searchShortName ?? "-",
|
||||
position: item.position ?? "-",
|
||||
posType: item.posTypeName ?? "-",
|
||||
|
|
@ -556,8 +556,8 @@ function exportToExcel() {
|
|||
XLSX.utils.sheet_add_aoa(worksheet, [headers], { origin: "A1" });
|
||||
|
||||
const workbook = XLSX.utils.book_new();
|
||||
XLSX.utils.book_append_sheet(workbook, worksheet, "ข้อมูล"); //ชื่อไฟล เเละ ชื่อ sheet
|
||||
XLSX.writeFile(workbook, "ข้อมูล.xlsx");
|
||||
XLSX.utils.book_append_sheet(workbook, worksheet, "รายงานทะเบียนประวัติ"); //ชื่อไฟล เเละ ชื่อ sheet
|
||||
XLSX.writeFile(workbook, "รายงานทะเบียนประวัติ.xlsx");
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
|
|
@ -624,7 +624,11 @@ onMounted(async () => {
|
|||
<template v-if="org" v-slot:append>
|
||||
<q-icon
|
||||
name="cancel"
|
||||
@click.stop.prevent="org = '',storeReport.formFilter.node = null,storeReport.formFilter.nodeId = null"
|
||||
@click.stop.prevent="
|
||||
(org = ''),
|
||||
(storeReport.formFilter.node = null),
|
||||
(storeReport.formFilter.nodeId = null)
|
||||
"
|
||||
class="cursor-pointer"
|
||||
/>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue