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
40c67c46
Commit
40c67c46
authored
Oct 20, 2023
by
tianhongyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'V20230915' of
http://192.168.60.201/root/dsk-operate-sys
into V20230915
parents
19c4c11d
2dae0abe
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
171 additions
and
15 deletions
+171
-15
index.js
dsk-operate-ui/src/router/index.js
+14
-0
HeadFormNew.vue
...ate-ui/src/views/detail/party-a/component/HeadFormNew.vue
+1
-1
index.vue
dsk-operate-ui/src/views/index.vue
+4
-4
jzqyfx.vue
...ui/src/views/macro/nationalEconomies/component/jzqyfx.vue
+8
-8
detail.vue
dsk-operate-ui/src/views/market/detail.vue
+142
-0
index.vue
dsk-operate-ui/src/views/market/index.vue
+2
-2
No files found.
dsk-operate-ui/src/router/index.js
View file @
40c67c46
...
...
@@ -130,6 +130,20 @@ export const constantRoutes = [
}
]
},
{
path
:
''
,
component
:
Layout
,
hidden
:
true
,
redirect
:
'noredirect'
,
children
:
[
{
path
:
'/performance/gzsc/:id'
,
component
:
()
=>
import
(
'@/views/market/detail'
),
name
:
'GzscDetail'
,
meta
:
{
title
:
'公招市场详情'
,
icon
:
'enterprise'
},
}
]
},
{
path
:
'/groupAccount'
,
component
:
Layout
,
...
...
dsk-operate-ui/src/views/detail/party-a/component/HeadFormNew.vue
View file @
40c67c46
...
...
@@ -287,7 +287,7 @@ export default {
.headerFixed
{
position
:
sticky
;
top
:
0
;
z-index
:
9
;
z-index
:
10
;
padding-top
:
16px
;
margin-top
:
-16px
;
background
:
#fff
;
...
...
dsk-operate-ui/src/views/index.vue
View file @
40c67c46
...
...
@@ -970,7 +970,7 @@ export default {
yAxisIndex
:
1
,
tooltip
:
{
valueFormatter
:
function
(
value
)
{
return
value
+
'万元'
return
value
}
},
itemStyle
:
{
...
...
@@ -989,7 +989,7 @@ export default {
barWidth
:
20
,
tooltip
:
{
valueFormatter
:
function
(
value
)
{
return
value
+
'个'
;
return
value
;
}
},
itemStyle
:
{
...
...
@@ -1295,7 +1295,7 @@ export default {
yAxisIndex
:
1
,
tooltip
:
{
valueFormatter
:
function
(
value
)
{
return
value
+
'万元'
return
value
}
},
itemStyle
:
{
...
...
@@ -1314,7 +1314,7 @@ export default {
barWidth
:
20
,
tooltip
:
{
valueFormatter
:
function
(
value
)
{
return
value
+
'个'
;
return
value
;
}
},
itemStyle
:
{
...
...
dsk-operate-ui/src/views/macro/nationalEconomies/component/jzqyfx.vue
View file @
40c67c46
...
...
@@ -41,34 +41,34 @@
<el-table-column
label=
"特级"
align=
"right"
>
<el-table-column
prop=
"tjCount"
label=
"数量"
align=
"right"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
tjCount
}}
个
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
tjCount
}}
{{
scope
.
row
.
tjCount
?
'个'
:
'--'
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"tjRate"
label=
"占比"
align=
"right"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
tjRate
}}
%
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
tjRate
}}
{{
scope
.
row
.
tjRate
?
'%'
:
'--'
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"一级"
align=
"right"
>
<el-table-column
prop=
"oneCount"
label=
"数量"
align=
"right"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
oneCount
}}
个
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
oneCount
}}
{{
scope
.
row
.
oneCount
?
'个'
:
'--'
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"oneRate"
label=
"占比"
align=
"right"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
oneRate
}}
%
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
oneRate
}}
{{
scope
.
row
.
oneRate
?
'%'
:
'--'
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"二级"
align=
"right"
>
<el-table-column
prop=
"twoCount"
label=
"数量"
align=
"right"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
twoCount
}}
个
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
twoCount
}}
{{
scope
.
row
.
twoCount
?
'个'
:
'--'
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"twoRate"
label=
"占比"
align=
"right"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
twoRate
}}
%
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
twoRate
}}
{{
scope
.
row
.
twoRate
?
'%'
:
'--'
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"三级"
align=
"right"
>
<el-table-column
prop=
"threeCount"
label=
"数量"
align=
"right"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
threeCount
}}
个
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
threeCount
}}
{{
scope
.
row
.
threeCount
?
'个'
:
'--'
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"threeRate"
label=
"占比"
align=
"right"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
threeRate
}}
%
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
threeRate
}}
{{
scope
.
row
.
threeRate
?
'%'
:
'--'
}}
</
template
>
</el-table-column>
</el-table-column>
</el-table>
...
...
dsk-operate-ui/src/views/market/detail.vue
0 → 100644
View file @
40c67c46
<
template
>
<div
class=
"iframe"
v-loading=
"loading"
>
<iframe
id=
"companyIframe"
marginwidth=
"0"
marginheight=
"0"
frameborder=
"0"
scrolling=
"no"
width=
"100%"
:src=
"src"
/>
</div>
</
template
>
<
script
>
import
{
steerScroll
}
from
'@/assets/js/jskplug'
;
import
{
dskAccessToken
}
from
'@/api/common'
;
export
default
{
name
:
'GzscDetail'
,
data
()
{
return
{
currentUrl
:
''
,
loading
:
false
,
iframeHight
:
800
,
// iframe高度-当前页控制
navigation
:
{
isFixed
:
true
,
fixedHeight
:
0
,
totalHeight
:
0
},
// iframe之外页面顶部对象,ifFixed:是否浮动;fixedHeight:浮动对象高度;totalHeight:顶部整体高度
footHeight
:
160
,
//底部高度,若为0(页面内部嵌套或者没有底部板块)
src
:
''
,
//
domain
:
'https://pre-plug.jiansheku.com'
,
uid
:
''
,
// 需要携带的uid
loginDialogVisible
:
false
,
vipDialogVisible
:
false
,
dataVip
:{},
minHeight
:
0
}
},
computed
:
{
},
created
()
{
if
(
window
.
location
.
host
===
'http://szh.jiansheku.com'
||
window
.
location
.
host
===
'szh.jiansheku.com'
){
this
.
domain
=
'https://plug.jiansheku.com'
}
else
{
this
.
domain
=
'https://pre-plug.jiansheku.com'
// this.domain='http://192.168.60.8:3400'
}
this
.
loading
=
true
if
(
process
.
browser
){
this
.
getAccesstoken
(
true
)
}
},
mounted
()
{
// this.setInitHeight() //设置初始相关高度
this
.
iframeLoading
()
// 判断iframe页面是否加载完成-当前页控制
// steerScroll('companyIframe', this.navigation, this.footHeight, true, '', this) // 监听滚动(iframe的id、页面排除iframe后页面剩下高度[例:80]、增加监听[不传就是移除监听]、父级id[不带默认就是铺满整个页面]])
//控制页面内容最低高度
// this.setMainHeight()
},
beforeDestroy
()
{
clearInterval
(
this
.
iframeTimer
)
// -当前页控制
clearInterval
(
this
.
tokenTimer
)
// -当前页控制
steerScroll
(
'companyIframe'
,
this
.
navigation
,
this
.
footHeight
)
// 监听滚动(iframe的id、页面排除iframe后页面剩下高度[例:80]、增加监听[不传就是移除监听]、父级id[不带默认就是铺满整个页面]])
},
methods
:
{
setInitHeight
(){
let
headerHeight
=
document
.
getElementById
(
'header'
).
offsetHeight
this
.
navigation
.
fixedHeight
=
this
.
navigation
.
totalHeight
=
headerHeight
+
10
},
// 判断iframe页面是否加载完成-当前页控制
iframeLoading
()
{
const
iframeHeight
=
document
.
getElementById
(
'companyIframe'
).
clientHeight
let
number
=
0
this
.
iframeTimer
=
setInterval
(()
=>
{
number
=
number
+
1000
if
(
document
.
getElementById
(
'companyIframe'
).
clientHeight
!==
iframeHeight
||
number
===
5000
)
{
this
.
loading
=
false
clearInterval
(
this
.
iframeTimer
)
}
},
1000
)
},
// 获取accessToken
async
getAccesstoken
(
init
){
dskAccessToken
().
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
// this.loading = true
this
.
timelongs
=
res
.
data
.
expire
;
this
.
ak
=
res
.
data
.
accessToken
;
if
(
init
){
//首次加载iframe地址
if
(
window
.
location
.
search
){
this
.
src
=
`
${
this
.
domain
+
this
.
$route
.
fullPath
}
&ak=
${
this
.
ak
}
&initTime=
${
new
Date
().
getTime
()}
&uid=
${
this
.
uid
}
&origin=
${
window
.
location
.
origin
}
`
}
else
{
this
.
src
=
`
${
this
.
domain
+
this
.
$route
.
fullPath
}
?ak=
${
this
.
ak
}
&initTime=
${
new
Date
().
getTime
()}
&uid=
${
this
.
uid
}
&origin=
${
window
.
location
.
origin
}
`
}
}
else
{
//更新iframe地址的accessToken
let
ifam
=
document
.
getElementById
(
'companyIframe'
)
ifam
.
contentWindow
.
postMessage
({
'accessToken'
:
this
.
ak
,
'initTime'
:
new
Date
().
getTime
()
},
'*'
)
}
this
.
refreshtoken
();
}
else
{
clearTimeout
(
this
.
tokentimer
);
}
});
},
setMainHeight
(){
let
cliHight
=
document
.
body
.
clientHeight
,
footerHeight
=
document
.
getElementById
(
'footer'
)
?
document
.
getElementById
(
'footer'
).
offsetHeight
:
0
this
.
minHeight
=
cliHight
-
footerHeight
},
refreshtoken
()
{
this
.
tokentimer
=
setTimeout
(()
=>
{
dskAccessToken
().
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
timelongs
=
res
.
data
.
expire
;
this
.
ak
=
res
.
data
.
accessToken
;
let
ifam
=
document
.
getElementById
(
'companyIframe'
);
//iframe的id
let
akObj
=
res
.
data
.
expire
;
//accessToken接口的返回值
let
initTime
=
new
Date
().
getTime
();
//accessToken接口返回后的当前时间戳
ifam
.
contentWindow
.
postMessage
({
'accessToken'
:
akObj
.
accessToken
,
'initTime'
:
initTime
},
'*'
);
}
else
{
clearTimeout
(
this
.
tokentimer
);
}
});
},
this
.
timelongs
*
1000
);
},
},
watch
:
{
'$store.state.akObj.expire'
(
newValue
,
oldValue
)
{
if
(
newValue
){
let
t
=
(
newValue
-
20
)
*
1000
,
_this
=
this
_this
.
tokenTimer
=
setTimeout
(
function
()
{
_this
.
getAccesstoken
()
},
t
)
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.iframe
{
width
:
100%
;
padding
:
16px
24px
;
padding-right
:
15px
;
box-sizing
:
border-box
;
#companyIframe
{
width
:
100%
;
height
:
100%
;
}
}
</
style
>
dsk-operate-ui/src/views/market/index.vue
View file @
40c67c46
...
...
@@ -38,8 +38,8 @@ export default {
if
(
window
.
location
.
host
===
'http://szh.jiansheku.com'
||
window
.
location
.
host
===
'szh.jiansheku.com'
)
{
this
.
domain
=
'https://plug.jiansheku.com'
;
}
else
{
this
.
domain
=
'https://pre-plug.jiansheku.com'
;
// this.domain
= 'http://192.168.60.104:3400';
this
.
domain
=
'https://pre-plug.jiansheku.com'
// this.domain
='http://192.168.60.8:3400'
}
this
.
gettokens
();
window
.
addEventListener
(
"message"
,
this
.
pagecapListener
,
{
passive
:
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