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
089a9bd8
Commit
089a9bd8
authored
Jun 30, 2023
by
caixingbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
92e4f152
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
busclue.vue
...i/src/views/detail/party-a/overview/component/busclue.vue
+2
-2
risk.vue
...e-ui/src/views/detail/party-a/overview/component/risk.vue
+3
-3
No files found.
dsk-operate-ui/src/views/detail/party-a/overview/component/busclue.vue
View file @
089a9bd8
...
...
@@ -28,7 +28,7 @@
<el-table-column
prop=
"percent"
align=
"right"
label=
"占比"
>
label=
"占比
(%)
"
>
</el-table-column>
<template
slot=
"empty"
>
<div
style=
"padding: 30px 0"
>
...
...
@@ -81,7 +81,7 @@ export default {
if
(
res
.
code
==
200
&&
res
.
data
){
let
data
=
res
.
data
,
totalVal
=
data
.
map
(
item
=>
item
.
value
).
reduce
((
prev
,
cur
)
=>
prev
+
cur
)
this
.
viewData
=
data
.
map
(
item
=>
{
let
it
=
{
name
:
item
.
name
,
value
:
item
.
value
,
percent
:
parseFloat
(
Number
(
Number
(
item
.
value
)
/
Number
(
totalVal
)
*
100
).
toFixed
(
2
))
+
'%'
}
let
it
=
{
name
:
item
.
name
,
value
:
item
.
value
,
percent
:
parseFloat
(
Number
(
Number
(
item
.
value
)
/
Number
(
totalVal
)
*
100
).
toFixed
(
2
))}
return
it
})
if
(
this
.
viewData
.
length
>
0
){
...
...
dsk-operate-ui/src/views/detail/party-a/overview/component/risk.vue
View file @
089a9bd8
...
...
@@ -23,7 +23,7 @@
<el-table-column
prop=
"bl"
align=
"right"
label=
"占比"
>
label=
"占比
(%)
"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
bl
}}
</span>
</
template
>
...
...
@@ -139,7 +139,7 @@ export default {
this
.
viewData
=
this
.
viewData
.
map
(
item
=>
{
let
number
=
this
.
statistic
[
item
.
category
]
&&
this
.
statistic
[
item
.
category
][
item
.
field
]?
this
.
statistic
[
item
.
category
][
item
.
field
]:
0
let
bl
=
number
?
parseFloat
(
Number
(
Number
(
number
)
/
Number
(
totalVal
)
*
100
).
toFixed
(
2
))
:
0
let
it
=
{
name
:
item
.
name
,
value
:
number
,
tz
:
''
,
bl
:
bl
+
'%'
}
let
it
=
{
name
:
item
.
name
,
value
:
number
,
tz
:
''
,
bl
:
bl
}
return
it
})
this
.
viewData
.
sort
((
a
,
b
)
=>
{
...
...
@@ -161,7 +161,7 @@ export default {
if
(
params
.
data
.
tz
){
result
+=
'<p style="color: rgba(35,35,35,0.8);padding: 0;margin: 0;" >'
+
params
.
data
.
tz
+
'亿元</p>'
}
result
+=
'<p style="color: rgba(35,35,35,0.8);padding: 0;margin: 0;">'
+
params
.
data
.
bl
+
'</p>'
result
+=
'<p style="color: rgba(35,35,35,0.8);padding: 0;margin: 0;">'
+
params
.
data
.
bl
+
'
%
</p>'
return
result
;
},
extraCssText
:
'width:150px!important;'
,
...
...
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