Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
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
Administrator
dsk-cr20g
Commits
966d91a2
Commit
966d91a2
authored
Jun 21, 2023
by
caixingbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
d3e84fc4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
index.vue
dsk-operate-ui/src/views/detail/party-b/index.vue
+4
-3
No files found.
dsk-operate-ui/src/views/detail/party-b/index.vue
View file @
966d91a2
...
@@ -13,6 +13,7 @@ export default {
...
@@ -13,6 +13,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
// 是否加载中
loading
:
false
,
// 是否加载中
navHeight
:
68
,
// iframe距离顶部距离px
iframeHight
:
window
.
innerHeight
,
// iframe高度
iframeHight
:
window
.
innerHeight
,
// iframe高度
scrollTop
:
0
,
// 滚动条距离内部页面顶部距离
scrollTop
:
0
,
// 滚动条距离内部页面顶部距离
// domain: 'https://pre-plug.jiansheku.com',
// domain: 'https://pre-plug.jiansheku.com',
...
@@ -28,7 +29,7 @@ export default {
...
@@ -28,7 +29,7 @@ export default {
this
.
src
=
`
${
this
.
domain
}
/enterprise/
${
this
.
$route
.
params
.
id
}
?ak=
${
this
.
ak
}
`
this
.
src
=
`
${
this
.
domain
}
/enterprise/
${
this
.
$route
.
params
.
id
}
?ak=
${
this
.
ak
}
`
}
}
if
(
this
.
$route
.
name
==
'Personnel'
){
//人员详情
if
(
this
.
$route
.
name
==
'Personnel'
){
//人员详情
this
.
src
=
`
${
this
.
domain
}
/personnel/
${
this
.
$route
.
params
.
id
}
.html?ak=
${
this
.
ak
}
&referrer=true
`
this
.
src
=
`
${
this
.
domain
}
/personnel/
${
this
.
$route
.
params
.
id
}
.html?ak=
${
this
.
ak
}
`
}
}
}
}
},
},
...
@@ -53,7 +54,7 @@ export default {
...
@@ -53,7 +54,7 @@ export default {
}
}
// 点击栏目名及子标签动态设置滚动高度
// 点击栏目名及子标签动态设置滚动高度
if
(
data
.
scrollHeight
)
{
if
(
data
.
scrollHeight
)
{
window
.
scrollTo
(
sc
,
parseInt
(
data
.
scrollHeight
)
+
83
)
window
.
scrollTo
(
sc
,
parseInt
(
data
.
scrollHeight
)
+
_this
.
navHeight
+
15
)
}
}
// 点击下拉子标签动态设置滚动高度
// 点击下拉子标签动态设置滚动高度
if
(
data
.
clientHeight
)
{
if
(
data
.
clientHeight
)
{
...
@@ -69,7 +70,7 @@ export default {
...
@@ -69,7 +70,7 @@ export default {
// 准备传值
// 准备传值
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
const
ifa
=
this
.
$refs
.
companyIframe
const
ifa
=
this
.
$refs
.
companyIframe
ifa
.
contentWindow
.
postMessage
({
'scrollTop'
:
this
.
scrollTop
},
'*'
)
ifa
.
contentWindow
.
postMessage
({
'scrollTop'
:
this
.
scrollTop
,
'navHeight'
:
this
.
navHeight
},
'*'
)
})
})
}
}
}
}
...
...
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