Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
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
new-sing
admin-base
Commits
84215b5e
Commit
84215b5e
authored
Aug 28, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待回访修改
parent
ab965617
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
replayed.vue
src/components/teacherDetail/replayed.vue
+25
-8
No files found.
src/components/teacherDetail/replayed.vue
View file @
84215b5e
...
...
@@ -9,9 +9,9 @@
</div>
<div
class=
"list-yi"
>
<div
class=
"list-content"
v-for=
"item in infoData"
@
click=
"listContentClick(item.time)"
>
<div>
{{
item
.
day
}}
</div>
<div>
{{
item
.
num
}}
</div>
<div
style=
"color: #409EFF;padding-bottom: 4px;
"
>
{{
item
.
weekday
}}
</div>
<div
:class=
"[ item.state == 1 ? 'active' : '' ]"
>
{{
item
.
day
}}
</div>
<div
:class=
"[ item.state == 1 ? 'active' : '' ]"
>
{{
item
.
num
}}
</div>
<div
:class=
"['weekday-color', item.state == 1 ? 'active' : '' ]
"
>
{{
item
.
weekday
}}
</div>
</div>
</div>
</el-card>
...
...
@@ -105,11 +105,11 @@
infoDataChild
:
[],
// 详情数据
infoLoading
:
true
,
// 外层loading
infoLoadingDialog
:
true
,
// 详情loading
realTime
:
''
,
// 日历model
fromTimer
:
''
,
// 详情时间
formLabelWidth
:
'120px'
,
remarks
:
''
,
handleSelectionValue
:
[]
handleSelectionValue
:
[],
realTime
:
''
}
},
props
:
{
...
...
@@ -131,19 +131,25 @@
this
.
infoLoading
=
true
;
getVisitcalendarApi
(
this
.
customerO
.
id
).
then
(
res
=>
{
this
.
infoLoading
=
false
;
let
infoTimeData
=
[]
let
infoTimeData
=
[];
this
.
realTime
=
new
Date
().
getFullYear
()
+
'-'
+
this
.
add0
(
new
Date
().
getMonth
()
+
1
)
+
'-'
+
this
.
add0
(
new
Date
().
getDate
())
Object
.
keys
(
res
.
weekday
).
map
((
item
,
index
)
=>
{
let
timeStamp
=
new
Date
(
Object
.
keys
(
res
.
visit_count
)[
index
]).
valueOf
(),
dataDay
=
new
Date
(
this
.
realTime
).
valueOf
()
infoTimeData
.
push
({
day
:
item
,
time
:
Object
.
keys
(
res
.
visit_count
)[
index
],
num
:
Object
.
values
(
res
.
visit_count
)[
index
],
weekday
:
Object
.
values
(
res
.
weekday
)[
index
]
weekday
:
Object
.
values
(
res
.
weekday
)[
index
],
state
:
timeStamp
===
dataDay
?
1
:
2
})
})
this
.
infoData
=
infoTimeData
})
},
add0
(
n
)
{
return
n
<
10
?
'0'
+
n
:
n
},
/**
* 点击详情
* @param time {String}
...
...
@@ -200,5 +206,16 @@
text-align: center;
float: left;
cursor: pointer;
.weekday-color {
color: #409EFF;
padding-bottom: 4px;
}
.active {
color: red;
}
}
</
style
>
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