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
aedb1d17
Commit
aedb1d17
authored
Dec 07, 2018
by
chenfenglei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' of
http://git.singsingenglish.com/new-sing/admin
into development
parents
87a0a382
605e40c2
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
49 additions
and
34 deletions
+49
-34
index.vue
src/components/achievement/index.vue
+24
-9
userList.vue
src/components/class/userList.vue
+7
-7
index.vue
src/components/coupon/index.vue
+1
-1
index.vue
src/components/externalLaunch/index.vue
+1
-1
index.vue
src/components/order/index.vue
+2
-2
index.vue
src/components/periods/index.vue
+2
-2
index.vue
src/components/refund/index.vue
+1
-1
index.vue
src/components/sourceManage/index.vue
+1
-1
admin.vue
src/components/system/admin.vue
+1
-1
adminLog.vue
src/components/system/adminLog.vue
+1
-1
role.vue
src/components/system/role.vue
+1
-1
sysConfig.vue
src/components/system/sysConfig.vue
+1
-1
sysConfigDialog.vue
src/components/system/sysConfigDialog.vue
+1
-1
chooseGoodDialog.vue
src/components/teacherDetail/chooseGoodDialog.vue
+2
-2
index.vue
src/components/teacherDetail/index.vue
+1
-1
index.vue
src/components/user/index.vue
+2
-2
No files found.
src/components/achievement/index.vue
View file @
aedb1d17
...
...
@@ -32,22 +32,22 @@
</el-table-column>
<el-table-column
prop=
"total_money"
label=
"销售额"
label=
"销售额"
sortable
>
</el-table-column>
<el-table-column
prop=
"three_month"
label=
"季课"
label=
"季课"
sortable
>
</el-table-column>
<el-table-column
prop=
"one_year"
label=
"年课"
label=
"年课"
sortable
>
</el-table-column>
<el-table-column
prop=
"two_year"
label=
"2年课"
label=
"2年课"
sortable
>
</el-table-column>
</el-table>
...
...
@@ -77,7 +77,7 @@
style=
"width: 100%"
>
<el-table-column
prop=
"cur_date"
label=
"时间"
label=
"时间"
sortable
>
</el-table-column>
<el-table-column
...
...
@@ -87,22 +87,22 @@
</el-table-column>
<el-table-column
prop=
"total_money"
label=
"销售额"
label=
"销售额"
sortable
>
</el-table-column>
<el-table-column
prop=
"three_month"
label=
"季课"
label=
"季课"
sortable
>
</el-table-column>
<el-table-column
prop=
"one_year"
label=
"年课"
label=
"年课"
sortable
>
</el-table-column>
<el-table-column
prop=
"two_year"
label=
"2年课"
label=
"2年课"
sortable
>
</el-table-column>
</el-table>
...
...
@@ -129,6 +129,7 @@
}
},
mounted
(){
this
.
defaultTime
();
this
.
searchFirstPage
();
},
methods
:
{
...
...
@@ -163,7 +164,21 @@
getTeacherDayRankListApi
(
json
).
then
(
res
=>
{
this
.
secondList
=
res
;
})
},
defaultTime
(){
let
date
=
new
Date
();
let
year
=
date
.
getFullYear
();
let
Month
=
date
.
getMonth
()
+
1
;
if
(
Month
<
10
){
Month
=
`0
${
Month
}
`
}
let
Day
=
date
.
getDate
();
if
(
Day
<
10
)
Day
=
`0
${
Day
}
`
let
star
=
`
${
year
}
-
${
Month
}
-01`
;
let
end
=
`
${
year
}
-
${
Month
}
-
${
Day
}
`
this
.
searchFirstFrom
.
dateValue
=
[
star
,
end
]
this
.
searchSecondFrom
.
dateValue
=
[
star
,
end
]
}
}
}
</
script
>
...
...
src/components/class/userList.vue
View file @
aedb1d17
...
...
@@ -123,7 +123,7 @@
type=
"selection"
width=
"55"
>
</el-table-column>
<el-table-column
label=
"用户"
className=
"f-c"
width=
"150"
>
<el-table-column
label=
"用户"
className=
"f-c"
width=
"150"
sortable
>
<
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=
"最后登录时间"
>
label=
"最后登录时间"
sortable
width=
"140"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
last_login_at
}}
</
template
>
...
...
@@ -159,25 +159,25 @@
</
template
>
</el-table-column>
<el-table-column
label=
"课包查看次数"
>
label=
"课包查看次数"
sortable
width=
"140"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
watch_course_num
}}
</
template
>
</el-table-column>
<el-table-column
label=
"学习时长(分)"
>
label=
"学习时长(分)"
sortable
width=
"150"
>
<
template
slot-scope=
"scope"
>
{{
Math
.
round
(
scope
.
row
.
watch_course_time
/
60
*
100
)
/
100
}}
</
template
>
</el-table-column>
<el-table-column
label=
"作业率"
>
label=
"作业率"
sortable
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
work_rate
|
percent
}}
</
template
>
</el-table-column>
<el-table-column
label=
"打卡率"
>
label=
"打卡率"
sortable
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
clock_rate
|
percent
}}
</
template
>
...
...
@@ -189,7 +189,7 @@
</
template
>
</el-table-column>
<el-table-column
label=
"是否添加老师"
>
label=
"是否添加老师"
width=
"120"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
is_add_teacher
===
0
?
'否'
:
'是'
}}
</
template
>
...
...
src/components/coupon/index.vue
View file @
aedb1d17
...
...
@@ -66,7 +66,7 @@
</el-table-column>
<el-table-column
prop=
"use_at"
label=
"使用时间"
>
label=
"使用时间"
sortable
>
</el-table-column>
</el-table>
<page
:nowPage=
"nowPage"
:total=
"total"
@
pageChange=
"onPageChange"
@
sizeChange=
"onSizeChange"
/>
...
...
src/components/externalLaunch/index.vue
View file @
aedb1d17
...
...
@@ -56,7 +56,7 @@
</el-table-column>
<el-table-column
prop=
"create_at"
label=
"添加时间"
>
label=
"添加时间"
sortable
>
</el-table-column>
<el-table-column
prop=
"source"
...
...
src/components/order/index.vue
View file @
aedb1d17
...
...
@@ -189,11 +189,11 @@
</el-table-column>
<el-table-column
prop=
"pay_at"
label=
"购买时间"
>
label=
"购买时间"
sortable
>
</el-table-column>
<el-table-column
prop=
"created_at"
label=
"下单时间"
>
label=
"下单时间"
sortable
>
</el-table-column>
<el-table-column
prop=
"desc"
...
...
src/components/periods/index.vue
View file @
aedb1d17
...
...
@@ -157,7 +157,7 @@
</el-table-column>
<el-table-column
prop=
"start_at"
label=
"起止时间"
>
label=
"起止时间"
sortable
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
start_at
}}
<br>
...
...
@@ -166,7 +166,7 @@
</el-table-column>
<el-table-column
prop=
"created_at"
label=
"创建时间"
>
label=
"创建时间"
sortable
>
</el-table-column>
<el-table-column
label=
"操作"
...
...
src/components/refund/index.vue
View file @
aedb1d17
...
...
@@ -84,7 +84,7 @@
</el-table-column>
<el-table-column
prop=
"success_at"
label=
"退款成功时间"
>
label=
"退款成功时间"
sortable
>
</el-table-column>
<el-table-column
label=
"操作"
...
...
src/components/sourceManage/index.vue
View file @
aedb1d17
...
...
@@ -36,7 +36,7 @@
</el-table-column>
<el-table-column
prop=
"created_at"
label=
"创建时间"
>
label=
"创建时间"
sortable
>
</el-table-column>
<el-table-column
label=
"操作"
...
...
src/components/system/admin.vue
View file @
aedb1d17
...
...
@@ -56,7 +56,7 @@
</el-table-column>
<el-table-column
prop=
"last_login_at"
label=
"最后登陆时间"
>
label=
"最后登陆时间"
sortable
>
</el-table-column>
<el-table-column
v-if=
"!$store.state.readonly"
...
...
src/components/system/adminLog.vue
View file @
aedb1d17
...
...
@@ -61,7 +61,7 @@
</el-table-column>
<el-table-column
prop=
"created_at"
label=
"创建时间"
>
label=
"创建时间"
sortable
>
</el-table-column>
</el-table>
<page
:total=
"total"
:limit=
"limit"
@
pageChange=
"onPageChange"
@
sizeChange=
"onSizeChange"
/>
...
...
src/components/system/role.vue
View file @
aedb1d17
...
...
@@ -16,7 +16,7 @@
</el-table-column>
<el-table-column
prop=
"created_at"
label=
"创建时间"
>
label=
"创建时间"
sortable
>
</el-table-column>
<el-table-column
v-if=
"!$store.state.readonly"
...
...
src/components/system/sysConfig.vue
View file @
aedb1d17
...
...
@@ -35,7 +35,7 @@
</el-table-column>
<el-table-column
prop=
"created_at"
label=
"创建时间"
>
label=
"创建时间"
sortable
>
</el-table-column>
<el-table-column
width=
"250"
...
...
src/components/system/sysConfigDialog.vue
View file @
aedb1d17
...
...
@@ -26,7 +26,7 @@
<el-row>
<el-col
:span=
"4"
><label>
描述
</label></el-col>
<el-col
:span=
"8"
>
<el-form-item>
<el-form-item
prop=
"desc"
>
<el-input
v-model=
"form.desc"
type=
"textarea"
></el-input>
</el-form-item>
</el-col>
...
...
src/components/teacherDetail/chooseGoodDialog.vue
View file @
aedb1d17
<
template
>
<el-dialog
title=
"复制链接"
:visible
.
sync=
"show"
:modal=
"false"
>
<el-dialog
title=
"复制链接"
:visible
.
sync=
"show"
:modal=
"false"
width=
"80%"
>
<el-form
ref=
"searchFrom"
:model=
"searchFrom"
label-width=
"100px"
class=
"search-form"
inline
>
<el-form-item
label=
"商品名称"
>
<el-input
v-model=
"searchFrom.name"
></el-input>
...
...
@@ -120,7 +120,7 @@
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
plain
type=
"success"
@
click=
"copyUrl(scope.row.id)"
>
复制
商品
复制
链接
</el-button>
</
template
>
</el-table-column>
...
...
src/components/teacherDetail/index.vue
View file @
aedb1d17
...
...
@@ -30,7 +30,7 @@
{{
detail
.
user_info
.
nickname
}}
(ID:
{{
detail
.
user_info
.
user_id
}}
)
</el-col>
<el-col
v-if=
"detail.user_info"
>
<el-col
v-if=
"detail.user_info"
:span=
"6"
>
<el-button
@
click=
"createInviteLink(detail.user_info.user_id)"
size=
"mini"
plain
type=
"primary"
>
复制专属链接
</el-button>
...
...
src/components/user/index.vue
View file @
aedb1d17
...
...
@@ -48,11 +48,11 @@
</el-table-column>
<el-table-column
prop=
"created_at"
label=
"注册时间"
>
label=
"注册时间"
sortable
>
</el-table-column>
<el-table-column
prop=
"last_login_at"
label=
"最后登录时间"
>
label=
"最后登录时间"
sortable
>
</el-table-column>
<el-table-column
label=
"操作"
>
...
...
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