Merge branch 'hi-ucs-dev' of http://15.2.21.221:3000/wuhongjian/hi-ucs into hi-ucs-dev

This commit is contained in:
851673013@qq.com 2022-07-14 15:38:01 +08:00
commit d8d7b4215a
1 changed files with 22 additions and 10 deletions

View File

@ -9,12 +9,15 @@
<div class="application-presentation" v-if="flag">
<detals-title title="图层预览" type="PREVIEW"></detals-title>
<div class="main">
<iframe
<!-- <iframe
:src="img"
width="100%"
height="100%"
border-radius="0.1rem"
></iframe>
></iframe> -->
<div class="iframe-box">
<iframe :src="img" width="100%" height="440"></iframe>
</div>
</div>
</div>
</template>
@ -37,7 +40,7 @@
} else {
props.dataList.infoList.map((item) => {
if (item.attrType === '预览服务地址') {
img.value = imgindex.attrValue || '--'
img.value = item.attrValue.replace(/amp;/g, '') || '--'
}
})
}
@ -54,7 +57,7 @@
} else {
val.infoList.map((item) => {
if (item.attrType === '预览服务地址') {
img.value = imgindex.attrValue || '--'
img.value = item.attrValue.replace(/amp;/g, '') || '--'
}
})
}
@ -64,14 +67,23 @@
</script>
<style lang="less" scoped>
.application-presentation {
padding: 0.8rem 3rem 0;
padding: 0.8rem 3rem 0.6rem;
.main {
height: 5rem;
border-radius: 0.1rem;
// border-radius: 0.1rem;
margin-top: 0.4rem;
display: flex;
justify-content: center;
align-items: center;
// display: flex;
// justify-content: center;
// align-items: center;
iframe {
border: none;
}
.iframe-box {
width: 100%;
height: 440px;
margin-top: 10px;
display: flex;
justify-content: center;
}
}
}
</style>