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
e67734e6
Commit
e67734e6
authored
5 years ago
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待回访修改
parent
8b58a184
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
8 deletions
+26
-8
replayed.vue
src/components/teacherDetail/replayed.vue
+26
-8
No files found.
src/components/teacherDetail/replayed.vue
View file @
e67734e6
...
...
@@ -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>
...
...
@@ -23,6 +23,7 @@
<el-date-picker
@
change=
"getSTime"
v-model=
"realTime"
type=
"date"
placeholder=
"选择日期"
></el-date-picker>
<el-button
size=
"medium"
type=
"primary"
@
click=
"batchRemarks"
>
批量备注
</el-button>
</div>
<el-table
v-loading=
"infoLoadingDialog"
ref=
"multipleTable"
...
...
@@ -104,11 +105,11 @@
infoDataChild
:
[],
// 详情数据
infoLoading
:
true
,
// 外层loading
infoLoadingDialog
:
true
,
// 详情loading
realTime
:
''
,
// 日历model
fromTimer
:
''
,
// 详情时间
formLabelWidth
:
'120px'
,
remarks
:
''
,
handleSelectionValue
:
[]
handleSelectionValue
:
[],
realTime
:
''
}
},
props
:
{
...
...
@@ -130,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}
...
...
@@ -199,5 +206,16 @@
text-align: center;
float: left;
cursor: pointer;
.weekday-color {
color: #409EFF;
padding-bottom: 4px;
}
.active {
color: red;
}
}
</
style
>
This diff is collapsed.
Click to expand it.
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