text color
This commit is contained in:
parent
352362e6df
commit
56e37f8602
2 changed files with 4 additions and 2 deletions
|
|
@ -306,7 +306,7 @@ onMounted(() => {
|
|||
<q-tooltip>รายละเอียด</q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
||||
<q-td v-for="col in props.cols" :key="col.name" :props="props" :class="props.row.statusText == 'REJECT' || props.row.statusText == 'DELETE' ? 'text-red':props.row.statusText == 'PENDING' ? 'text-orange':props.row.statusText == 'APPROVE' ? 'text-green':''">
|
||||
<div v-if="col.name == 'no'">
|
||||
{{
|
||||
(pagination.page - 1) * pagination.rowsPerPage +
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export const useLeavelistDataStore = defineStore("leave", () => {
|
|||
const filter = reactive<DateFilter>({
|
||||
year: new Date().getFullYear(), //*ปีในการยื่นขอใบลา(ใช้เป็น คศ.)
|
||||
type: "00000000-0000-0000-0000-000000000000", //*Id ประเภทการลา
|
||||
status: "NEW", //*สถานะการของลา
|
||||
status: "ALL", //*สถานะการของลา
|
||||
keyword: "", //keyword ค้นหา
|
||||
});
|
||||
|
||||
|
|
@ -79,6 +79,7 @@ export const useLeavelistDataStore = defineStore("leave", () => {
|
|||
}`
|
||||
: "-",
|
||||
status: e.status && convertSatatus(e.status),
|
||||
statusText: e.status,
|
||||
}));
|
||||
mainData.value = datalist;
|
||||
rows.value = mainData.value;
|
||||
|
|
@ -109,6 +110,7 @@ export const useLeavelistDataStore = defineStore("leave", () => {
|
|||
fullName: e.fullName,
|
||||
dateSendLeave: e.dateSendLeave && date2Thai(e.dateSendLeave),
|
||||
status: convertSatatus2(e.status),
|
||||
statusText: e.status,
|
||||
}));
|
||||
|
||||
mainData.value = datalist;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue