| | |
| | | } |
| | | modalApi.lock(); |
| | | try { |
| | | await formApi.setValues(await getResignation(data.id)); |
| | | const detail = await getResignation(data.id); |
| | | await formApi.setValues(detail); |
| | | if (detail.attachmentList?.length) { |
| | | await formApi.setFieldValue('blobIds', detail.attachmentList.map(item => ({ |
| | | uid: String(item.id), |
| | | name: item.name || '', |
| | | url: item.url || '', |
| | | status: 'done', |
| | | id: item.id, |
| | | }))); |
| | | } |
| | | } finally { |
| | | modalApi.unlock(); |
| | | } |
| | |
| | | </script> |
| | | |
| | | <template> |
| | | <Modal :title="getTitle" class="w-[600px]"> |
| | | <Modal :title="getTitle" class="w-[850px]"> |
| | | <Form class="mx-4" /> |
| | | </Modal> |
| | | </template> |