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
| <template>
| <a-card :bordered='false'>
| <!-- 查询区域 -->
| <div class='table-page-search-wrapper'>
| </div>
| <!-- 查询区域-END -->
| <div>
| <iframe ref='report' frameborder="0" class='report'></iframe>
| </div>
| </a-card>
| </template>
|
| <script>
|
| import moment from 'moment'
| import { getAction } from '@api/manage'
|
| export default {
| name: 'InspectResultReport',
| data() {
| return {}
| },
| mounted() {
| },
| created() {
| setTimeout(() => {
| this.searchQuery()
| }, 500)
| },
| methods: {
|
| searchQuery() {
| this.$refs.report.src = this.reportUrl
| console.info(this.reportUrl)
|
| }
| },
| computed: {
| reportUrl: function() {
| return `${window._CONFIG['domianREPORT']}/report/reportJsp/showReportGroup.jsp?rpg=jd_group.rpg&batch=` + this.$route.query.batch
| }
| }
| }
| </script>
|
| <style lang='less' scoped>
| .report {
| width: 100%;
| height: 3000px;
| border: none;
| outline: none;
| }
|
| </style>
|
|