Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m21s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m21s
* develop: fix:bug close Dialog fix:filter posMasterNo
This commit is contained in:
commit
7ba8bb18c0
1 changed files with 26 additions and 14 deletions
|
|
@ -141,7 +141,7 @@ const visibleColumnslist = ref<any>([
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/**หัวตาราง */
|
/**หัวตาราง */
|
||||||
const columns = ref<QTableProps["columns"]>([
|
const columnsBase = ref<QTableProps["columns"]>([
|
||||||
{
|
{
|
||||||
name: "no",
|
name: "no",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|
@ -178,7 +178,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
format(val, row) {
|
format(val, row) {
|
||||||
return `${row.root} (${row.rootShortName}) ${row.nodeName} (${row.nodeShortName}${row.posMasterNo}) `;
|
return `${row.root} (${row.rootShortName}) ${row.nodeName} (${row.nodeShortName} ${row.posMasterNo}) `;
|
||||||
},
|
},
|
||||||
sort: (a: string, b: string) =>
|
sort: (a: string, b: string) =>
|
||||||
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||||
|
|
@ -247,6 +247,17 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
const columns = computed(() =>
|
||||||
|
roleAdmin.value
|
||||||
|
? columnsBase.value
|
||||||
|
: columnsBase.value?.filter(
|
||||||
|
(col) =>
|
||||||
|
col.name !== "no" &&
|
||||||
|
col.name !== "draft" &&
|
||||||
|
col.name !== "refCommandNo"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* แปลงสถานะพนักงาน
|
* แปลงสถานะพนักงาน
|
||||||
* @param val type
|
* @param val type
|
||||||
|
|
@ -539,6 +550,7 @@ function selectData(pid: string, draft: string) {
|
||||||
if (roleAdmin.value && draft === "ส่งตัวแล้ว") {
|
if (roleAdmin.value && draft === "ส่งตัวแล้ว") {
|
||||||
personalId.value = pid;
|
personalId.value = pid;
|
||||||
modal.value = true;
|
modal.value = true;
|
||||||
|
editRow.value = false;
|
||||||
} else {
|
} else {
|
||||||
router.push("/placement/personal-detail/" + pid);
|
router.push("/placement/personal-detail/" + pid);
|
||||||
}
|
}
|
||||||
|
|
@ -819,18 +831,18 @@ async function getWorkFlow() {
|
||||||
roleAdmin.value = data.isOfficer;
|
roleAdmin.value = data.isOfficer;
|
||||||
if (roleAdmin.value === false) {
|
if (roleAdmin.value === false) {
|
||||||
displayAdd.value = false;
|
displayAdd.value = false;
|
||||||
visibleColumns.value = [
|
// visibleColumns.value = [
|
||||||
"position",
|
// "position",
|
||||||
"fullName",
|
// "fullName",
|
||||||
"examNumber",
|
// "examNumber",
|
||||||
"idCard",
|
// "idCard",
|
||||||
"positionNumber",
|
// "positionNumber",
|
||||||
"organizationName",
|
// "organizationName",
|
||||||
"reportingDate",
|
// "reportingDate",
|
||||||
"bmaOfficer",
|
// "bmaOfficer",
|
||||||
"statusName",
|
// "statusName",
|
||||||
"positionCandidate",
|
// "positionCandidate",
|
||||||
];
|
// ];
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue