6 小时以前 b8f3dc696c6907da579bc281e0682a0236c2e8d9
src/views/hrm/leave/modules/form.vue
@@ -78,7 +78,17 @@
    }
    modalApi.lock();
    try {
      await formApi.setValues(await getLeave(data.id));
      const detail = await getLeave(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();
    }