ทะเบียนประวัติ => ตำแหน่ง/เงินเดือน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-02-14 13:27:15 +07:00
parent 160b93d627
commit fb5017b0e2

View file

@ -82,7 +82,7 @@
-
</div>
<div v-else class="table_ellipsis">
{{ col.value }}
{{ col.value ? col.value : "-" }}
</div>
</q-td>
<q-td auto-width>
@ -829,8 +829,8 @@ profileData.salary.columns.length == 0
"posNo",
"positionLine",
"positionPathSide",
"positionType",
"positionLevel",
"postionTypeName",
"positionLevelName",
"positionExecutive",
// "positionExecutiveSide",
// "salaryClass",
@ -939,22 +939,22 @@ const columns = ref<QTableProps["columns"]>([
// a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
// },
{
name: "positionType",
name: "postionTypeName",
align: "left",
label: "ตำแหน่งประเภท",
sortable: true,
field: "positionType",
field: "postionTypeName",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "positionLevel",
name: "positionLevelName",
align: "left",
label: "ระดับ",
sortable: true,
field: "positionLevel",
field: "positionLevelName",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
@ -1404,6 +1404,8 @@ const fetchData = async () => {
.get(config.API.profileSalaryId(profileId.value))
.then((res) => {
let data = res.data.result;
console.log(data);
rows.value = [];
data.map((e: any) => {
rows.value.push({
@ -1706,7 +1708,7 @@ const selectData = async (props: DataProps) => {
rawItem.value = props.row;
rowIndex.value = props.rowIndex;
id.value = props.row.id;
inputDate.value = formDataSalary.date;
inputDate.value = formDataSalary.date.toString();
// console.log(props.row);
// date.value = props.row.date;