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
1e97c5bb
Commit
1e97c5bb
authored
Sep 26, 2024
by
danfuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d5d444a9
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
635 additions
and
455 deletions
+635
-455
.env.development
dsk-operate-ui/.env.development
+1
-1
index.js
dsk-operate-ui/src/router/index.js
+41
-13
index.vue
dsk-operate-ui/src/views/collection/index.vue
+148
-0
detail.vue
dsk-operate-ui/src/views/detail.vue
+3
-2
performance.vue
...i/src/views/detail/groupAccount/component/performance.vue
+1
-1
HeadFormNew.vue
...ate-ui/src/views/detail/party-a/component/HeadFormNew.vue
+437
-436
index.vue
dsk-operate-ui/src/views/macro/policyInquiry/index.vue
+2
-1
index.vue
dsk-operate-ui/src/views/radar/index.vue
+2
-1
No files found.
dsk-operate-ui/.env.development
View file @
1e97c5bb
...
@@ -13,7 +13,7 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true
...
@@ -13,7 +13,7 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true
# 子系统地址
# 子系统地址
VUE_APP_SUB_SYSTEM_ADDRESS = "https://pre-plug.jiansheku.com"
VUE_APP_SUB_SYSTEM_ADDRESS = "https://pre-plug.jiansheku.com"
# VUE_APP_SUB_SYSTEM_ADDRESS = "http://192.168.60.
9
:3400"
# VUE_APP_SUB_SYSTEM_ADDRESS = "http://192.168.60.
23
:3400"
# Bi大屏系统地址
# Bi大屏系统地址
VUE_APP_BI_SYSTEM_ADDRESS = "https://192.168.60.104:8001"
VUE_APP_BI_SYSTEM_ADDRESS = "https://192.168.60.104:8001"
dsk-operate-ui/src/router/index.js
View file @
1e97c5bb
...
@@ -62,19 +62,19 @@ export const constantRoutes = [
...
@@ -62,19 +62,19 @@ export const constantRoutes = [
component
:
()
=>
import
(
'@/views/error/401'
),
component
:
()
=>
import
(
'@/views/error/401'
),
hidden
:
true
hidden
:
true
},
},
{
//
{
path
:
''
,
//
path: '',
component
:
Layout
,
//
component: Layout,
redirect
:
'index'
,
//
redirect: 'index',
children
:
[
//
children: [
{
//
{
path
:
'index'
,
//
path: 'index',
component
:
()
=>
import
(
'@/views/index'
),
//
component: () => import('@/views/index'),
name
:
'Index'
,
//
name: 'Index',
meta
:
{
title
:
'首页'
,
icon
:
'index'
,
noCache
:
true
}
//
meta: { title: '首页', icon: 'index', noCache: true }
}
//
}
]
//
]
},
//
},
{
{
path
:
''
,
path
:
''
,
component
:
Layout
,
component
:
Layout
,
...
@@ -307,6 +307,34 @@ export const constantRoutes = [
...
@@ -307,6 +307,34 @@ export const constantRoutes = [
}
}
]
]
},
},
//宏观政策监控
{
path
:
'/monitor/myMonitor'
,
component
:
Layout
,
hidden
:
true
,
redirect
:
'noredirect'
,
children
:
[
{
path
:
'/monitor/myMonitor'
,
component
:
()
=>
import
(
'@/views/detail'
),
meta
:
{
title
:
"政策监控"
}
}
]
},
//新增政策监控
{
path
:
'/monitor/AddMonitor'
,
component
:
Layout
,
hidden
:
true
,
redirect
:
'noredirect'
,
children
:
[
{
path
:
'/monitor/AddMonitor'
,
component
:
()
=>
import
(
'@/views/detail'
),
meta
:
{
title
:
"新增政策监控"
}
}
]
},
//公招市场详情
//公招市场详情
{
{
path
:
''
,
path
:
''
,
...
...
dsk-operate-ui/src/views/collection/index.vue
0 → 100644
View file @
1e97c5bb
<
template
>
<div
v-loading=
"loading"
class=
"market-container"
>
<iframe
id=
"companyIframe"
class=
"market-iframe"
marginwidth=
"0"
marginheight=
"0"
scrolling=
"no"
frameborder=
"0"
width=
"100%"
:src=
"src"
/>
<!--
<iframe
id=
"companyIframe"
class=
"market-iframe"
marginwidth=
"0"
marginheight=
"0"
scrolling=
"no"
frameborder=
"0"
width=
"100%"
src=
"https://www.jianchayun.com/company/56546856314e567a69/?index=true"
/>
-->
</div>
</
template
>
<
script
>
import
{
steerScroll
}
from
'@/assets/js/jskplug'
;
import
{
dskAccessToken
}
from
'@/api/common'
;
import
{
encodeStr
}
from
"@/assets/js/common"
;
import
MaxPageSizeTip
from
"@/views/components/MaxPageSizeTip.vue"
;
import
{
getUipIdByCid
}
from
'@/api/macro/macro'
;
export
default
{
name
:
'Subscribe'
,
components
:
{
MaxPageSizeTip
},
data
()
{
return
{
encodeStr
,
loading
:
false
,
// 是否加载完成-当前页控制
iframeTimer
:
''
,
// 是否加载中定时器-当前页控制
footHeight
:
0
,
//底部高度,若为0(页面内部嵌套或者没有底部板块)
iframeHight
:
`
${
window
.
innerHeight
}
px`
,
// iframe高度-当前页控制
navigation
:
{
isFixed
:
true
,
fixedHeight
:
56
,
totalHeight
:
68
},
// iframe之外页面顶部对象,ifFixed:是否浮动;fixedHeight:浮动对象高度;totalHeight:顶部整体高度
src
:
''
,
//iframe嵌套页面地址
domain
:
'https://plug.jiansheku.com'
,
// 插件地址
// domain: 'https://pre-plug.jiansheku.com', // 插件地址测试
// domain: 'http://192.168.60.104:3400',
ak
:
'aec7b3ff2y2q8x6t49a7e2c463ce21912'
,
// 需要携带的sdkId
timelongs
:
7200
,
//刷新token时间
tokentimer
:
null
,
showMaxPageTip
:
false
,
iframeIns
:
null
,
systemCode
:
'ZTESJ'
,
//每个项目传的对应参数都不一样
};
},
created
()
{
this
.
domain
=
process
.
env
.
VUE_APP_SUB_SYSTEM_ADDRESS
;
this
.
gettokens
();
this
.
iframeObserver
();
},
mounted
()
{
this
.
iframeLoading
();
// 判断iframe页面是否加载完成-当前页控制
window
.
addEventListener
(
'message'
,
this
.
linkListener
,
false
);
// steerScroll('companyIframe', this.navigation, this.footHeight, true); // iframeId: iframe的id;navigation:页面排除iframe后剩下的顶部高度;footHeight: 页面排除iframe后剩下的底部高度;state:监听or移除监听;parentId: 父级id[不带默认就是铺满整个页面]];_this:指向当前实例(可忽略)
},
beforeDestroy
()
{
clearInterval
(
this
.
iframeTimer
);
// -当前页控制
steerScroll
(
'companyIframe'
,
this
.
navigation
,
this
.
footHeight
);
// iframeId: iframe的id;navigation:页面排除iframe后剩下的顶部高度;footHeight: 页面排除iframe后剩下的底部高度;state:监听or移除监听;parentId: 父级id[不带默认就是铺满整个页面]];_this:指向当前实例(可忽略)
clearInterval
(
this
.
tokentimer
);
// 移除layout样式
this
.
iframeIns
?.
contentWindow
?
this
.
iframeIns
.
contentWindow
.
postMessage
(
"removeHtmlLayoutStyle"
,
{
targetOrigin
:
this
.
domain
,
})
:
null
;
window
.
removeEventListener
(
"message"
,
this
.
linkListener
);
},
methods
:
{
linkListener
(
event
)
{
let
{
data
,
origin
}
=
event
;
if
(
origin
!=
this
.
domain
)
return
;
if
(
data
.
id
)
{
getUipIdByCid
([
data
.
id
]).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
&&
res
.
data
.
length
>
0
&&
res
.
data
[
0
].
uipId
)
{
this
.
$router
.
push
({
path
:
'/enterprise/'
+
this
.
encodeStr
(
data
.
id
)
});
}
else
{
this
.
$tab
.
openPage
(
data
.
title
,
'/company/'
+
this
.
encodeStr
(
data
.
id
));
}
}
}).
catch
(
error
=>
{
});
}
else
{
if
(
data
.
url
)
{
this
.
$tab
.
openPage
(
data
.
title
,
data
.
url
);
}
}
},
async
iframeObserver
()
{
try
{
await
this
.
$nextTick
();
this
.
iframeIns
=
document
.
querySelector
(
".market-iframe"
);
}
catch
(
error
)
{
console
.
log
(
error
);
}
},
gettokens
()
{
dskAccessToken
().
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
timelongs
=
res
.
data
.
expire
;
this
.
ak
=
res
.
data
.
accessToken
;
this
.
src
=
`
${
this
.
domain
}
/collection?ak=
${
this
.
ak
}
&initTime=
${
new
Date
().
getTime
()}
&uid=
${
this
.
ak
}
&origin=
${
window
.
location
.
origin
}
&type=1&systemCode=
${
this
.
systemCode
}
&userCode=
${
this
.
$store
.
state
.
user
.
userId
}
`
;
this
.
refreshtoken
();
}
else
{
clearTimeout
(
this
.
tokentimer
);
}
});
},
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
);
},
//判断iframe页面是否加载完成-当前页控制
iframeLoading
()
{
let
iframeHeight
=
document
.
getElementById
(
"companyIframe"
).
clientHeight
,
number
=
0
;
this
.
iframeTimer
=
setInterval
(()
=>
{
number
++
;
if
(
document
.
getElementById
(
"companyIframe"
).
clientHeight
!=
iframeHeight
||
number
==
5000
)
{
this
.
loading
=
false
;
clearInterval
(
this
.
iframeTimer
);
}
});
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.market-container
{
width
:
100%
;
height
:
100%
;
padding
:
16px
24px
;
padding-right
:
15px
;
box-sizing
:
border-box
;
position
:
absolute
;
left
:
0
;
top
:
0
;
.market-iframe
{
width
:
100%
;
height
:
100%
;
}
}
</
style
>
dsk-operate-ui/src/views/detail.vue
View file @
1e97c5bb
...
@@ -30,6 +30,7 @@ export default {
...
@@ -30,6 +30,7 @@ export default {
ak
:
'aec7b3ff2y2q8x6t49a7e2c463ce21912'
,
// 需要携带的sdkId
ak
:
'aec7b3ff2y2q8x6t49a7e2c463ce21912'
,
// 需要携带的sdkId
timelongs
:
7200
,
//刷新token时间
timelongs
:
7200
,
//刷新token时间
tokentimer
:
null
,
tokentimer
:
null
,
systemCode
:
'ZTESJ'
,
//每个项目传的对应参数都不一样
};
};
},
},
created
()
{
created
()
{
...
@@ -78,9 +79,9 @@ export default {
...
@@ -78,9 +79,9 @@ export default {
this
.
ak
=
res
.
data
.
accessToken
;
this
.
ak
=
res
.
data
.
accessToken
;
let
initTime
=
new
Date
().
getTime
()
let
initTime
=
new
Date
().
getTime
()
if
(
window
.
location
.
search
){
if
(
window
.
location
.
search
){
this
.
src
=
`
${
this
.
domain
+
this
.
$route
.
fullPath
}
&ak=
${
this
.
ak
}
&initTime=
${
initTime
}
&uid=
${
this
.
ak
}
&origin=
${
window
.
location
.
origin
}
`
this
.
src
=
`
${
this
.
domain
+
this
.
$route
.
fullPath
}
&ak=
${
this
.
ak
}
&initTime=
${
initTime
}
&uid=
${
this
.
ak
}
&origin=
${
window
.
location
.
origin
}
&systemCode=
${
this
.
systemCode
}
&userCode=
${
this
.
$store
.
state
.
user
.
userId
}
`
}
else
{
}
else
{
this
.
src
=
`
${
this
.
domain
+
this
.
$route
.
fullPath
}
?ak=
${
this
.
ak
}
&initTime=
${
initTime
}
&uid=
${
this
.
ak
}
&origin=
${
window
.
location
.
origin
}
`
this
.
src
=
`
${
this
.
domain
+
this
.
$route
.
fullPath
}
?ak=
${
this
.
ak
}
&initTime=
${
initTime
}
&uid=
${
this
.
ak
}
&origin=
${
window
.
location
.
origin
}
&systemCode=
${
this
.
systemCode
}
&userCode=
${
this
.
$store
.
state
.
user
.
userId
}
`
}
}
// if(window.location.search){
// if(window.location.search){
// this.src = `${this.domain+this.$route.fullPath}&ak=${this.ak}&initTime=${initTime}&uid=${this.ak}&origin=${window.location.origin}`
// this.src = `${this.domain+this.$route.fullPath}&ak=${this.ak}&initTime=${initTime}&uid=${this.ak}&origin=${window.location.origin}`
...
...
dsk-operate-ui/src/views/detail/groupAccount/component/performance.vue
View file @
1e97c5bb
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<span
class=
"ability-total"
>
共有{{ tableDataTotal }}条
</span>
<span
class=
"ability-total"
>
共有{{ tableDataTotal }}条
</span>
项目中标中金额
<span
style=
"color:#E6A23C;padding-left: 4px;"
>
{{sumMoney}}万元
</span>
项目中标中金额
<span
style=
"color:#E6A23C;padding-left: 4px;"
>
{{sumMoney}}万元
</span>
<span
class=
"flex-box ability-excel"
@
click=
"click
EXCEL
"
><img
src=
"@/assets/images/ability_excel.png"
>
导出EXCEL
</span>
<span
class=
"flex-box ability-excel"
@
click=
"click
Dialog
"
><img
src=
"@/assets/images/ability_excel.png"
>
导出EXCEL
</span>
</p>
</p>
<div
class=
"chart"
v-if=
"echartsDataState === false && !isSkeleton"
>
<div
class=
"chart"
v-if=
"echartsDataState === false && !isSkeleton"
>
<div
class=
"chart-left"
>
<div
class=
"chart-left"
>
...
...
dsk-operate-ui/src/views/detail/party-a/component/HeadFormNew.vue
View file @
1e97c5bb
This diff is collapsed.
Click to expand it.
dsk-operate-ui/src/views/macro/policyInquiry/index.vue
View file @
1e97c5bb
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
tokentimer
:
null
,
tokentimer
:
null
,
showMaxPageTip
:
false
,
showMaxPageTip
:
false
,
iframeIns
:
null
,
iframeIns
:
null
,
systemCode
:
'ZTESJ'
,
//每个项目传的对应参数都不一样
};
};
},
},
created
()
{
created
()
{
...
@@ -99,7 +100,7 @@
...
@@ -99,7 +100,7 @@
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
timelongs
=
res
.
data
.
expire
;
this
.
timelongs
=
res
.
data
.
expire
;
this
.
ak
=
res
.
data
.
accessToken
;
this
.
ak
=
res
.
data
.
accessToken
;
this
.
src
=
`
${
this
.
domain
}
/search/policyInquiryNew?ak=
${
this
.
ak
}
&initTime=
${
new
Date
().
getTime
()}
&uid=
${
this
.
ak
}
&origin=
${
window
.
location
.
origin
}
`
;
this
.
src
=
`
${
this
.
domain
}
/search/policyInquiryNew?ak=
${
this
.
ak
}
&initTime=
${
new
Date
().
getTime
()}
&uid=
${
this
.
ak
}
&origin=
${
window
.
location
.
origin
}
&systemCode=
${
this
.
systemCode
}
&userCode=
${
this
.
$store
.
state
.
user
.
userId
}
`
;
this
.
refreshtoken
();
this
.
refreshtoken
();
}
else
{
}
else
{
clearTimeout
(
this
.
tokentimer
);
clearTimeout
(
this
.
tokentimer
);
...
...
dsk-operate-ui/src/views/radar/index.vue
View file @
1e97c5bb
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
tokentimer
:
null
,
tokentimer
:
null
,
showMaxPageTip
:
false
,
showMaxPageTip
:
false
,
iframeIns
:
null
,
iframeIns
:
null
,
systemCode
:
'ZTESJ'
,
//每个项目传的对应参数都不一样
};
};
},
},
created
()
{
created
()
{
...
@@ -101,7 +102,7 @@
...
@@ -101,7 +102,7 @@
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
timelongs
=
res
.
data
.
expire
;
this
.
timelongs
=
res
.
data
.
expire
;
this
.
ak
=
res
.
data
.
accessToken
;
this
.
ak
=
res
.
data
.
accessToken
;
this
.
src
=
`
${
this
.
domain
}
/radar?ak=
${
this
.
ak
}
&initTime=
${
new
Date
().
getTime
()}
&uid=
${
this
.
ak
}
&origin=
${
window
.
location
.
origin
}
`
;
this
.
src
=
`
${
this
.
domain
}
/radar?ak=
${
this
.
ak
}
&initTime=
${
new
Date
().
getTime
()}
&uid=
${
this
.
ak
}
&origin=
${
window
.
location
.
origin
}
&systemCode=
${
this
.
systemCode
}
&userCode=
${
this
.
$store
.
state
.
user
.
userId
}
`
;
this
.
refreshtoken
();
this
.
refreshtoken
();
}
else
{
}
else
{
clearTimeout
(
this
.
tokentimer
);
clearTimeout
(
this
.
tokentimer
);
...
...
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