提交 56b0ddc9 authored 作者: leon's avatar leon

手术类型管理-添加图片预览

上级 38c75640
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
:span="['avatar'].includes(p.name) ? 3 : 1" :span="['avatar'].includes(p.name) ? 3 : 1"
> >
<span v-if="p.key === 'avatar'"> <span v-if="p.key === 'avatar'">
<img :src="p.value" style="width: 120px; height: 120px" /> <ImagePreview :imageList="[p.value]" style="width: 120px" />
</span> </span>
<template v-else> <template v-else>
{{ p.value }} {{ p.value }}
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
import { onMounted, computed, ref } from 'vue'; import { onMounted, computed, ref } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { useAsyncState } from '@vueuse/core'; import { useAsyncState } from '@vueuse/core';
import { ImagePreview } from '/@/components/Preview/index';
import { ComputedRef } from '@vue/reactivity'; import { ComputedRef } from '@vue/reactivity';
import { Descriptions, Card } from 'ant-design-vue'; import { Descriptions, Card } from 'ant-design-vue';
import { descriptionColumns } from './schema'; import { descriptionColumns } from './schema';
import * as SurgicalTypeApi from '/@/api/system/surgicalTypeApi'; import * as SurgicalTypeApi from '/@/api/system/surgicalTypeApi';
import { SurgicalType } from '/@/api/model/surgicalType'; import { SurgicalType } from '/@/api/model/surgicalType';
const route = useRoute(); const route = useRoute();
const id = ref(route.params?.id); const id = ref(route.params?.id);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论