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
4ba24a18
Commit
4ba24a18
authored
Dec 10, 2018
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
班级列表排序
parent
9589855c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
userList.vue
src/components/class/userList.vue
+6
-6
No files found.
src/components/class/userList.vue
View file @
4ba24a18
...
...
@@ -123,7 +123,7 @@
type=
"selection"
width=
"55"
>
</el-table-column>
<el-table-column
label=
"用户"
className=
"f-c"
width=
"150"
sortable
>
<el-table-column
label=
"用户"
className=
"f-c"
width=
"150"
sortable
sort-by=
"scope.row.user_id"
>
<
template
slot-scope=
"scope"
>
<img
:src=
"scope.row.avatar"
style=
"width: 40px;height: 40px;border-radius: 50px"
>
{{
scope
.
row
.
nickname
}}
(ID:
{{
scope
.
row
.
user_id
}}
)
</
template
>
...
...
@@ -141,7 +141,7 @@
</
template
>
</el-table-column>
<el-table-column
label=
"最后登录时间"
sortable
width=
"140"
>
label=
"最后登录时间"
sortable
width=
"140"
sort-by=
"scope.row.last_login_at"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
last_login_at
}}
</
template
>
...
...
@@ -159,25 +159,25 @@
</
template
>
</el-table-column>
<el-table-column
label=
"课包查看次数"
sortable
width=
"140"
>
label=
"课包查看次数"
sortable
width=
"140"
sort-by=
"scope.row.watch_course_num"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
watch_course_num
}}
</
template
>
</el-table-column>
<el-table-column
label=
"学习时长(分)"
sortable
width=
"150"
>
label=
"学习时长(分)"
sortable
width=
"150"
sort-by=
"Math.round(scope.row.watch_course_time / 60 * 100) / 100"
>
<
template
slot-scope=
"scope"
>
{{
Math
.
round
(
scope
.
row
.
watch_course_time
/
60
*
100
)
/
100
}}
</
template
>
</el-table-column>
<el-table-column
label=
"作业率"
sortable
>
label=
"作业率"
sortable
sort-by=
"scope.row.work_rate"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
work_rate
|
percent
}}
</
template
>
</el-table-column>
<el-table-column
label=
"打卡率"
sortable
>
label=
"打卡率"
sortable
sort-by=
"scope.row.clock_rate"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
clock_rate
|
percent
}}
</
template
>
...
...
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