refactor(ui): apply +543 year formatting to columns

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-03-25 16:55:15 +07:00
parent 30b63f1b52
commit 5830d24118
8 changed files with 8 additions and 8 deletions

View file

@ -112,7 +112,7 @@ const columns = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return `${row.year + 543}`;
return `${row.year ? row.year + 543 : "-"}`;
},
sort: (a: number, b: number) => b - a,
},

View file

@ -92,7 +92,7 @@ const baseColumns = ref<QTableColumn[]>([
field: "year",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => v + 543,
format: (v) => (v ? v + 543 : "-"),
sort: (a: string, b: string) =>
a
.toString()

View file

@ -35,7 +35,7 @@ const columns = ref<QTableProps["columns"]>([
field: "year",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => v + 543,
format: (v) => (v ? v + 543 : "-"),
},
{
name: "receiveDate",

View file

@ -44,7 +44,7 @@ const columns = ref<QTableProps["columns"]>([
field: "year",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (val) => val + 543,
format: (val) => (val ? val + 543 : "-"),
},
{
name: "durationKPI",

View file

@ -67,7 +67,7 @@ const columns = ref<QTableProps["columns"]>([
field: "year",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => v + 543,
format: (v) => (v ? v + 543 : "-"),
},
{
name: "citizenId",

View file

@ -44,7 +44,7 @@ const columns = ref<QTableProps["columns"]>([
field: "year",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => v + 543,
format: (v) => (v ? v + 543 : "-"),
},
{
name: "citizenId",

View file

@ -75,7 +75,7 @@ const columns = ref<QTableProps["columns"]>([
field: "year",
headerStyle: "font-size: 14px",
style: "font-size: 14px ; width:10%",
format: (val) => val + 543,
format: (val) => (val ? val + 543 : "-"),
},
{
name: "projectName",

View file

@ -32,7 +32,7 @@ const columns = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val) {
return val + 543;
return val ? val + 543 : "-";
},
},
{