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 + }); }