Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
multiSystem
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
Yulun Yao
multiSystem
Commits
db209b23
Commit
db209b23
authored
Apr 16, 2021
by
zhangrui123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页小区经理自查的月份颜色修改
parent
10c88365
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
home.vue
src/views/home.vue
+3
-3
No files found.
src/views/home.vue
View file @
db209b23
...
...
@@ -480,12 +480,11 @@ export default {
//日历组件
myCanlendar
(){
let
dateArr
=
[...
this
.
$moment
(
new
Date
()).
format
(
'YYYY-MM-DD'
).
split
(
'-'
)]
// console.log('获取当前日期:'dateArr)
// console.log('获取当前日期:'
,
dateArr)
// 获取当前月对应的最大天数
let
maxDayObj
=
new
Date
(
dateArr
[
0
],
dateArr
[
1
],
0
)
let
maxDay
=
maxDayObj
.
getDate
()
// console.log('当前月对应的最大天数:'+maxDay)
// 获取当前日期第一天对应周几
let
firstDayObj
=
new
Date
(
dateArr
[
0
],
dateArr
[
1
]
-
1
,
1
)
...
...
@@ -504,8 +503,8 @@ 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
info
=
this
.
secRowInfos
.
COMMUNITY_MANAGER_MATH
&&
this
.
secRowInfos
.
COMMUNITY_MANAGER_MATH
.
data
[
i
]
?
this
.
secRowInfos
.
COMMUNITY_MANAGER_MATH
.
data
[
i
].
rato
:
0
let
color
=
'rgb(226,235,245)'
if
(
info
)
{
if
(
info
<
0.9
)
{
...
...
@@ -517,6 +516,7 @@ export default {
}
}
// 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