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
ed9b8c13
Commit
ed9b8c13
authored
Sep 07, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
a7a0a6ec
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
81 additions
and
12 deletions
+81
-12
newDialog.vue
src/components/periods/newDialog.vue
+3
-0
index.vue
src/components/shop/index.vue
+7
-1
index.vue
src/components/teacher/index.vue
+39
-7
detail.vue
src/components/user/detail.vue
+7
-1
index.vue
src/components/user/index.vue
+25
-3
No files found.
src/components/periods/newDialog.vue
View file @
ed9b8c13
...
...
@@ -233,6 +233,9 @@
// this.initPage()
this
.
getTeachers
();
this
.
getGoodsOption
();
if
(
this
.
dialogObj
.
form
.
goods_id
){
this
.
getLessonDetail
(
this
.
dialogObj
.
form
.
goods_id
);
}
this
.
form
=
this
.
dialogObj
.
form
;
this
.
teacherList
=
this
.
dialogObj
.
form
.
teacher_ids
;
}
...
...
src/components/shop/index.vue
View file @
ed9b8c13
...
...
@@ -37,7 +37,13 @@
</
template
>
</el-table-column>
<el-table-column
label=
"现价"
>
label=
"商品原价/直购价"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
original_price
/
100
}}
元
</
template
>
</el-table-column>
<el-table-column
label=
"商品现价/团购价"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
current_price
/
100
}}
元
</
template
>
...
...
src/components/teacher/index.vue
View file @
ed9b8c13
...
...
@@ -7,13 +7,24 @@
<el-input
v-model=
"searchFrom.name"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"教师类型"
>
<el-select
v-model=
"searchFrom.type"
placeholder=
"请选择"
>
<el-option
v-for=
"item in teacherTypeOption"
:key=
"item.id"
:label=
"item.label"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item>
<el-button
type=
"primary"
plain
>
搜索
</el-button>
<el-button
type=
"primary"
plain
@
click=
"getUser"
>
搜索
</el-button>
</el-form-item>
</el-col>
<el-col
:span=
"4"
:offset=
"
12
"
>
<el-col
:span=
"4"
:offset=
"
8
"
>
<el-form-item>
<el-button
type=
"success"
plain
@
click=
"add"
>
新增教师
</el-button>
</el-form-item>
...
...
@@ -35,6 +46,12 @@
prop=
"alias"
label=
"微信号"
>
</el-table-column>
<el-table-column
label=
"状态"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
status
===
0
?
'正常'
:
'禁用'
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"invite_code"
label=
"邀请码"
>
...
...
@@ -54,12 +71,9 @@
</
template
>
</el-table-column>
<el-table-column
width=
"
25
0"
width=
"
18
0"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
plain
type=
"primary"
@
click=
"detail(scope.row)"
>
查看详情
</el-button>
<el-button
size=
"mini"
plain
type=
"warning"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
...
...
@@ -94,6 +108,24 @@
show
:
false
,
id
:
''
},
teacherTypeOption
:
[
{
id
:
0
,
label
:
'老师'
},
{
id
:
1
,
label
:
'新星妈妈'
},
{
id
:
2
,
label
:
'推广人'
},
{
id
:
3
,
label
:
'市场'
}
]
}
},
components
:{
...
...
src/components/user/detail.vue
View file @
ed9b8c13
...
...
@@ -16,7 +16,7 @@
<el-row>
<el-col
:span=
"4"
><label>
手机号
</label></el-col>
<el-col
:span=
"8"
>
{{
userDetail
.
mobile
}}
</el-col>
<el-col
:span=
"4"
><label>
创建
时间
</label></el-col>
<el-col
:span=
"4"
><label>
注册
时间
</label></el-col>
<el-col
:span=
"8"
>
{{
userDetail
.
created_at
}}
</el-col>
</el-row>
<el-row>
...
...
@@ -31,6 +31,12 @@
<el-col
:span=
"4"
><label>
最后登录
</label></el-col>
<el-col
:span=
"8"
>
{{
userDetail
.
last_login_at
}}
</el-col>
</el-row>
<el-row
align=
"middle"
type=
"flex"
>
<el-col
:span=
"4"
><label>
邀请码
</label></el-col>
<el-col
:span=
"8"
>
{{
userDetail
.
invite_code
}}
</el-col>
</el-row>
</el-dialog>
</
template
>
...
...
src/components/user/index.vue
View file @
ed9b8c13
...
...
@@ -35,6 +35,17 @@
prop=
"nickname"
label=
"用户名"
>
</el-table-column>
<el-table-column
prop=
"avatar"
label=
"头像"
>
<template
slot-scope=
"scope"
>
<img
class=
"avatar"
:src=
"scope.row.avatar"
>
</
template
>
</el-table-column>
<el-table-column
prop=
"invite_code"
label=
"邀请码"
>
</el-table-column>
<el-table-column
prop=
"mobile"
label=
"手机号"
>
...
...
@@ -43,6 +54,14 @@
prop=
"level"
label=
"等级"
>
</el-table-column>
<el-table-column
prop=
"created_at"
label=
"注册时间"
>
</el-table-column>
<el-table-column
prop=
"last_login_at"
label=
"最后登录时间"
>
</el-table-column>
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -53,14 +72,14 @@
</el-table-column>
</el-table>
<page
:total=
"total"
v-model=
"nowPage"
/>
<detail
v-model=
"showDetail"
:showId=
"showId"
/>
<detail
-dialog
:showDetail =
"showDetail"
:showId=
"showId"
/>
</div>
</template>
<
script
>
import
{
getUserListApi
}
from
"../../service/api"
;
import
page
from
'../framework/page'
import
detail
from
'./detail'
import
detail
Dialog
from
'./detail'
export
default
{
name
:
"index"
,
data
(){
...
...
@@ -79,7 +98,7 @@
},
components
:{
page
,
detail
detail
Dialog
},
mounted
(){
this
.
getUser
()
...
...
@@ -105,6 +124,9 @@
<
style
scoped
lang=
"less"
>
@import "../../util/public";
.avatar {
width: 50px;
}
.user{
height: 100%;
overflow: auto;
...
...
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