diff --git a/src/modules/05_placement/components/probation/FormAssign.vue b/src/modules/05_placement/components/probation/FormAssign.vue index e3e46c6c4..9a773253f 100644 --- a/src/modules/05_placement/components/probation/FormAssign.vue +++ b/src/modules/05_placement/components/probation/FormAssign.vue @@ -533,6 +533,7 @@ function putDataEdit(id: string) { }); const know_ledge = knowledge.value.map((item) => ({ + id: item ? item.id : null, level: item ? item.level : null, })); @@ -684,6 +685,7 @@ function putData(id: string) { } }); const know_ledge = knowledge.value.map((item) => ({ + id: item ? item.id : null, level: item ? item.level : null, })); @@ -807,6 +809,7 @@ function putData(id: string) { * @param id personal id */ async function saveData(id: string) { + const data = putData(id); dialogConfirm($q, async () => await DataSave(id)); } @@ -857,7 +860,10 @@ async function getAssign() { chairman.value = data.chairman; commander.value = data.commander; - knowledge.value = data.knowledges + knowledge.value = data.knowledges.map((opItem: any) => { + return OPknowledge.value.find((dataItem: any) => dataItem.id === opItem.id); + }) + knowledgeCount.value = data.knowledges.length; other_desc.value = data.assign.other_desc; other4_desc.value = data.assign.other4_desc;