1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <div>
- <a-modal :closable="false" class="previewImg" width="50%" :visible="previewVisible" :footer="null" @cancel="handleCancel">
- <img alt="example" style="width: 100%;margin-top: -1vw;" :src="'/api/api-system/system/core/sysFile/previewFile?fileId='+imgStr"/>
- </a-modal>
- </div>
- </template>
- <script>
- export default {
- props: {
- },
- data() {
- return {
- previewVisible: false,
- imgStr: ''
- }
- },
- mounted() {
- },
- methods: {
- //打开大图
- openBig(data){
- this.imgStr=data
- this.previewVisible = true
- },
- //关闭大图
- handleCancel(){
- this.previewVisible = false
- },
- }
- }
- </script>
- <style scoped>
- .previewImg /deep/.ant-modal-content{
- background: none;
- box-shadow: none;
- }
- </style>
|