ทะเบียนประวัติ: ฝึกอบรมดูงาน แก้บัคตอนยิงAPI

This commit is contained in:
oat_dev 2024-03-28 14:07:49 +07:00
parent 1b393c9ab0
commit a8018dc6a9

View file

@ -252,6 +252,7 @@ async function addData() {
...trainData,
startYear: undefined,
finishYear: undefined,
isDate: isDate.value === "false" ? false : true,
})
.then(() => {
fetchData(id.value);
@ -272,6 +273,7 @@ async function editData(idData: string) {
profileId: undefined,
startYear: undefined,
finishYear: undefined,
isDate: isDate.value === "false" ? false : true,
})
.then(() => {
fetchData(id.value);
@ -316,7 +318,6 @@ async function fetchData(id: string) {
.get(config.API.profileNewTrainingByProfileId(id))
.then(async (res) => {
rows.value = res.data.result;
console.log(res.data.result);
})
.catch((err) => {
messageError($q, err);
@ -332,7 +333,6 @@ async function fetchHistoryData(id: string) {
.get(config.API.profileNewTrainingHisByTrainingId(id))
.then(async (res) => {
historyRows.value = res.data.result;
console.log(historyRows.value);
})
.catch((err) => {
messageError($q, err);