Merge branch 'develop' into dev

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-01-27 09:41:45 +07:00
commit 9f670bbef5
4 changed files with 22 additions and 10 deletions

View file

@ -167,9 +167,9 @@ watch(
</q-card-section>
<q-separator />
<q-card-actions align="right">
<q-btn flat color="blue-7" icon="public" @click="onClickPublish()">
<!-- <q-btn flat color="blue-7" icon="public" @click="onClickPublish()">
<q-tooltip>เผยแพรอมลทนท</q-tooltip>
</q-btn>
</q-btn> -->
<q-space />
<q-btn type="submit" :label="`บันทึก`" color="public" />
</q-card-actions>

View file

@ -42,14 +42,14 @@ const columnsLeave = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "citizenId",
align: "left",
label: "เลขประจำตัวประชาชน",
field: "citizenId",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
// {
// name: "citizenId",
// align: "left",
// label: "",
// field: "citizenId",
// headerStyle: "font-size: 14px",
// style: "font-size: 14px",
// },
{
name: "fullName",
align: "left",
@ -113,6 +113,15 @@ const columnsLeave = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "leaveTotal",
align: "left",
label: "จำนวนวันที่ลา",
sortable: true,
field: "leaveTotal",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "status",
align: "left",
@ -134,6 +143,7 @@ const visibleColumnsLeave = ref<string[]>([
"org",
"position",
"level",
"leaveTotal",
"status",
]);

View file

@ -25,6 +25,7 @@ interface ListLeave {
position?: string;
level?: string;
hajjDayStatus?: boolean;
leaveTotal: number; //จำนวนวันที่ลา
}
interface FormData {
id: string;

View file

@ -88,6 +88,7 @@ export const useLeavelistDataStore = defineStore("leave", () => {
: "-",
status: e.status && convertSatatus(e.status),
statusText: e.status,
leaveTotal: e.leaveTotal,
}));
mainData.value = datalist;
rows.value = mainData.value;