ประวัติฝึกอบรม/ดูงานลูกจ้าง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-04-18 16:56:11 +07:00
parent 6fb49dd324
commit 3e625962cf
5 changed files with 69 additions and 71 deletions

View file

@ -95,7 +95,7 @@ function getClass() {
/** save */
function onSubmit() {
const url = id.value
? config.API.developmentHistoryList("officer") + `${id.value}`
? config.API.developmentHistoryListByid("officer", id.value)
: config.API.developmentHistoryAdd("officer");
const body = {
@ -162,7 +162,7 @@ function upDateProject(data: any) {
function getDataEdit() {
showLoader();
http
.get(config.API.developmentHistoryList("officer") + `${id.value}`)
.get(config.API.developmentHistoryListByid("officer", id.value))
.then((res) => {
const data = res.data.result;
formMain.id = id.value;