Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mobi
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
1
Merge Requests
1
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
mobi
Commits
728e57a0
Commit
728e57a0
authored
Apr 30, 2021
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard 日历组件颜色修复
parent
9978c122
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
home.vue
src/views/home.vue
+11
-5
No files found.
src/views/home.vue
View file @
728e57a0
...
...
@@ -517,12 +517,17 @@ export default {
}
spaceOnce
=
false
}
// 数据
let
info
=
this
.
secRowInfos
.
COMMUNITY_MANAGER_MATH
&&
this
.
secRowInfos
.
COMMUNITY_MANAGER_MATH
.
data
[
i
-
1
]
?
this
.
secRowInfos
.
COMMUNITY_MANAGER_MATH
.
data
[
i
-
1
].
rato
:
0
// 数据的时间
let
data_time
=
this
.
secRowInfos
.
COMMUNITY_MANAGER_MATH
&&
this
.
secRowInfos
.
COMMUNITY_MANAGER_MATH
.
data
[
i
-
1
]?
this
.
secRowInfos
.
COMMUNITY_MANAGER_MATH
.
data
[
i
-
1
].
checkTime
.
slice
(
8
,
10
):
100
// 默认颜色
let
color
=
'rgb(226,235,245)'
console
.
log
(
dateArr
)
if
(
i
==
Number
(
data_time
)){
if
(
info
)
{
// 当前日期
let
curDay
=
dateArr
[
2
]
if
(
i
<=
curDay
)
{
// 今天之后的颜色不做处理
if
(
i
==
Number
(
data_time
)
&&
info
){
// 有数据并且数据的时间为对应日期 就根据数据改变颜色
if
(
info
<
0.9
)
{
color
=
'#CC4D4D'
}
else
if
(
info
==
1
)
{
...
...
@@ -530,10 +535,11 @@ export default {
}
else
{
color
=
'#FFD400'
}
}
else
{
// 当数据缺失的时候直接红色
color
=
'#CC4D4D'
}
}
// console.log( info,'-------',color)
tab
+=
'<td onclick=clickDate('
+
i
+
') style="border-radius:20%;text-align:center;border:4px solid #fff; cursor: pointer; background:'
+
color
+
'">'
+
i
+
'</td>'
if
((
i
-
(
8
-
firstDay
))
%
7
==
0
){
...
...
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