Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pc
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
wbx-PCAndMobi
pc
Commits
246cfc8f
Commit
246cfc8f
authored
Apr 07, 2021
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页的百分比参数变化
parent
ab89cac7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
home.vue
src/views/home.vue
+11
-2
No files found.
src/views/home.vue
View file @
246cfc8f
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
<div
class=
"month"
>
<div
class=
"month"
>
<div
class=
"home-card monthTitle"
>
<div
class=
"home-card monthTitle"
>
<span>
房办月查
</span>
<span>
房办月查
</span>
<span>
{{
!
parseInt
(((
secRowInfos
.
HOUSING_OFFICE
.
count
.
rectifiedCount
/
secRowInfos
.
HOUSING_OFFICE
.
count
.
rectifyCount
)
*
100
))?
0
:
parseInt
(((
secRowInfos
.
HOUSING_OFFICE
.
count
.
rectifiedCount
/
secRowInfos
.
HOUSING_OFFICE
.
count
.
rectifyCount
)
*
100
))
}}
%
</span>
<span>
{{
FBPresent
}}
%
</span>
</div>
</div>
<div
class=
"home-card monthBox"
>
<div
class=
"home-card monthBox"
>
<p
class=
"monthBoxTitle"
>
今年完成情况
</p>
<p
class=
"monthBoxTitle"
>
今年完成情况
</p>
...
@@ -188,7 +188,7 @@
...
@@ -188,7 +188,7 @@
<div
class=
"month"
>
<div
class=
"month"
>
<div
class=
"home-card monthTitle"
>
<div
class=
"home-card monthTitle"
>
<span>
物企双周查
</span>
<span>
物企双周查
</span>
<span>
{{
!
parseInt
(((
secRowInfos
.
PROPERTY_BIWEEKLY
.
count
.
rectifiedCount
/
secRowInfos
.
PROPERTY_BIWEEKLY
.
count
.
rectifyCount
)
*
100
))?
0
:
parseInt
(((
secRowInfos
.
PROPERTY_BIWEEKLY
.
count
.
rectifiedCount
/
secRowInfos
.
PROPERTY_BIWEEKLY
.
count
.
rectifyCount
)
*
100
))
}}
%
</span>
<span>
{{
WYPresent
}}
%
</span>
</div>
</div>
<div
class=
"home-card monthBox"
>
<div
class=
"home-card monthBox"
>
<p
class=
"monthBoxTitle"
>
今年完成情况
</p>
<p
class=
"monthBoxTitle"
>
今年完成情况
</p>
...
@@ -412,6 +412,9 @@ export default {
...
@@ -412,6 +412,9 @@ export default {
}
}
},
},
},
},
FBPresent
:
0
,
WYPresent
:
0
,
}
}
},
},
mounted
(){
mounted
(){
...
@@ -567,6 +570,12 @@ export default {
...
@@ -567,6 +570,12 @@ export default {
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
'200'
)
{
if
(
res
.
code
===
'200'
)
{
this
.
secRowInfos
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
{})
this
.
secRowInfos
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
{})
if
(
this
.
secRowInfos
.
HOUSING_OFFICE
)
{
this
.
FBPresent
=
String
(
this
.
secRowInfos
.
HOUSING_OFFICE
.
rato
.
value
*
100
).
split
(
'.'
)[
0
]
}
if
(
this
.
secRowInfos
.
PROPERTY_BIWEEKLY
)
{
this
.
WYPresent
=
String
(
this
.
secRowInfos
.
PROPERTY_BIWEEKLY
.
rato
.
value
*
100
).
split
(
'.'
)[
0
]
}
// 处理房办的月份颜色
// 处理房办的月份颜色
this
.
secRowInfos
.
HOUSING_OFFICE
.
data
.
forEach
((
ele
,
i
)
=>
{
this
.
secRowInfos
.
HOUSING_OFFICE
.
data
.
forEach
((
ele
,
i
)
=>
{
if
(
ele
.
rectifiedCount
/
ele
.
rectifyCount
==
1
)
{
// 完成率100 绿色
if
(
ele
.
rectifiedCount
/
ele
.
rectifyCount
==
1
)
{
// 完成率100 绿色
...
...
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