API ค้นหาคนครอง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-03-15 14:49:20 +07:00
parent 6135443d05
commit 9efa8b890d
5 changed files with 2 additions and 6 deletions

View file

@ -81,4 +81,5 @@ export default {
orgPosPositionEmpById: (id: string) => `${orgEmployeePos}/position/${id}`, orgPosPositionEmpById: (id: string) => `${orgEmployeePos}/position/${id}`,
orgPosMoveEmp: `${orgEmployeePos}/move`, orgPosMoveEmp: `${orgEmployeePos}/move`,
orgProfileEmp: `${orgEmployeePos}/profile`, orgProfileEmp: `${orgEmployeePos}/profile`,
orgSearchProfileEmp: `${orgProfile}-employee/search`,
}; };

View file

@ -165,7 +165,6 @@ async function fetchPosition(id: string) {
...e, ...e,
posDictName: e.positionName, posDictName: e.positionName,
})); }));
console.log(rows.value);
}) })
.catch((err) => { .catch((err) => {
messageError($q, err); messageError($q, err);

View file

@ -84,10 +84,8 @@ const isDisable = computed(() => {
function onClickMovePos() { function onClickMovePos() {
if (selectedTree.value === "" || selectedTree.value === null) { if (selectedTree.value === "" || selectedTree.value === null) {
console.log("เลือกหน่วยงาน");
dialogMessageNotify($q, "กรุณาเลือกหน่วยงานที่จะย้ายไป"); dialogMessageNotify($q, "กรุณาเลือกหน่วยงานที่จะย้ายไป");
} else if (selectedFilter.value.length === 0) { } else if (selectedFilter.value.length === 0) {
console.log("เลือกตำแห่นง");
dialogMessageNotify($q, "กรุณาเลือกตำแห่นงที่จะย้าย"); dialogMessageNotify($q, "กรุณาเลือกตำแห่นงที่จะย้าย");
} else { } else {
dialogConfirm( dialogConfirm(

View file

@ -293,7 +293,7 @@ async function searchData() {
keyword: formData.personal, // keyword: formData.personal, //
}; };
await http await http
.post(config.API.orgSearchProfile, reqBody) .post(config.API.orgSearchProfileEmp, reqBody)
.then((res) => { .then((res) => {
totalPage.value = Math.ceil(res.data.result.total / pageSize.value); totalPage.value = Math.ceil(res.data.result.total / pageSize.value);
const list = res.data.result.data.map((e: SelectPerson) => ({ const list = res.data.result.data.map((e: SelectPerson) => ({

View file

@ -56,7 +56,6 @@ async function fetchTree() {
await http await http
.get(config.API.orgByid(id)) .get(config.API.orgByid(id))
.then((res) => { .then((res) => {
console.log(res);
nodeTree.value = res.data.result; nodeTree.value = res.data.result;
}) })
.catch((err) => { .catch((err) => {
@ -163,7 +162,6 @@ function onClickConfirm() {
dialogConfirm( dialogConfirm(
$q, $q,
async () => { async () => {
console.log(props.rowId, selectedPos.value[0].id);
const body: Inherit = { const body: Inherit = {
draftPositionId: props.rowId, draftPositionId: props.rowId,
publishPositionId: selectedPos.value[0].id, publishPositionId: selectedPos.value[0].id,