1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <a-modal
- title="图片"
- width="60%"
- :footer="null"
- :visible="visible"
- @cancel="close"
- >
- <img :src="URL" style="margin: auto;"/>
- </a-modal>
- </template>
- <script>
- import { JeecgListMixin } from '@/mixins/JeecgListMixin'
- export default {
- name: 'Detail', // 明细 弹框
- mixins: [JeecgListMixin],
- components: { },
- data() {
- return {
- visible:false,
- URL:'',
- dd:'',
- }
- },
- watch: {
- dd(newVal) {
- this.URL='data:image/jpeg;base64,'+newVal
- }
- },
-
- methods: {
- close(){
- this.visible = false
- },
- }}
- </script>
- <style lang="less" scoped>
- </style>
|