Files
laws_weilai/jero-web/src/views/projectManagement/projectNonConformance/moudles/viewImg.vue
T
2023-12-09 12:54:33 +08:00

47 lines
701 B
Java

<template>
<a-modal
:title="$t('view')"
:width="800"
:visible="visible"
:maskClosable="false"
:footer="null"
@cancel="Cancel"
>
<div class="viewImgBox">
<img class="viewImg" :src="srcUrl" alt="">
</div>
</a-modal>
</template>
<script>
export default {
name: 'viewImg',
data() {
return {
visible: false,
srcUrl: ''
}
},
methods: {
Cancel() {
this.visible = false
},
getData(val) {
this.srcUrl = val
this.visible = true
}
}
}
</script>
<style scoped>
.viewImgBox {
text-align: center;
width: 750px;
}
.viewImg {
width: 100%;
}
</style>