1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
| <template>
| <el-dialog
| title="超链接"
| :visible.sync="iframeDialog"
| :width="dialogW"
| :modal="true"
| :modal-append-to-body="false"
| :appen-to-body="true"
| class="bs-dialog-wrap bs-el-dialog"
| @close="close"
| >
| <div
| class="el-dialog-div"
| :style="{height: dialogH}"
| >
| <iframe
| :src="url"
| width="100%"
| height="100%"
| style="border: none;margin: -2px 0"
| />
| </div>
| </el-dialog>
| </template>
|
| <script>
| import { mapMutations } from 'vuex'
|
| export default {
| name: 'Iframe',
| props: {
| },
| data () {
| return {
| }
| },
| computed: {
| config: {
| get () {
| return this.$store.state.bigScreen.activeItemConfig
| },
| set () {
| }
| },
| url () {
| return this.config?.customize?.url || ''
| },
| dialogW () {
| return this.config?.customize?.dialogW + 'px' || '1000px'
| },
| dialogH () {
| return this.config?.customize?.dialogH + 'px' || '500px'
| },
| iframeDialog: {
| get () {
| return this.$store.state.bigScreen.iframeDialog
| },
| set () {
| }
| }
| },
| mounted () {
|
| },
| methods: {
| ...mapMutations('bigScreen', ['changeIframeDialog']),
| close () {
| this.changeIframeDialog(false)
| }
| }
| }
| </script>
| <style lang="scss" scoped>
| .el-dialog-div{
| overflow: auto;
| }
| </style>
|
|