API ค้นหาคนครอง
This commit is contained in:
parent
6135443d05
commit
9efa8b890d
5 changed files with 2 additions and 6 deletions
|
|
@ -81,4 +81,5 @@ export default {
|
|||
orgPosPositionEmpById: (id: string) => `${orgEmployeePos}/position/${id}`,
|
||||
orgPosMoveEmp: `${orgEmployeePos}/move`,
|
||||
orgProfileEmp: `${orgEmployeePos}/profile`,
|
||||
orgSearchProfileEmp: `${orgProfile}-employee/search`,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -165,7 +165,6 @@ async function fetchPosition(id: string) {
|
|||
...e,
|
||||
posDictName: e.positionName,
|
||||
}));
|
||||
console.log(rows.value);
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
|
|||
|
|
@ -84,10 +84,8 @@ const isDisable = computed(() => {
|
|||
|
||||
function onClickMovePos() {
|
||||
if (selectedTree.value === "" || selectedTree.value === null) {
|
||||
console.log("เลือกหน่วยงาน");
|
||||
dialogMessageNotify($q, "กรุณาเลือกหน่วยงานที่จะย้ายไป");
|
||||
} else if (selectedFilter.value.length === 0) {
|
||||
console.log("เลือกตำแห่นง");
|
||||
dialogMessageNotify($q, "กรุณาเลือกตำแห่นงที่จะย้าย");
|
||||
} else {
|
||||
dialogConfirm(
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ async function searchData() {
|
|||
keyword: formData.personal, //นามสกุล ชื่อ สกุล เลขบัตร
|
||||
};
|
||||
await http
|
||||
.post(config.API.orgSearchProfile, reqBody)
|
||||
.post(config.API.orgSearchProfileEmp, reqBody)
|
||||
.then((res) => {
|
||||
totalPage.value = Math.ceil(res.data.result.total / pageSize.value);
|
||||
const list = res.data.result.data.map((e: SelectPerson) => ({
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ async function fetchTree() {
|
|||
await http
|
||||
.get(config.API.orgByid(id))
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
nodeTree.value = res.data.result;
|
||||
})
|
||||
.catch((err) => {
|
||||
|
|
@ -163,7 +162,6 @@ function onClickConfirm() {
|
|||
dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
console.log(props.rowId, selectedPos.value[0].id);
|
||||
const body: Inherit = {
|
||||
draftPositionId: props.rowId,
|
||||
publishPositionId: selectedPos.value[0].id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue