Merge branch 'develop' into devTee
This commit is contained in:
commit
23a6b3b39a
4 changed files with 12 additions and 11 deletions
|
|
@ -428,10 +428,7 @@ function onSubmitSelectEdit() {
|
|||
);
|
||||
}
|
||||
|
||||
/** update เมื่อเปลี่ยน option */
|
||||
function updateSelect() {
|
||||
search.value = "";
|
||||
}
|
||||
|
||||
|
||||
/** input ค้นหา */
|
||||
const searchRef = ref<any>(null);
|
||||
|
|
@ -727,7 +724,7 @@ async function clearFormPositionSelect() {
|
|||
:options="optionFilter"
|
||||
emit-value
|
||||
dense
|
||||
@update:model-value="updateSelect"
|
||||
|
||||
map-options
|
||||
outlined
|
||||
option-label="name"
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ async function fetchDataTable(id: string, level: number, action: boolean) {
|
|||
await http
|
||||
.post(config.API.orgPosMasterList, reqMaster)
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
posMaster.value = [];
|
||||
const dataMain: PosMaster[] = [];
|
||||
totalPage.value = Math.ceil(res.data.result.total / reqMaster.pageSize);
|
||||
|
|
|
|||
|
|
@ -80,8 +80,9 @@ interface Position {
|
|||
|
||||
interface PosMaster {
|
||||
id: string; // id อัตรากำลัง posmaster
|
||||
orgShortname: string; // อักษรย่อตำแหน่ง
|
||||
posMasterNoPrefix: string; // Prefix นำหน้าเลขที่ตำแหน่ง เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
|
||||
posMasterNo: number; // เลขที่ตำแหน่ง เป็นตัวเลข
|
||||
posMasterNo: number | string; // เลขที่ตำแหน่ง เป็นตัวเลข
|
||||
posMasterNoSuffix: string | null; // Suffix หลังเลขที่ตำแหน่ง เช่น ช.
|
||||
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
||||
positionField: string; // สายงาน
|
||||
|
|
@ -113,8 +114,9 @@ interface Position2 {
|
|||
|
||||
interface PosMaster2 {
|
||||
id: string; // id อัตรากำลัง posmaster
|
||||
orgShortname: string; // อักษรย่อตำแหน่ง
|
||||
posMasterNoPrefix: string; // Prefix นำหน้าเลขที่ตำแหน่ง เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
|
||||
posMasterNo: number; // เลขที่ตำแหน่ง เป็นตัวเลข
|
||||
posMasterNo: number | string; // เลขที่ตำแหน่ง เป็นตัวเลข
|
||||
posMasterNoSuffix: string | null; // Suffix หลังเลขที่ตำแหน่ง เช่น ช.
|
||||
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
|
||||
positionField: string; // สายงาน
|
||||
|
|
|
|||
|
|
@ -29,11 +29,14 @@ export const useOrganizational = defineStore("organizationalStore", () => {
|
|||
}
|
||||
|
||||
function fetchPosMaster(data: PosMaster[]) {
|
||||
console.log(data);
|
||||
|
||||
const newPosMaster = data.map((e: PosMaster) => ({
|
||||
...e,
|
||||
positionIsSelected: e.positionIsSelected ? "มีคนครอง" : "ไม่มีคนครอง",
|
||||
positionIsSelected: e.positionIsSelected ? "มี" : "ว่าง",
|
||||
posMasterNo:
|
||||
e.orgShortname +
|
||||
e.posMasterNoPrefix +
|
||||
e.posMasterNo +
|
||||
e.posMasterNoSuffix,
|
||||
positionName: e.positionName ? e.positionName : "-",
|
||||
posTypeName: e.posTypeName ? e.posTypeName : "-",
|
||||
posLevelName: e.posLevelName ? e.posLevelName : "-",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue