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
7d221515
Commit
7d221515
authored
Oct 26, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户详情中添加班级成员
parent
aa3540de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
index.vue
src/components/userDetail/index.vue
+25
-2
No files found.
src/components/userDetail/index.vue
View file @
7d221515
...
...
@@ -149,6 +149,14 @@
prop=
"created_at"
label=
"创建时间"
>
</el-table-column>
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click=
"showUser(scope.row)"
size=
"mini"
plain
type=
"primary"
>
班级成员
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
class=
"b-title"
>
订单列表
</div>
<el-table
...
...
@@ -243,6 +251,7 @@
<
/el-table
>
<
page
:
total
=
"total"
:
limit
=
"limit"
@
pageChange
=
"onPageChange"
/>
<
teacher
-
dialog
:
dialogObj
=
"dialogObj"
@
reflash
=
"getDetail"
><
/teacher-dialog
>
<
user
-
list
:
userObj
=
"userObj"
/>
<
/div
>
<
/template
>
...
...
@@ -251,6 +260,7 @@
import
page
from
'../framework/page'
import
{
INVITETYPE
,
ORDERSTATUS
,
BUYTYPE
}
from
"../../util/wordbook"
;
import
teacherDialog
from
'./dialog'
import
UserList
from
'../class/userList'
export
default
{
name
:
"index"
,
data
(){
...
...
@@ -268,12 +278,18 @@
id
:
0
,
teacher_id
:
0
}
,
list
:
[]
list
:
[],
userObj
:{
classId
:
''
,
title
:
''
,
show
:
false
,
}
}
}
,
components
:{
page
,
teacherDialog
teacherDialog
,
UserList
}
,
mounted
(){
this
.
id
=
this
.
$route
.
params
.
id
;
...
...
@@ -340,6 +356,13 @@
id
:
data
.
user_id
,
teacher_id
:
data
.
teacher_id
}
}
,
showUser
(
data
){
this
.
userObj
=
{
classId
:
data
.
class_id
,
show
:
true
,
title
:
`${data.teacher_name
}
班级用户列表`
}
}
}
,
filters
:{
...
...
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