Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fulixin
dsk-operate-sys-cscec
Commits
05480a58
Commit
05480a58
authored
Oct 19, 2023
by
danfuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ab968a5d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
index.js
dsk-operate-ui/src/router/index.js
+2
-2
HeadFormNew.vue
...ate-ui/src/views/detail/party-a/component/HeadFormNew.vue
+1
-1
detail.vue
dsk-operate-ui/src/views/market/detail.vue
+19
-19
No files found.
dsk-operate-ui/src/router/index.js
View file @
05480a58
...
@@ -139,8 +139,8 @@ export const constantRoutes = [
...
@@ -139,8 +139,8 @@ export const constantRoutes = [
{
{
path
:
'/performance/gzsc/:id'
,
path
:
'/performance/gzsc/:id'
,
component
:
()
=>
import
(
'@/views/market/detail'
),
component
:
()
=>
import
(
'@/views/market/detail'
),
name
:
'
gzsc
'
,
name
:
'
GzscDetail
'
,
meta
:
{
title
:
'公招市场详情'
,
icon
:
'enterprise'
,
noCache
:
false
},
meta
:
{
title
:
'公招市场详情'
,
icon
:
'enterprise'
},
}
}
]
]
},
},
...
...
dsk-operate-ui/src/views/detail/party-a/component/HeadFormNew.vue
View file @
05480a58
...
@@ -287,7 +287,7 @@ export default {
...
@@ -287,7 +287,7 @@ export default {
.headerFixed
{
.headerFixed
{
position
:
sticky
;
position
:
sticky
;
top
:
0
;
top
:
0
;
z-index
:
9
;
z-index
:
10
;
padding-top
:
16px
;
padding-top
:
16px
;
margin-top
:
-16px
;
margin-top
:
-16px
;
background
:
#fff
;
background
:
#fff
;
...
...
dsk-operate-ui/src/views/market/detail.vue
View file @
05480a58
<
template
>
<
template
>
<div>
<div
:style=
"
{'minHeight':minHeight+'px'}">
<div
:style=
"
{'height':navigation.totalHeight+'px'}">
</div>
<div
class=
"iframe"
v-loading=
"loading"
>
<div
class=
"iframe"
v-loading=
"loading"
>
<iframe
id=
"companyIframe"
marginwidth=
"0"
marginheight=
"0"
frameborder=
"0"
scrolling=
"no"
width=
"100%"
:style=
"
{height:iframeHight+'px'}" :src="src" />
<iframe
id=
"companyIframe"
marginwidth=
"0"
marginheight=
"0"
frameborder=
"0"
scrolling=
"no"
width=
"100%"
:src=
"src"
/>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -14,7 +9,7 @@
...
@@ -14,7 +9,7 @@
import
{
steerScroll
}
from
'@/assets/js/jskplug'
;
import
{
steerScroll
}
from
'@/assets/js/jskplug'
;
import
{
dskAccessToken
}
from
'@/api/common'
;
import
{
dskAccessToken
}
from
'@/api/common'
;
export
default
{
export
default
{
name
:
'Detail'
,
name
:
'
Gzsc
Detail'
,
data
()
{
data
()
{
return
{
return
{
currentUrl
:
''
,
currentUrl
:
''
,
...
@@ -35,7 +30,6 @@
...
@@ -35,7 +30,6 @@
},
},
created
()
{
created
()
{
console
.
log
(
"11111"
)
if
(
window
.
location
.
host
===
'http://szh.jiansheku.com'
||
window
.
location
.
host
===
'szh.jiansheku.com'
){
if
(
window
.
location
.
host
===
'http://szh.jiansheku.com'
||
window
.
location
.
host
===
'szh.jiansheku.com'
){
this
.
domain
=
'https://plug.jiansheku.com'
this
.
domain
=
'https://plug.jiansheku.com'
}
else
{
}
else
{
...
@@ -48,11 +42,11 @@
...
@@ -48,11 +42,11 @@
}
}
},
},
mounted
()
{
mounted
()
{
this
.
setInitHeight
()
//设置初始相关高度
//
this.setInitHeight() //设置初始相关高度
this
.
iframeLoading
()
// 判断iframe页面是否加载完成-当前页控制
this
.
iframeLoading
()
// 判断iframe页面是否加载完成-当前页控制
steerScroll
(
'companyIframe'
,
this
.
navigation
,
this
.
footHeight
,
true
,
''
,
this
)
// 监听滚动(iframe的id、页面排除iframe后页面剩下高度[例:80]、增加监听[不传就是移除监听]、父级id[不带默认就是铺满整个页面]])
//
steerScroll('companyIframe', this.navigation, this.footHeight, true, '', this) // 监听滚动(iframe的id、页面排除iframe后页面剩下高度[例:80]、增加监听[不传就是移除监听]、父级id[不带默认就是铺满整个页面]])
//控制页面内容最低高度
//控制页面内容最低高度
this
.
setMainHeight
()
//
this.setMainHeight()
},
},
beforeDestroy
()
{
beforeDestroy
()
{
clearInterval
(
this
.
iframeTimer
)
// -当前页控制
clearInterval
(
this
.
iframeTimer
)
// -当前页控制
...
@@ -69,17 +63,18 @@
...
@@ -69,17 +63,18 @@
const
iframeHeight
=
document
.
getElementById
(
'companyIframe'
).
clientHeight
const
iframeHeight
=
document
.
getElementById
(
'companyIframe'
).
clientHeight
let
number
=
0
let
number
=
0
this
.
iframeTimer
=
setInterval
(()
=>
{
this
.
iframeTimer
=
setInterval
(()
=>
{
number
=
number
+
1
number
=
number
+
1
000
if
(
document
.
getElementById
(
'companyIframe'
).
clientHeight
!==
iframeHeight
||
number
===
5000
)
{
if
(
document
.
getElementById
(
'companyIframe'
).
clientHeight
!==
iframeHeight
||
number
===
5000
)
{
this
.
loading
=
false
this
.
loading
=
false
clearInterval
(
this
.
iframeTimer
)
clearInterval
(
this
.
iframeTimer
)
}
}
})
}
,
1000
)
},
},
// 获取accessToken
// 获取accessToken
async
getAccesstoken
(
init
){
async
getAccesstoken
(
init
){
dskAccessToken
().
then
(
res
=>
{
dskAccessToken
().
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
// this.loading = true
this
.
timelongs
=
res
.
data
.
expire
;
this
.
timelongs
=
res
.
data
.
expire
;
this
.
ak
=
res
.
data
.
accessToken
;
this
.
ak
=
res
.
data
.
accessToken
;
if
(
init
){
//首次加载iframe地址
if
(
init
){
//首次加载iframe地址
...
@@ -133,10 +128,15 @@
...
@@ -133,10 +128,15 @@
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.iframe
{
.iframe
{
background
:
#fafafa
;
width
:
100%
;
padding
:
16px
24px
;
padding-right
:
15px
;
box-sizing
:
border-box
;
#companyIframe
{
width
:
100%
;
height
:
100%
;
}
}
#companyIframe
{
min-height
:
500px
;
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment