From acc33467da8dbaf4c15fb1d2e4cadd63696de5b4 Mon Sep 17 00:00:00 2001 From: lq Date: Fri, 30 May 2025 16:56:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=A2=9E=E8=8D=AF=E5=B8=88?= =?UTF-8?q?=E3=80=81=E7=BC=96=E8=BE=91=E8=8D=AF=E5=B8=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/PrescriptionDetail.vue | 28 +++++++------ .../src/views/doctor/pharmacist/api/index.ts | 8 ++++ .../doctor/pharmacist/components/modal.vue | 39 +++++++++++-------- .../views/doctor/pharmacist/config/form.ts | 22 +++++++++++ .../src/views/doctor/pharmacist/index.vue | 8 ++++ 5 files changed, 73 insertions(+), 32 deletions(-) diff --git a/apps/web-antd/src/views/doctor/doctor-reception/components/PrescriptionDetail.vue b/apps/web-antd/src/views/doctor/doctor-reception/components/PrescriptionDetail.vue index 788bede0..c32ac8fd 100644 --- a/apps/web-antd/src/views/doctor/doctor-reception/components/PrescriptionDetail.vue +++ b/apps/web-antd/src/views/doctor/doctor-reception/components/PrescriptionDetail.vue @@ -92,6 +92,14 @@ function handleWindowPrint(ele, fileName) { // 解密方法示例(需要根据实际加密方式实现) const decrypt = (str: string) => str; // 简单base64解码示例 + +const getImageSource = (imageString) => { + if (imageString && imageString.includes('http')) { + return imageString; // 直接使用HTTP URL + } else { + return `data:image/jpeg;base64,${imageString}`; // 使用Base64格式 + } +}