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
40d5963e
Commit
40d5963e
authored
Jan 02, 2019
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无
parent
d392ab5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
userList.vue
src/components/class/userList.vue
+19
-10
No files found.
src/components/class/userList.vue
View file @
40d5963e
...
...
@@ -132,7 +132,7 @@
</el-table-column>
<el-table-column
label=
"用户"
className=
"f-c"
width=
"150"
sortable
prop=
"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
}}
)
<img
:src=
"scope.row.avatar"
style=
"width: 40px;
min-width:40px;
height: 40px;border-radius: 50px"
>
{{
scope
.
row
.
nickname
}}
(ID:
{{
scope
.
row
.
user_id
}}
)
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -207,13 +207,20 @@
{{
scope
.
row
.
weight
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"
320"
fixed=
"right
"
>
<el-table-column
label=
"操作"
width=
"
120"
fixed=
"right"
v-if=
"!$store.state.readonly
"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"warning"
size=
"mini"
@
click=
"editPrivilege(scope.row)"
>
编辑
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"onGetUserDescList(scope.row)"
>
备注
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"userLook(scope.row)"
v-if=
"!$store.state.readonly"
>
看课情况
</el-button>
<el-button
type=
"danger"
size=
"mini"
@
click=
"onDel(scope.row)"
v-if=
"$store.state.deletePermission && !$store.state.readonly"
>
删除
</el-button>
</
template
>
<el-popover
placement=
"top"
width=
"400"
>
<div
style=
"text-align: center"
>
<el-button
type=
"warning"
size=
"mini"
plain
@
click=
"editPrivilege(scope.row)"
>
编辑
</el-button>
<el-button
type=
"primary"
size=
"mini"
plain
@
click=
"onGetUserDescList(scope.row)"
>
备注
</el-button>
<el-button
type=
"primary"
size=
"mini"
plain
@
click=
"userLook(scope.row)"
v-if=
"!$store.state.readonly"
>
看课情况
</el-button>
<el-button
type=
"danger"
size=
"mini"
plain
@
click=
"onDel(scope.row)"
v-if=
"$store.state.deletePermission && !$store.state.readonly"
>
删除
</el-button>
</div>
<el-button
slot=
"reference"
size=
"mini"
type=
"text"
>
操作
</el-button>
</el-popover>
</
template
>
</el-table-column>
</el-table>
<page
:nowPage=
"searchFrom.nowPage"
:total=
"searchFrom.total"
:limit=
"searchFrom.limit"
@
pageChange=
"onListPageChange"
@
sizeChange=
"onListSizeChange"
/>
...
...
@@ -685,7 +692,7 @@
}
);
getClassUserApi
(
this
.
userObj
.
classId
,
json
).
then
(
res
=>
{
this
.
searchFrom
.
total
=
res
.
total
;
this
.
userTable
=
res
.
list
this
.
userTable
=
res
.
list
;
}
);
this
.
changeClassObj
=
{
show
:
false
,
...
...
@@ -698,11 +705,13 @@
}
,
initPage
(){
this
.
searchFrom
=
{
user_id
:
''
,
user_id
:
''
,
is_add_teacher
:
''
,
is_view_course
:
''
,
start_at
:
''
,
end_at
:
''
end_at
:
''
,
limit
:
10
,
page
:
1
,
}
;
this
.
statistics
=
{
...
...
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