File tree Expand file tree Collapse file tree 8 files changed +35
-30
lines changed
mall/trade/delivery/pickUpStore Expand file tree Collapse file tree 8 files changed +35
-30
lines changed Original file line number Diff line number Diff line change @@ -7,26 +7,41 @@ const props = defineProps({
7
7
src: propTypes .string .def (' ' )
8
8
})
9
9
const loading = ref (true )
10
- const height = ref (' ' )
11
10
const frameRef = ref <HTMLElement | null >(null )
12
11
const init = () => {
13
- height .value = document .documentElement .clientHeight - 94.5 + ' px'
14
- loading .value = false
12
+ nextTick (() => {
13
+ loading .value = true
14
+ if (! frameRef .value ) return
15
+ frameRef .value .onload = () => {
16
+ loading .value = false
17
+ }
18
+ })
15
19
}
16
20
onMounted (() => {
17
- setTimeout (() => {
18
- init ()
19
- }, 300 )
21
+ init ()
20
22
})
23
+ watch (
24
+ () => props .src ,
25
+ () => {
26
+ init ()
27
+ }
28
+ )
21
29
</script >
22
30
<template >
23
- <div v-loading =" loading" :style =" 'height:' + height" >
31
+ <div
32
+ v-loading =" loading"
33
+ class =" w-full h-[calc(100vh-var(--top-tool-height)-var(--tags-view-height)-var(--app-content-padding)-var(--app-content-padding)-2px)]"
34
+ >
24
35
<iframe
25
36
ref =" frameRef"
26
37
:src =" props.src"
27
- frameborder =" no "
38
+ frameborder =" 0 "
28
39
scrolling =" auto"
29
- style =" width : 100% ; height : 100% "
40
+ height =" 100%"
41
+ width =" 100%"
42
+ allowfullscreen =" true"
43
+ webkitallowfullscreen =" true"
44
+ mozallowfullscreen =" true"
30
45
></iframe >
31
46
</div >
32
47
</template >
Original file line number Diff line number Diff line change 2
2
<doc-alert title =" 数据库 MyBatis" url =" https://doc.iocoder.cn/mybatis/" />
3
3
<doc-alert title =" 多数据源(读写分离)" url =" https://doc.iocoder.cn/dynamic-datasource/" />
4
4
5
- <ContentWrap >
6
- <IFrame v-if =" !loading" :src =" url" />
5
+ <ContentWrap :bodyStyle = " { padding: '0px' } " class = " !mb-0 " >
6
+ <IFrame v-if =" !loading" v-loading = " loading " :src =" url" />
7
7
</ContentWrap >
8
8
</template >
9
9
<script lang="ts" setup>
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<doc-alert title =" 服务监控" url =" https://doc.iocoder.cn/server-monitor/" />
3
3
4
- <ContentWrap >
4
+ <ContentWrap :bodyStyle = " { padding: '0px' } " class = " !mb-0 " >
5
5
<IFrame v-if =" !loading" v-loading =" loading" :src =" src" />
6
6
</ContentWrap >
7
7
</template >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<doc-alert title =" 服务监控" url =" https://doc.iocoder.cn/server-monitor/" />
3
3
4
- <ContentWrap >
4
+ <ContentWrap :bodyStyle = " { padding: '0px' } " class = " !mb-0 " >
5
5
<IFrame v-if =" !loading" v-loading =" loading" :src =" src" />
6
6
</ContentWrap >
7
7
</template >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<doc-alert title =" 接口文档" url =" https://doc.iocoder.cn/api-doc/" />
3
3
4
- <ContentWrap >
5
- <IFrame :src =" src" />
4
+ <ContentWrap :bodyStyle = " { padding: '0px' } " class = " !mb-0 " >
5
+ <IFrame v-if = " !loading " v-loading = " loading " :src =" src" />
6
6
</ContentWrap >
7
7
</template >
8
8
<script lang="ts" setup>
Original file line number Diff line number Diff line change 106
106
<el-button @click =" submitForm" type =" primary" :disabled =" formLoading" >确 定</el-button >
107
107
<el-button @click =" dialogVisible = false" >取 消</el-button >
108
108
</template >
109
- <el-dialog
110
- v-model =" mapDialogVisible"
111
- title =" 获取经纬度"
112
- append-to-body
113
- width =" 500px"
114
- class =" mapBox"
115
- >
116
- <iframe id =" mapPage" width =" 100%" height =" 100%" frameborder =" 0" :src =" tencentLbsUrl" ></iframe >
109
+ <el-dialog v-model =" mapDialogVisible" title =" 获取经纬度" append-to-body >
110
+ <IFrame class =" h-609px" :src =" tencentLbsUrl" />
117
111
</el-dialog >
118
112
</Dialog >
119
113
</template >
@@ -266,8 +260,3 @@ onMounted(async () => {
266
260
await initTencentLbsMap ()
267
261
})
268
262
</script >
269
- <style lang="scss">
270
- .mapBox .el-dialog__body {
271
- height : 640px !important ;
272
- }
273
- </style >
Original file line number Diff line number Diff line change 2
2
<ContentWrap >
3
3
<doc-alert title =" 大屏设计器" url =" https://doc.iocoder.cn/report/screen/" />
4
4
5
+ <ContentWrap :bodyStyle =" { padding: '0px' }" class =" !mb-0" >
5
6
<IFrame :src =" src" />
6
7
</ContentWrap >
7
8
</template >
Original file line number Diff line number Diff line change 2
2
<ContentWrap >
3
3
<doc-alert title =" 报表设计器" url =" https://doc.iocoder.cn/report/" />
4
4
5
+ <ContentWrap :bodyStyle =" { padding: '0px' }" class =" !mb-0" >
5
6
<IFrame :src =" src" />
6
7
</ContentWrap >
7
8
</template >
@@ -10,6 +11,5 @@ import { getAccessToken } from '@/utils/auth'
10
11
11
12
defineOptions ({ name: ' JimuReport' })
12
13
13
- const BASE_URL = import .meta .env .VITE_BASE_URL
14
- const src = ref (BASE_URL + ' /jmreport/list?token=' + getAccessToken ())
14
+ const src = ref (import .meta .env .VITE_BASE_URL + ' /jmreport/list?token=' + getAccessToken ())
15
15
</script >
You can’t perform that action at this time.
0 commit comments