Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WX_h5
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
godwithdh
WX_h5
Commits
4b08bebf
Commit
4b08bebf
authored
Dec 18, 2019
by
godwithdh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boss
parent
51ebea79
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
capital.vue
src/view/tiip/kanban/capital.vue
+5
-5
No files found.
src/view/tiip/kanban/capital.vue
View file @
4b08bebf
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<div
class=
"card"
v-if=
"list.length>0"
v-for=
"(v,i) in list"
:key=
"i"
:style=
"
{'--color':color[i%6]}">
<div
class=
"card"
v-if=
"list.length>0"
v-for=
"(v,i) in list"
:key=
"i"
:style=
"
{'--color':color[i%6]}">
<div>
<div>
<div
style=
"font-size:13px;margin-bottom:14px;"
>
{{
v
.
sName
}}
</div>
<div
style=
"font-size:13px;margin-bottom:14px;"
>
{{
v
.
sName
}}
</div>
<div
style=
"font-size: 28px;font-weight: 600;"
>
{{
Number
(
v
.
sValue
||
0
).
toLocaleString
()
}}
</div>
<div
style=
"font-size: 28px;font-weight: 600;"
>
{{
Number
(
v
.
nAmount
||
0
).
toLocaleString
()
}}
</div>
</div>
</div>
<div
style=
"align-self: flex-end;"
v-if=
"v.rate!=0&&dateMode
<5
"
>
<div
style=
"align-self: flex-end;"
v-if=
"v.rate!=0&&dateMode
<5
"
>
<div>
{{
v
.
rate
>
0
?
'↑'
:
'↓'
}}{{
v
.
rate
}}
%
</div>
<div>
{{
v
.
rate
>
0
?
'↑'
:
'↓'
}}{{
v
.
rate
}}
%
</div>
...
@@ -77,12 +77,12 @@ export default{
...
@@ -77,12 +77,12 @@ export default{
},
"加载中"
,{})
},
"加载中"
,{})
if
(
typeof
value
==
'object'
&&
value
.
length
>
0
){
if
(
typeof
value
==
'object'
&&
value
.
length
>
0
){
this
.
list
=
value
.
map
(
v
=>
{
this
.
list
=
value
.
map
(
v
=>
{
if
(
v
.
sValued
==
0
&&
v
.
sValue
!=
0
){
if
(
v
.
nAmounted
==
0
&&
v
.
nAmount
!=
0
){
v
.
rate
=
v
.
sValue
>
0
?
100
:
-
100
v
.
rate
=
v
.
nAmount
>
0
?
100
:
-
100
}
else
if
(
v
.
sValue
==
0
){
}
else
if
(
v
.
nAmount
==
0
){
v
.
rate
=
0
v
.
rate
=
0
}
else
{
}
else
{
v
.
rate
=
Math
.
round
((
v
.
sValue
-
v
.
sValued
)
/
v
.
sValu
ed
*
100
)
/
100
v
.
rate
=
Math
.
round
((
v
.
nAmount
-
v
.
nAmounted
)
/
v
.
nAmount
ed
*
100
)
/
100
}
}
return
v
;
return
v
;
})
})
...
...
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