47 lines
701 B
Java
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> |