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
| <template>
| <el-dialog :visible="visible" :title="title" fullscreen append-to-body :before-close="handleClose" :destroy-on-close="destroy">
| <el-row :gutter="6">
| <el-col :span=" isMap ?12 :24">
| <el-card class="noScroll">
| <slot name="form"></slot>
| </el-card>
| </el-col>
| <el-col :span="12" v-if="isMap">
| <el-card class="noScroll" style="overflow: hidden;">
| <slot name="cesium"></slot>
| </el-card>
| </el-col>
| </el-row>
| <div slot="footer">
| <slot name="footer"></slot>
| </div>
| </el-dialog>
| </template>
|
| <script>
| export default {
| props: {
| value: {
| type: Boolean,
| default: false
| },
| title: {
| type: String,
| default: ''
| },
| destroy:{
| type: Boolean,
| default: true
| },
| isMap:{
| type: Boolean,
| default: true
| }
| },
| data() {
| return {
|
| }
| },
| computed: {
| visible: {
| get: function() {
| return this.value
| },
| set: function(val) {
| this.$emit('input', val)
| }
| }
| },
| methods: {
| handleClose(done) {
| this.visible = false
| done()
| }
| }
| }
| </script>
|
| <style scoped>
| .noScroll{
| height: calc(100vh - 185px);
| overflow: auto;
| position: relative;
| }
| </style>
|
|