refactor(position-review): rename profileSalaryTemp endpoint

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-04-09 10:26:49 +07:00
parent 94a35fd58f
commit 6420e97480

View file

@ -144,10 +144,10 @@ const baseColumns = ref<QTableColumn[]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(v, row) {
return row.amount
? `${Number(row.amount).toLocaleString()}${
row.amountSpecial !== 0 && row.amountSpecial
? ` (${Number(row.amountSpecial).toLocaleString()})`
return typeof row.amount === "number"
? `${row.amount.toLocaleString()}${
row.amountSpecial !== 0 && typeof row.amountSpecial === "number"
? ` (${row.amountSpecial.toLocaleString()})`
: ""
}`
: "-";
@ -161,7 +161,7 @@ const baseColumns = ref<QTableColumn[]>([
field: "mouthSalaryAmount",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => (v ? Number(v).toLocaleString() : "-"),
format: (v) => (typeof v === "number" ? v.toLocaleString() : "-"),
},
{
name: "positionSalaryAmount",
@ -171,7 +171,7 @@ const baseColumns = ref<QTableColumn[]>([
field: "positionSalaryAmount",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (v) => (v ? Number(v).toLocaleString() : "-"),
format: (v) => (typeof v === "number" ? v.toLocaleString() : "-"),
},
{
name: "organization",
@ -319,10 +319,12 @@ async function fetchData() {
// tabs.value === "PENDING"
// ? `/${empType.value}/${profileId.value}`
// : `/${empType.value}/done/${profileId.value}`;
// http
// .get(
// `${config.API.profileSalaryTemp}/${empType.value}/done/${profileId.value}`,
// )
http
.get(
`${config.API.profileSalaryTemp}/${empType.value}/done/${profileId.value}`,
)
.get(`${config.API.profileSalaryTemp}/${empType.value}/${profileId.value}`)
.then((res) => {
const data = res.data.result;
rowsMain.value = data;