wyn-table.vue
1.4 KB
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
<template>
<div class="container resource close-left-menu">
<div class="pop-banner clearfix">
<h3 class="current-module">wyn报表</h3>
</div>
<iframe :src="srcs" class="iframe-sty" :style="height"></iframe>
</div>
</template>
<style scoped>
.iframe-sty {
width: 100%;
overflow-y: hidden;
}
.pop-banner {
position: absolute;
top: -69px;
height: 36px;
width: 1480px;
color: #fff;
}
.container {
margin: 0 auto;
width: 100%;
}
.resource {
position: relative;
padding: 0;
}
</style>
<script>
module.exports = {
data: function () {
return {
srcs: '',
winHeight: window.innerHeight,
height: {
height: '',
},
};
},
created() {
window.onresize = () => {
return (() => {
this.winHeight = window.innerHeight
})
}
this.height.height=this.winHeight-195+'px'
},
route: {
activate: function () {
var path = JSON.parse(localStorage.path);
console.log(path);
this.srcs = path;
}
},
watch: {
}
};
</script>