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
6ad36aa9
Commit
6ad36aa9
authored
Jul 21, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev20230707' of
http://192.168.60.201/root/dsk-operate-sys
into dev20230707
parents
53c1c2ad
c1afd3a7
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
36 additions
and
19 deletions
+36
-19
jskplug.js
dsk-operate-ui/src/assets/js/jskplug.js
+5
-8
bidding.vue
...i/src/views/detail/party-a/overview/component/bidding.vue
+1
-1
finance.vue
...i/src/views/detail/party-a/overview/component/finance.vue
+6
-10
CustomerStatusListVo.java
...m/dsk/system/domain/customer/vo/CustomerStatusListVo.java
+4
-0
CustomerMapper.java
...m/src/main/java/com/dsk/system/mapper/CustomerMapper.java
+2
-0
ICustomerService.java
...rc/main/java/com/dsk/system/service/ICustomerService.java
+2
-0
CustomerServiceImpl.java
...java/com/dsk/system/service/impl/CustomerServiceImpl.java
+5
-0
CustomerMapper.xml
.../main/resources/mapper/system/customer/CustomerMapper.xml
+11
-0
No files found.
dsk-operate-ui/src/assets/js/jskplug.js
View file @
6ad36aa9
...
@@ -7,11 +7,10 @@ const steerScroll = function(iframeId, navigation, state, parentId) { // state:
...
@@ -7,11 +7,10 @@ const steerScroll = function(iframeId, navigation, state, parentId) { // state:
let
dom
=
window
let
dom
=
window
if
(
parentId
)
{
// 默认页面可以滚动
if
(
parentId
)
{
// 默认页面可以滚动
dom
=
document
.
getElementById
(
parentId
)
dom
=
document
.
getElementById
(
parentId
)
if
(
!
dom
)
{
if
(
!
dom
)
{
return
return
}
}
dom
.
style
.
overflow
=
'auto'
dom
.
style
.
overflow
=
'auto'
navigation
.
totalHeight
=
0
}
else
{
}
else
{
document
.
body
.
style
.
overflow
=
'visible'
document
.
body
.
style
.
overflow
=
'visible'
}
}
...
@@ -22,12 +21,12 @@ const steerScroll = function(iframeId, navigation, state, parentId) { // state:
...
@@ -22,12 +21,12 @@ const steerScroll = function(iframeId, navigation, state, parentId) { // state:
if
(
data
&&
typeof
data
===
'object'
)
{
if
(
data
&&
typeof
data
===
'object'
)
{
// 动态设置iFrame高度
// 动态设置iFrame高度
if
(
data
.
height
)
{
if
(
data
.
height
)
{
document
.
getElementById
(
iframeId
).
style
.
height
=
data
.
height
+
'px'
document
.
getElementById
(
iframeId
).
style
.
height
=
data
.
height
+
'px'
scrolling
(
iframeId
,
navigation
,
parentId
)
// 初始加载获取滚动条距离顶部高度
scrolling
(
iframeId
,
navigation
,
parentId
)
// 初始加载获取滚动条距离顶部高度
}
}
// 点击企业详情页 栏目名动态设置滚动高度
// 点击企业详情页 栏目名动态设置滚动高度
if
(
data
.
scrollHeight
)
{
if
(
data
.
scrollHeight
)
{
let
navHeight
=
navigation
.
isFixed
?
navigation
.
totalHeight
-
navigation
.
fixedHeight
:
navigation
.
totalHeight
const
navHeight
=
navigation
.
isFixed
&&
!
parentId
?
navigation
.
totalHeight
-
navigation
.
fixedHeight
:
!
parentId
?
navigation
.
totalHeight
:
0
dom
.
scrollTo
(
sct
,
parseInt
(
data
.
scrollHeight
)
+
navHeight
)
dom
.
scrollTo
(
sct
,
parseInt
(
data
.
scrollHeight
)
+
navHeight
)
}
}
// 点击企业详情页 栏目下拉子标签动态设置滚动高度
// 点击企业详情页 栏目下拉子标签动态设置滚动高度
...
@@ -63,11 +62,9 @@ const scrolling = function(iframeId, navigation, parentId) {
...
@@ -63,11 +62,9 @@ const scrolling = function(iframeId, navigation, parentId) {
let
scrollTop
=
parentId
?
document
.
getElementById
(
parentId
).
scrollTop
:
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
let
scrollTop
=
parentId
?
document
.
getElementById
(
parentId
).
scrollTop
:
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
// 将滚动距离传入子组件
// 将滚动距离传入子组件
const
ifa
=
document
.
getElementById
(
iframeId
)
const
ifa
=
document
.
getElementById
(
iframeId
)
if
((
scrollTop
<
navigation
.
totalHeight
&&
!
navigation
.
isFixed
)
||
navigation
.
isFixed
)
{
scrollTop
=
scrollTop
+
navigation
.
totalHeight
scrollTop
=
scrollTop
+
navigation
.
totalHeight
}
const
bodyHeight
=
document
.
body
.
clientHeight
-
navigation
.
totalHeight
const
bodyHeight
=
document
.
body
.
clientHeight
-
navigation
.
totalHeight
ifa
.
contentWindow
.
postMessage
({
'scrollTop'
:
scrollTop
,
'bodyHeight'
:
bodyHeight
},
'*'
)
ifa
.
contentWindow
.
postMessage
({
'scrollTop'
:
scrollTop
,
'
navHeight'
:
navigation
.
totalHeight
,
'
bodyHeight'
:
bodyHeight
},
'*'
)
}
}
export
{
export
{
...
...
dsk-operate-ui/src/views/detail/party-a/overview/component/bidding.vue
View file @
6ad36aa9
...
@@ -105,7 +105,7 @@ export default {
...
@@ -105,7 +105,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
encodeStr
,
encodeStr
,
datatype
:
'
3
'
,
//切换类型
datatype
:
'
1
'
,
//切换类型
dataAll
:
{},
dataAll
:
{},
dtdata
:[],
//数据
dtdata
:[],
//数据
dttime
:[],
//坐标
dttime
:[],
//坐标
...
...
dsk-operate-ui/src/views/detail/party-a/overview/component/finance.vue
View file @
6ad36aa9
...
@@ -84,12 +84,6 @@ export default {
...
@@ -84,12 +84,6 @@ export default {
let
res
=
await
financialData
({
cid
:
this
.
companyId
})
let
res
=
await
financialData
({
cid
:
this
.
companyId
})
if
(
res
.
code
==
200
&&
res
.
data
){
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
viewData
=
res
.
data
this
.
viewData
=
res
.
data
// totalVal = data.map(item => item.value).reduce((prev, cur) => prev + cur)
// this.viewData = data.map(item => {
// let it = {name:item.year, value:item.value, percent:parseFloat(Number(Number(item.value)/Number(totalVal)*100).toFixed(2))}
// return it
// })
// console.log(this.viewData)
if
(
this
.
viewData
.
length
>
0
){
if
(
this
.
viewData
.
length
>
0
){
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
getDT
(
val
)
this
.
getDT
(
val
)
...
@@ -101,10 +95,12 @@ export default {
...
@@ -101,10 +95,12 @@ export default {
let
myChart
=
echarts
.
init
(
document
.
getElementById
(
"echartsFinance"
))
let
myChart
=
echarts
.
init
(
document
.
getElementById
(
"echartsFinance"
))
let
barData
=
[],
years
=
[],
compareData
=
[];
let
barData
=
[],
years
=
[],
compareData
=
[];
this
.
viewData
.
map
(
item
=>
{
this
.
viewData
.
map
(
item
=>
{
barData
.
push
(
item
[
val
]
);
barData
.
push
(
item
[
val
+
'Size'
].
toFixed
(
2
)
);
compareData
.
push
(
item
[
val
+
'Compare'
]
||
''
);
compareData
.
push
(
item
[
val
+
'Compare'
]
||
''
);
years
.
push
(
item
.
year
)
years
.
push
(
item
.
year
)
})
})
// let compareDataMax = Math.max(...compareData)
// let compareDataMin = Math.min(...compareData)
let
option
=
{
let
option
=
{
legend
:
{
legend
:
{
show
:
true
,
show
:
true
,
...
@@ -145,7 +141,7 @@ export default {
...
@@ -145,7 +141,7 @@ export default {
yAxis
:
[
yAxis
:
[
{
{
type
:
'value'
,
type
:
'value'
,
min
:
0
,
//
min:0,
splitLine
:
{
//网格线
splitLine
:
{
//网格线
lineStyle
:
{
lineStyle
:
{
type
:
'dashed'
//设置网格线类型 dotted:虚线 solid:实线
type
:
'dashed'
//设置网格线类型 dotted:虚线 solid:实线
...
@@ -156,7 +152,7 @@ export default {
...
@@ -156,7 +152,7 @@ export default {
type
:
'value'
,
type
:
'value'
,
// min:'dataMin',
// min:'dataMin',
// max:'dataMax',
// max:'dataMax',
// interval:
compareData.length
,
// interval:
((compareDataMax-compareDataMin)/5).toFixed(2)
,
splitLine
:
{
//网格线
splitLine
:
{
//网格线
show
:
false
show
:
false
},
},
...
@@ -193,7 +189,7 @@ export default {
...
@@ -193,7 +189,7 @@ export default {
color
:
"#0081FF"
color
:
"#0081FF"
},
},
type
:
'line'
,
type
:
'line'
,
//
yAxisIndex: 1,
yAxisIndex
:
1
,
data
:
compareData
data
:
compareData
},
},
],
],
...
...
dsk-system/src/main/java/com/dsk/system/domain/customer/vo/CustomerStatusListVo.java
View file @
6ad36aa9
...
@@ -20,5 +20,9 @@ public class CustomerStatusListVo implements Serializable {
...
@@ -20,5 +20,9 @@ public class CustomerStatusListVo implements Serializable {
* 城投id
* 城投id
*/
*/
private
String
uipId
;
private
String
uipId
;
/**
* 企业名称
*/
private
String
companyName
;
}
}
dsk-system/src/main/java/com/dsk/system/mapper/CustomerMapper.java
View file @
6ad36aa9
...
@@ -28,6 +28,8 @@ public interface CustomerMapper extends BaseMapper<Customer> {
...
@@ -28,6 +28,8 @@ public interface CustomerMapper extends BaseMapper<Customer> {
List
<
CustomerStatusListVo
>
selectStatusList
(
@Param
(
"uipIds"
)
List
<
String
>
uipIds
,
@Param
(
"userId"
)
Long
userId
);
List
<
CustomerStatusListVo
>
selectStatusList
(
@Param
(
"uipIds"
)
List
<
String
>
uipIds
,
@Param
(
"userId"
)
Long
userId
);
List
<
CustomerStatusListVo
>
selectStatusListByCompanyName
(
@Param
(
"companyNames"
)
List
<
String
>
companyNames
,
@Param
(
"userId"
)
Long
userId
);
// List<String> selectUipIdList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId);
// List<String> selectUipIdList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId);
}
}
...
...
dsk-system/src/main/java/com/dsk/system/service/ICustomerService.java
View file @
6ad36aa9
...
@@ -29,6 +29,8 @@ public interface ICustomerService {
...
@@ -29,6 +29,8 @@ public interface ICustomerService {
List
<
CustomerStatusListVo
>
selectStatusList
(
List
<
String
>
uipIds
);
List
<
CustomerStatusListVo
>
selectStatusList
(
List
<
String
>
uipIds
);
List
<
CustomerStatusListVo
>
selectStatusListByCompanyName
(
List
<
String
>
companyNames
);
// List<String> selectUipIdList(List<String> uipIds);
// List<String> selectUipIdList(List<String> uipIds);
Integer
status
(
String
companyName
);
Integer
status
(
String
companyName
);
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/CustomerServiceImpl.java
View file @
6ad36aa9
...
@@ -119,6 +119,11 @@ public class CustomerServiceImpl implements ICustomerService {
...
@@ -119,6 +119,11 @@ public class CustomerServiceImpl implements ICustomerService {
return
baseMapper
.
selectStatusList
(
uipIds
,
SecurityUtils
.
getUserId
());
return
baseMapper
.
selectStatusList
(
uipIds
,
SecurityUtils
.
getUserId
());
}
}
@Override
public
List
<
CustomerStatusListVo
>
selectStatusListByCompanyName
(
List
<
String
>
companyNames
)
{
return
baseMapper
.
selectStatusListByCompanyName
(
companyNames
,
SecurityUtils
.
getUserId
());
}
// @Override
// @Override
// public List<String> selectUipIdList(List<String> uipIds) {
// public List<String> selectUipIdList(List<String> uipIds) {
...
...
dsk-system/src/main/resources/mapper/system/customer/CustomerMapper.xml
View file @
6ad36aa9
...
@@ -58,6 +58,17 @@
...
@@ -58,6 +58,17 @@
</foreach>
</foreach>
</select>
</select>
<select
id=
"selectStatusListByCompanyName"
resultType=
"com.dsk.system.domain.customer.vo.CustomerStatusListVo"
>
select
ct.customer_id, ct.company_name
from customer ct
join customer_user ctu on ct.customer_id = ctu.customer_id
where ctu.user_id = #{userId} and ctu.status = 0 and ct.company_name in
<foreach
collection=
"companyNames"
item=
"companyName"
open=
"("
separator=
","
close=
")"
>
#{companyName}
</foreach>
</select>
<!-- <select id="selectUipIdList" resultType="java.lang.String">-->
<!-- <select id="selectUipIdList" resultType="java.lang.String">-->
<!-- select-->
<!-- select-->
<!-- ct.uip_id-->
<!-- ct.uip_id-->
...
...
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