ทะเบียนประวัติ: ฝึกอบรมดูงาน แก้บัคตอนยิงAPI
This commit is contained in:
parent
1b393c9ab0
commit
a8018dc6a9
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue