<template>
	<a-modal class="doc-ct" width="85%" destroyOnClose :footer="null" v-model="visible" title="溶栓观察表">
		<div class="doc-ct-content">
			<div v-if="dataSource.length">
				<div v-for="item in dataSource">
					{{item.seriesTime}}
				</div>
			</div>
			<div class="emtpy" v-else>
				<a-empty :image="emptyImage" description="未检测到影像信息" />
			</div>
		</div>
	</a-modal>
</template>

<script>
	import emptyImage from '@/assets/images/slice/empty.png'
	import {getCtInfoPath} from 'api'
	export default {
		name: 'DocCt',
		data() {
			return {
				emptyImage,
				visible: false,
				dataSource: [],
			}
		},
		methods: {
			async open({firstAidId}) {
				this.visible = true
				const res = await getCtInfoPath({firstAidId})
				this.dataSource = res.data || []
			}
		}
	}
</script>

<style lang="less" scoped>
	.doc-ct {
		.doc-ct-content {
			height: calc(100vh - 68px);
			overflow-y: auto;
			padding: 10px;
		}

	}
</style>
<style lang="less">
	.doc-ct {
		.ant-modal-wrap .ant-modal .ant-modal-body {
			padding: 0 !important;
		}
	}
</style>