From 320c54c99888c0a6b800ba064f9157b492d8f842 Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Thu, 10 Jul 2025 10:59:05 +0800
Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../business/case/caseplatform-case-form.vue | 10 +++++---
src/views/business/case/imgCell.vue | 9 +++++++-
src/views/business/case/imgEditor.vue | 23 +++++++++++++++----
vite.config.js | 16 +++++++++----
4 files changed, 46 insertions(+), 12 deletions(-)
diff --git a/src/views/business/case/caseplatform-case-form.vue b/src/views/business/case/caseplatform-case-form.vue
index 8c2f90a..3010602 100644
--- a/src/views/business/case/caseplatform-case-form.vue
+++ b/src/views/business/case/caseplatform-case-form.vue
@@ -38,6 +38,7 @@
出院诊断照片:
@@ -336,7 +339,7 @@ const activeKey = ref('1');
const current_reason = ref();
const current_caseId = ref();
-
+const imgType = ref('');
const caseVO = ref({
name: undefined,
uid: undefined,
@@ -604,8 +607,9 @@ async function getDetail(id) {
}
const openEditor = (data) => {
showEdit.value = true;
+ imgType.value = data.type;
nextTick(() => {
- imgEditorRef.value?.init(data);
+ imgEditorRef.value?.init(data.src);
});
};
const saveEditor = () => {
diff --git a/src/views/business/case/imgCell.vue b/src/views/business/case/imgCell.vue
index d7c4c6e..9737e08 100644
--- a/src/views/business/case/imgCell.vue
+++ b/src/views/business/case/imgCell.vue
@@ -29,6 +29,10 @@ const props = defineProps({
type: String,
default: '',
},
+ type:{
+ type: String,
+ default: '',
+ }
});
const emits = defineEmits(['openEditor']);
const visible = ref(false);
@@ -36,7 +40,10 @@ const priviewImg = (value) => {
visible.value = value;
};
const showeditor = () => {
- emits('openEditor', props.src);
+ emits('openEditor', {
+ src:props.src,
+ type:props.type
+ });
}