健康报告删除

This commit is contained in:
limqhz
2021-03-08 17:30:58 +08:00
parent 8cad890c1b
commit 4247ae6e12
8 changed files with 146 additions and 37 deletions

View File

@@ -1,14 +1,10 @@
<template>
<div class="app-container calendar-list-container">
<el-form class="small-space" :model="form" :rules="rules" ref="form" label-position="right">
<el-form-item>
<el-button style="float: right;margin-top: -25px;" @click="handleCancel">返回</el-button>
</el-form-item>
</el-form>
<div id="iframe-container">
<iframe :src="search_eq_docPath" scrolling="auto" frameborder="0" id="iframe"></iframe>
<div class="filter-container">
<el-button class="filter-item" type="primary" v-waves icon="search" @click="handleCancel">返回</el-button>
<div>
<iframe :src="docPath" scrolling="auto" frameborder="0" id="iframe"></iframe>
</div>
</div>
</div>
</template>
<script>
@@ -20,12 +16,22 @@ export default {
},
data() {
return {
search_eq_docPath: undefined
docPath: undefined
}
},
created() {
// 初始化
this.search_eq_docPath = this.$route.query.docPath
this.docPath = this.$route.query.docPath
},
mounted() {
/**
* iframe-宽高自适应显示
*/
const oIframe = document.getElementById('iframe')
const deviceWidth = document.documentElement.clientWidth
const deviceHeight = document.documentElement.clientHeight
oIframe.style.width = (Number(deviceWidth) - 220) + 'px'
oIframe.style.height = (Number(deviceHeight) - 120) + 'px'
},
methods: {
/**