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
4cd91f55
Commit
4cd91f55
authored
Oct 20, 2023
by
tianhongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d368e244
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
Sidebar.vue
...operate-ui/src/views/detail/party-a/component/Sidebar.vue
+1
-1
index.vue
dsk-operate-ui/src/views/market/index.vue
+4
-5
No files found.
dsk-operate-ui/src/views/detail/party-a/component/Sidebar.vue
View file @
4cd91f55
...
@@ -354,7 +354,7 @@ export default {
...
@@ -354,7 +354,7 @@ export default {
methods
:
{
methods
:
{
financial
(
id
)
{
financial
(
id
)
{
financial
({
cid
:
String
(
id
)
}).
then
(
res
=>
{
financial
({
cid
:
String
(
id
)
}).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
!
res
.
data
)
{
if
(
(
res
.
code
==
200
&&
!
res
.
data
)
||
!
res
.
data
?.
totalAssets
)
{
this
.
sideRoute
[
1
].
disabled
=
true
;
this
.
sideRoute
[
1
].
disabled
=
true
;
this
.
defaultRoute
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
sideRoute
));
this
.
defaultRoute
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
sideRoute
));
}
}
...
...
dsk-operate-ui/src/views/market/index.vue
View file @
4cd91f55
...
@@ -32,14 +32,14 @@ export default {
...
@@ -32,14 +32,14 @@ export default {
timelongs
:
7200
,
//刷新token时间
timelongs
:
7200
,
//刷新token时间
tokentimer
:
null
,
tokentimer
:
null
,
showMaxPageTip
:
false
,
showMaxPageTip
:
false
,
iframeIns
:
null
,
iframeIns
:
null
,
};
};
},
},
created
()
{
created
()
{
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
{
this
.
domain
=
'https://pre-plug.jiansheku.com'
this
.
domain
=
'https://pre-plug.jiansheku.com'
;
// this.domain = 'http://192.168.60.104:3400';
// this.domain = 'http://192.168.60.104:3400';
}
}
this
.
gettokens
();
this
.
gettokens
();
...
@@ -49,7 +49,6 @@ export default {
...
@@ -49,7 +49,6 @@ export default {
mounted
()
{
mounted
()
{
this
.
iframeLoading
();
// 判断iframe页面是否加载完成-当前页控制
this
.
iframeLoading
();
// 判断iframe页面是否加载完成-当前页控制
// steerScroll('companyIframe', this.navigation, this.footHeight, true); // iframeId: iframe的id;navigation:页面排除iframe后剩下的顶部高度;footHeight: 页面排除iframe后剩下的底部高度;state:监听or移除监听;parentId: 父级id[不带默认就是铺满整个页面]];_this:指向当前实例(可忽略)
// steerScroll('companyIframe', this.navigation, this.footHeight, true); // iframeId: iframe的id;navigation:页面排除iframe后剩下的顶部高度;footHeight: 页面排除iframe后剩下的底部高度;state:监听or移除监听;parentId: 父级id[不带默认就是铺满整个页面]];_this:指向当前实例(可忽略)
console
.
log
(
document
.
querySelector
(
".market-iframe"
).
contentWindow
.
document
.
documentElement
.
scrollHeight
);
},
},
beforeDestroy
()
{
beforeDestroy
()
{
clearInterval
(
this
.
iframeTimer
);
// -当前页控制
clearInterval
(
this
.
iframeTimer
);
// -当前页控制
...
@@ -57,7 +56,7 @@ export default {
...
@@ -57,7 +56,7 @@ export default {
clearInterval
(
this
.
tokentimer
);
clearInterval
(
this
.
tokentimer
);
window
.
removeEventListener
(
"message"
,
this
.
pagecapListener
,
{
passive
:
true
});
window
.
removeEventListener
(
"message"
,
this
.
pagecapListener
,
{
passive
:
true
});
// 移除layout样式
// 移除layout样式
this
.
iframeIns
.
contentWindow
.
postMessage
(
"
"
,{})
this
.
iframeIns
.
contentWindow
.
postMessage
(
"
removeHtmlLayoutStyle"
,
{
targetOrigin
:
this
.
domain
,
});
},
},
methods
:
{
methods
:
{
async
iframeObserver
()
{
async
iframeObserver
()
{
...
@@ -71,7 +70,7 @@ export default {
...
@@ -71,7 +70,7 @@ export default {
// 列表翻页上限
// 列表翻页上限
pagecapListener
(
e
)
{
pagecapListener
(
e
)
{
const
{
origin
,
data
}
=
e
;
const
{
origin
,
data
}
=
e
;
if
(
origin
.
indexOf
(
this
.
domain
)
<
0
)
return
;
if
(
origin
!=
this
.
domain
)
return
;
if
(
data
==
"pageCurrentMaxSize"
)
{
if
(
data
==
"pageCurrentMaxSize"
)
{
this
.
showMaxPageTip
=
true
;
this
.
showMaxPageTip
=
true
;
}
}
...
...
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