diff --git a/src/modules/07_insignia/components/1_Round/DialogDetail.vue b/src/modules/07_insignia/components/1_Round/DialogDetail.vue index a7502ba1d..927a3dfec 100644 --- a/src/modules/07_insignia/components/1_Round/DialogDetail.vue +++ b/src/modules/07_insignia/components/1_Round/DialogDetail.vue @@ -84,6 +84,9 @@ async function fetchData() { datelast.value = data.period_amount; dateStart.value = new Date(data.period_start); dateEnd.value = new Date(data.period_end); + selected.value = rows.value.filter((e: ResponsePosition) => + data.empPosId.includes(e.id) + ); }) .catch((e) => { messageError($q, e); @@ -144,7 +147,9 @@ function onSubmit() { formData.append("endDate", dateToISO(dateEnd.value)); } formData.append("file", files.value); - formData.append("empPosId", JSON.stringify(newEmpPosId)); + newEmpPosId.forEach((id) => { + formData.append("empPosId", id); + }); const url = actionType.value !== "edit" ? config.API.listRoundInsignia() @@ -586,6 +591,7 @@ watch( >