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
01b0f357
Commit
01b0f357
authored
Sep 19, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
b0318853
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
89 additions
and
37 deletions
+89
-37
index.vue
src/components/class/index.vue
+2
-2
dialog.vue
src/components/lesson/dialog.vue
+1
-1
index.vue
src/components/order/index.vue
+4
-4
index.vue
src/components/periods/index.vue
+1
-1
dialog.vue
src/components/shop/dialog.vue
+7
-2
admin.vue
src/components/system/admin.vue
+40
-4
banner.vue
src/components/system/banner.vue
+5
-0
index.vue
src/components/teacher/index.vue
+0
-4
index.vue
src/components/user/index.vue
+14
-11
index.vue
src/components/userDetail/index.vue
+15
-8
No files found.
src/components/class/index.vue
View file @
01b0f357
...
@@ -53,10 +53,10 @@
...
@@ -53,10 +53,10 @@
<el-form-item
label=
"老师数量"
>
{{
countObj
.
count_teacher_num
}}
</el-form-item>
<el-form-item
label=
"老师数量"
>
{{
countObj
.
count_teacher_num
}}
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"预计学
生
总数"
>
{{
countObj
.
count_max_join_num
}}
</el-form-item>
<el-form-item
label=
"预计学
员
总数"
>
{{
countObj
.
count_max_join_num
}}
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"
班级学生
总数"
>
{{
countObj
.
count_join_num
}}
</el-form-item>
<el-form-item
label=
"
学员
总数"
>
{{
countObj
.
count_join_num
}}
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"结束时间"
>
{{
title
.
over_at
}}
</el-form-item>
<el-form-item
label=
"结束时间"
>
{{
title
.
over_at
}}
</el-form-item>
...
...
src/components/lesson/dialog.vue
View file @
01b0f357
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<el-form-item
label=
"课程标题"
prop=
"title"
>
<el-form-item
label=
"课程标题"
prop=
"title"
>
<el-input
v-model=
"form.title"
></el-input>
<el-input
v-model=
"form.title"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"课程封面"
>
<el-form-item
label=
"课程封面
(670*472)
"
>
<el-upload
<el-upload
action=
"/api/public/upload"
action=
"/api/public/upload"
:http-request=
"uploadFileMain"
:http-request=
"uploadFileMain"
...
...
src/components/order/index.vue
View file @
01b0f357
...
@@ -132,10 +132,10 @@
...
@@ -132,10 +132,10 @@
<el-table-column
<el-table-column
label=
"收货地址"
>
label=
"收货地址"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.user_address_id"
>
<div
v-if=
"scope.row.user_address_id
&& scope.row.address_info
"
>
{{
scope
.
row
.
receive_name
}}
<br>
{{
scope
.
row
.
address_info
.
receive_name
}}
<br>
{{
scope
.
row
.
receive_mobile
}}
<br>
{{
scope
.
row
.
address_info
.
receive_mobile
}}
<br>
{{
scope
.
row
.
province_name
}}{{
scope
.
row
.
city
}}{{
scope
.
row
.
area
}}{{
scope
.
row
.
address
}}
{{
scope
.
row
.
address_info
.
province_name
}}{{
scope
.
row
.
address_info
.
city
}}{{
scope
.
row
.
address_info
.
area
}}{{
scope
.
row
.
address_info
.
address
}}
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
src/components/periods/index.vue
View file @
01b0f357
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"总
的
学员数"
>
label=
"总学员数"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
total_user_num
?
scope
.
row
.
total_user_num
:
''
}}
{{
scope
.
row
.
total_user_num
?
scope
.
row
.
total_user_num
:
''
}}
</
template
>
</
template
>
...
...
src/components/shop/dialog.vue
View file @
01b0f357
...
@@ -59,18 +59,19 @@
...
@@ -59,18 +59,19 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-form-item
label=
"主图"
>
<el-form-item
label=
"主图
(750*600)
"
>
<el-upload
<el-upload
list-type=
"picture-card"
list-type=
"picture-card"
class=
"upload-demo"
class=
"upload-demo"
action=
"/api/public/upload"
action=
"/api/public/upload"
:limit=
"1"
:http-request=
"uploadFileMain"
:http-request=
"uploadFileMain"
:file-list=
"form.goods_desc.img"
:file-list=
"form.goods_desc.img"
>
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
<el-form-item
label=
"客服"
>
<el-form-item
label=
"客服
(200*200)
"
>
<el-upload
<el-upload
list-type=
"picture-card"
list-type=
"picture-card"
class=
"upload-demo"
class=
"upload-demo"
...
@@ -432,4 +433,8 @@
...
@@ -432,4 +433,8 @@
display: block;
display: block;
text-align: center;
text-align: center;
}
}
.size {
color: #666;
font-size: 14px;
}
</
style
>
</
style
>
src/components/system/admin.vue
View file @
01b0f357
<
template
>
<
template
>
<div
class=
"admin"
>
<div
class=
"admin"
>
<div
class=
"head clear-both"
>
<el-form
ref=
"searchFrom"
:model=
"searchFrom"
label-width=
"80px"
>
<el-button
@
click=
"add"
plain
type=
"success"
style=
"float: right"
v-if=
"!$store.state.readonly"
>
新增角色
</el-button>
<el-row>
</div>
<el-col
:span=
"4"
>
<el-form-item
label=
"用户名"
>
<el-input
v-model=
"searchFrom.user_name"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"状态"
>
<el-select
v-model=
"searchFrom.status"
placeholder=
"请选择用户等级"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"启用"
:value=
"0"
></el-option>
<el-option
label=
"冻结"
:value=
"1"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item>
<el-button
type=
"primary"
plain
@
click=
"getList"
>
搜索
</el-button>
</el-form-item>
</el-col>
<el-col
:span=
"4"
:offset=
"8"
>
<el-button
@
click=
"add"
plain
type=
"success"
style=
"float: right"
v-if=
"!$store.state.readonly"
>
新增角色
</el-button>
</el-col>
</el-row>
</el-form>
<!--
<div
class=
"head clear-both"
>
-->
<!---->
<!--
</div>
-->
<el-table
<el-table
:data=
"adminList"
:data=
"adminList"
style=
"width: 100%"
>
style=
"width: 100%"
>
...
@@ -161,6 +187,10 @@
...
@@ -161,6 +187,10 @@
total
:
0
,
total
:
0
,
limit
:
10
,
limit
:
10
,
adminList
:[],
adminList
:[],
searchFrom
:{
user_name
:
''
,
status
:
''
},
dialog
:{
dialog
:{
dialogType
:
0
,
dialogType
:
0
,
title
:
'新增账号'
,
title
:
'新增账号'
,
...
@@ -187,7 +217,7 @@
...
@@ -187,7 +217,7 @@
role_id
:
''
,
role_id
:
''
,
status
:
0
,
status
:
0
,
desc
:
''
desc
:
''
}
}
,
},
},
roleList
:
[]
roleList
:
[]
}
}
...
@@ -218,6 +248,12 @@
...
@@ -218,6 +248,12 @@
limit
:
this
.
limit
,
limit
:
this
.
limit
,
page
:
this
.
nowPage
page
:
this
.
nowPage
}
}
if
(
this
.
searchFrom
.
user_name
){
json
.
user_name
=
this
.
searchFrom
.
user_name
}
if
(
this
.
searchFrom
.
status
!==
''
){
json
.
status
=
this
.
searchFrom
.
status
}
getAdminListApi
(
json
).
then
(
res
=>
{
getAdminListApi
(
json
).
then
(
res
=>
{
this
.
adminList
=
res
.
list
this
.
adminList
=
res
.
list
this
.
total
=
Number
(
res
.
total
)
this
.
total
=
Number
(
res
.
total
)
...
...
src/components/system/banner.vue
View file @
01b0f357
...
@@ -80,6 +80,7 @@
...
@@ -80,6 +80,7 @@
:on-remove=
"handleRemove"
>
:on-remove=
"handleRemove"
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
</el-upload>
</el-upload>
<p
class=
"size"
>
750*400
</p>
</div>
</div>
</el-form>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -290,6 +291,10 @@
...
@@ -290,6 +291,10 @@
clear: both;
clear: both;
}
}
}
}
.size {
color: #666;
font-size: 14px;
}
</
style
>
</
style
>
<
style
>
<
style
>
.disabled
.el-upload--picture-card
{
.disabled
.el-upload--picture-card
{
...
...
src/components/teacher/index.vue
View file @
01b0f357
...
@@ -34,10 +34,6 @@
...
@@ -34,10 +34,6 @@
<el-table
<el-table
:data=
"userList"
:data=
"userList"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
prop=
"id"
label=
"账号ID"
>
</el-table-column>
<el-table-column
<el-table-column
prop=
"name"
prop=
"name"
label=
"名称"
>
label=
"名称"
>
...
...
src/components/user/index.vue
View file @
01b0f357
...
@@ -28,18 +28,10 @@
...
@@ -28,18 +28,10 @@
:data=
"userList"
:data=
"userList"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
<el-table-column
prop=
"user_id"
className=
"f-c"
label=
"账号ID"
>
label=
"用户"
>
</el-table-column>
<el-table-column
prop=
"nickname"
label=
"用户名"
>
</el-table-column>
<el-table-column
prop=
"avatar"
label=
"头像"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<img
class=
"avatar"
:src=
"scope.row.avatar"
>
<img
class=
"avatar"
:src=
"scope.row.avatar"
>
{{
scope
.
row
.
nickname
}}
(ID:
{{
scope
.
row
.
user_id
}}
)
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -165,6 +157,8 @@
...
@@ -165,6 +157,8 @@
@import "../../util/public";
@import "../../util/public";
.avatar {
.avatar {
width: 50px;
width: 50px;
margin-right: 5px;
border-radius: 50%;
}
}
.user{
.user{
height: 100%;
height: 100%;
...
@@ -174,4 +168,13 @@
...
@@ -174,4 +168,13 @@
text-align: center;
text-align: center;
}
}
}
}
</
style
>
<
style
>
.f-c
>
div
{
display
:
flex
!important
;
flex-flow
:
row
;
justify-content
:
flex-start
;
align-items
:
center
;
}
</
style
>
</
style
>
src/components/userDetail/index.vue
View file @
01b0f357
...
@@ -26,13 +26,13 @@
...
@@ -26,13 +26,13 @@
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<label>
老师ID:
</label>
{{
detail
.
teacher_id
}}
<label>
老师ID:
</label>
{{
detail
.
teacher_id
?
detail
.
teacher_id
:
''
}}
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<label>
邀请类型:
</label>
{{
detail
.
invite_type
|
inviteType
}}
<label>
邀请类型:
</label>
{{
detail
.
invite_type
|
inviteType
}}
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<label>
邀请人ID:
</label>
{{
detail
.
invite_user_id
}}
<label>
邀请人ID:
</label>
{{
detail
.
invite_user_id
?
detail
.
invite_user_id
:
''
}}
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<label>
注册时间:
</label>
{{
detail
.
created_at
}}
<label>
注册时间:
</label>
{{
detail
.
created_at
}}
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
className=
"f-c"
label=
"老师"
>
label=
"老师"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<img
class=
"avatar"
:src=
"scope.row.teacher_qr"
>
{{
scope
.
row
.
teacher_name
}}
<img
class=
"avatar"
:src=
"scope.row.teacher_qr"
>
{{
scope
.
row
.
teacher_name
}}
...
@@ -90,13 +91,10 @@
...
@@ -90,13 +91,10 @@
label=
"订单号"
>
label=
"订单号"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"user_nickname"
className=
"f-c"
label=
"用户名"
>
label=
"用户"
>
</el-table-column>
<el-table-column
label=
"头像"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<img
class=
"avatar"
:src=
"scope.row.user_avatar"
>
<img
class=
"avatar"
:src=
"scope.row.user_avatar"
>
{{
scope
.
row
.
user_nickname
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -297,3 +295,12 @@
...
@@ -297,3 +295,12 @@
color
:
#
666
;
color
:
#
666
;
}
}
<
/style
>
<
/style
>
<
style
>
.
f
-
c
>
div
{
display
:
flex
!
important
;
flex
-
flow
:
row
;
justify
-
content
:
flex
-
start
;
align
-
items
:
center
;
}
<
/style
>
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