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
441d2224
Commit
441d2224
authored
Sep 12, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build
parent
8451fa92
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
4 deletions
+4
-4
index.html
dist/index.html
+1
-1
app.008c2410b3d171931cb69139d614e8e8.css
dist/static/css/app.008c2410b3d171931cb69139d614e8e8.css
+1
-1
7.0c25f803cb7f87694d59.js
dist/static/js/7.0c25f803cb7f87694d59.js
+1
-0
7.755ba70f5ed3ca8b7804.js
dist/static/js/7.755ba70f5ed3ca8b7804.js
+0
-1
manifest.4bc6a4ebabe097d932db.js
dist/static/js/manifest.4bc6a4ebabe097d932db.js
+1
-1
No files found.
dist/index.html
View file @
441d2224
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><meta
name=
referrer
content=
never
><link
rel=
stylesheet
href=
https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css
><title>
唱唱启蒙-后台
</title><link
href=
/static/css/app.c24cd2a040e585ed31f855ee4b91d9ea.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.684189c8c7c193fa55cf.js
></script><script
type=
text/javascript
src=
/static/js/vendor.0b35d0c5581d0a6334a7.js
></script><script
type=
text/javascript
src=
/static/js/app.eb9d4a2ca348c1013cec.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><meta
name=
referrer
content=
never
><link
rel=
stylesheet
href=
https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css
><title>
唱唱启蒙-后台
</title><link
href=
/static/css/app.008c2410b3d171931cb69139d614e8e8.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.4bc6a4ebabe097d932db.js
></script><script
type=
text/javascript
src=
/static/js/vendor.0b35d0c5581d0a6334a7.js
></script><script
type=
text/javascript
src=
/static/js/app.eb9d4a2ca348c1013cec.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
c24cd2a040e585ed31f855ee4b91d9ea
.css
→
dist/static/css/app.
008c2410b3d171931cb69139d614e8e8
.css
View file @
441d2224
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/7.0c25f803cb7f87694d59.js
0 → 100644
View file @
441d2224
webpackJsonp
([
7
],{
D6RX
:
function
(
t
,
e
){},
HY5N
:
function
(
t
,
e
){},
ayGs
:
function
(
t
,
e
,
o
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
n
=
o
(
"CCn6"
),
a
=
o
(
"+TkF"
),
l
=
o
(
"kmJW"
),
i
=
{
props
:[
"dialogObj"
],
data
:
function
(){
return
{
nowPage
:
1
,
total
:
0
,
goodList
:[],
currentRow
:
null
}},
components
:{
page
:
l
.
a
},
filters
:{
isOrNot
:
function
(
t
){
return
a
.
f
[
t
]},
goodsType
:
function
(
t
){
return
a
.
d
[
t
]},
lessonType
:
function
(
t
){
return
a
.
g
[
t
]},
goodsStatus
:
function
(
t
){
return
a
.
c
[
t
]}},
methods
:{
initPage
:
function
(){
var
t
=
this
;
Object
(
n
.
_7
)().
then
(
function
(
e
){
t
.
goodList
=
e
.
list
,
t
.
total
=
e
.
total
})},
handleCurrentChange
:
function
(
t
){
this
.
currentRow
=
t
},
onConfirm
:
function
(){
this
.
$emit
(
"reflash"
,
this
.
currentRow
)}},
mounted
:
function
(){
this
.
initPage
()}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
o
=
t
.
_self
.
_c
||
e
;
return
o
(
"div"
,[
o
(
"el-dialog"
,{
attrs
:{
title
:
t
.
dialogObj
.
title
,
visible
:
t
.
dialogObj
.
show
},
on
:{
"update:visible"
:
function
(
e
){
t
.
$set
(
t
.
dialogObj
,
"show"
,
e
)}}},[
o
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
goodList
,
"row-key"
:
"id"
,
"highlight-current-row"
:
""
},
on
:{
"current-change"
:
t
.
handleCurrentChange
}},[
o
(
"el-table-column"
,{
attrs
:{
prop
:
"id"
,
label
:
"商品ID"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品类型"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"goodsType"
)(
e
.
row
.
goods_type
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"现价"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
e
.
row
.
current_price
/
100
)
+
"元
\n
"
)]}}])}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"课程类别"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"lessonType"
)(
e
.
row
.
course_type
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"是否有实物"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"isOrNot"
)(
e
.
row
.
is_real
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"goodsStatus"
)(
e
.
row
.
status
))
+
"
\n
"
)]}}])})],
1
),
t
.
_v
(
" "
),
o
(
"page"
,{
attrs
:{
nowPage
:
t
.
nowPage
,
total
:
t
.
total
}}),
t
.
_v
(
" "
),
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
dialogObj
.
show
=!
1
}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onConfirm
}},[
t
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
r
=
o
(
"VU/8"
)(
i
,
s
,
!
1
,
function
(
t
){
o
(
"wA2S"
)},
"data-v-aa878a4a"
,
null
).
exports
,
c
=
{
props
:[
"dialogObj"
],
data
:
function
(){
return
{
loading
:
!
1
,
form
:{},
teacherList
:[],
pickerOptions1
:{
disabledDate
:
function
(
t
){
return
!
(
t
.
getTime
()
>
Date
.
now
())}},
options
:[{
value
:
0
,
label
:
"周日"
},{
value
:
1
,
label
:
"周一"
},{
value
:
2
,
label
:
"周二"
},{
value
:
3
,
label
:
"周三"
},{
value
:
4
,
label
:
"周四"
},{
value
:
5
,
label
:
"周五"
},{
value
:
6
,
label
:
"周六"
}],
teacherOptions
:[],
goodList
:[],
itemOptions
:[],
rules
:{
title
:[{
required
:
!
0
,
message
:
"请输入名称"
,
trigger
:
"change"
}],
start_num
:[{
required
:
!
0
,
message
:
"请输入开始主题"
,
trigger
:
"change"
}],
start_at
:[{
required
:
!
0
,
message
:
"请选择开始上课时间"
,
trigger
:
"change"
}],
rest_week_day
:[{
required
:
!
0
,
message
:
"请选择周几不上课"
,
trigger
:
"change"
}],
teacher_ids
:[{
required
:
!
0
,
message
:
"请选择老师ID"
,
trigger
:
"change"
}],
goods_id
:[{
required
:
!
0
,
message
:
"商品ID不能为空"
,
trigger
:
"change"
}]}}},
components
:{
goodDialog
:
r
},
filters
:{
isOrNot
:
function
(
t
){
return
a
.
f
[
t
]},
goodsType
:
function
(
t
){
return
a
.
d
[
t
]},
lessonType
:
function
(
t
){
return
a
.
g
[
t
]},
goodsStatus
:
function
(
t
){
return
a
.
c
[
t
]},
filterGoods
:
function
(
t
){
return
t
.
name
+
"["
+
t
.
current_price
/
100
+
"元]"
}},
methods
:{
sub
:
function
(){
var
t
=
this
;
this
.
teacherList
?
this
.
$refs
.
form
.
validate
(
function
(
e
){
if
(
e
){
var
o
=
t
.
form
.
goods_id
,
a
=
{
title
:
t
.
form
.
title
,
start_num
:
t
.
form
.
start_num
,
start_at
:
t
.
form
.
start_at
,
rest_week_day
:
t
.
form
.
rest_week_day
?
t
.
form
.
rest_week_day
.
join
(
","
):
""
,
teacher_ids
:
t
.
teacherList
.
join
(
","
)};
t
.
form
.
id
?
Object
(
n
.
_4
)(
t
.
form
.
id
,
a
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
t
.
$emit
(
"reflash"
)}):
Object
(
n
.
Q
)(
o
,
a
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
t
.
$emit
(
"reflash"
)})}}):
this
.
$message
.
error
(
"请选择老师ID"
)},
getTeachers
:
function
(){
var
t
=
this
;
Object
(
n
.
_22
)().
then
(
function
(
e
){
t
.
teacherOptions
=
e
.
list
})},
onOptionChange
:
function
(
t
){
var
e
=
this
.
goodList
.
findIndex
(
function
(
e
){
return
e
.
id
=
t
});
e
>-
1
&&
this
.
getLessonDetail
(
this
.
goodList
[
e
].
course_id
)},
getLessonDetail
:
function
(
t
){
var
e
=
this
;
console
.
log
(
"getLessonDetail"
,
t
),
this
.
form
.
start_num
=
""
,
Object
(
n
.
_9
)(
t
,{}).
then
(
function
(
t
){
e
.
itemOptions
=
t
.
detail
[
t
.
type
]})},
getGoodsOption
:
function
(){
var
t
=
this
;
Object
(
n
.
_7
)({
page
:
1
,
limit
:
100
}).
then
(
function
(
e
){
t
.
goodList
=
e
.
list
})}},
mounted
:
function
(){
this
.
getTeachers
(),
this
.
getGoodsOption
(),
this
.
dialogObj
.
form
.
course_id
&&
this
.
getLessonDetail
(
this
.
dialogObj
.
form
.
course_id
),
this
.
form
=
this
.
dialogObj
.
form
,
this
.
teacherList
=
this
.
dialogObj
.
form
.
teacher_ids
}},
u
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
o
=
t
.
_self
.
_c
||
e
;
return
o
(
"div"
,[
o
(
"el-dialog"
,{
attrs
:{
title
:
t
.
dialogObj
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
t
.
dialogObj
.
show
,
width
:
"800px"
},
on
:{
"update:visible"
:
function
(
e
){
t
.
$set
(
t
.
dialogObj
,
"show"
,
e
)}}},[
o
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
loading
,
expression
:
"loading"
}]},[
o
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
t
.
form
,
"label-width"
:
"120px"
,
rules
:
t
.
rules
}},[
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
10
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品名称"
,
prop
:
"goods_id"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
clearable
:
""
},
on
:{
change
:
t
.
onOptionChange
},
model
:{
value
:
t
.
form
.
goods_id
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"goods_id"
,
e
)},
expression
:
"form.goods_id"
}},
t
.
_l
(
t
.
goodList
,
function
(
e
,
n
){
return
o
(
"el-option"
,{
key
:
n
,
attrs
:{
label
:
t
.
_f
(
"filterGoods"
)(
e
),
value
:
e
.
id
}})}))],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"期数名称"
,
prop
:
"title"
}},[
o
(
"el-input"
,{
model
:{
value
:
t
.
form
.
title
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"title"
,
e
)},
expression
:
"form.title"
}})],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"开始主题"
,
prop
:
"start_num"
}},[
o
(
"el-select"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form
.
start_num
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"start_num"
,
e
)},
expression
:
"form.start_num"
}},
t
.
_l
(
t
.
itemOptions
,
function
(
t
){
return
o
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
t
.
name
,
value
:
t
.
id
}})}))],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"开始上课时间"
,
prop
:
"start_at"
}},[
o
(
"el-date-picker"
,{
attrs
:{
format
:
"yyyy-MM-dd"
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"date"
,
"picker-options"
:
t
.
pickerOptions1
,
placeholder
:
"选择日期"
},
model
:{
value
:
t
.
form
.
start_at
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"start_at"
,
e
)},
expression
:
"form.start_at"
}})],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"相关老师"
}},[
o
(
"el-select"
,{
attrs
:{
multiple
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
teacherList
,
callback
:
function
(
e
){
t
.
teacherList
=
e
},
expression
:
"teacherList"
}},
t
.
_l
(
t
.
teacherOptions
,
function
(
t
){
return
o
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
t
.
name
,
value
:
t
.
id
}})}))],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"周几不上课"
}},[
o
(
"el-select"
,{
attrs
:{
multiple
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form
.
rest_week_day
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"rest_week_day"
,
e
)},
expression
:
"form.rest_week_day"
}},
t
.
_l
(
t
.
options
,
function
(
t
){
return
o
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
value
}})}))],
1
)],
1
),
t
.
_v
(
" "
),
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
dialogObj
.
show
=!
1
}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
sub
}},[
t
.
_v
(
"确 定"
)])],
1
)],
1
)])],
1
)},
staticRenderFns
:[]};
var
d
=
{
name
:
"index"
,
data
:
function
(){
return
{
nowPage
:
1
,
total
:
0
,
title
:
""
,
goodsId
:
null
,
lessonId
:
null
,
periodList
:[],
newDialog
:{
form
:{
id
:
0
,
title
:
""
,
start_num
:
0
,
start_at
:
""
,
rest_week_day
:[],
goods_id
:
""
},
show
:
!
1
,
title
:
""
},
goodList
:[],
lessonList
:[]}},
filters
:{
dayFilter
:
function
(
t
){
var
e
=
t
?
t
.
split
(
","
):[];
return
(
e
=
e
.
map
(
function
(
t
){
return
a
.
j
[
t
]})).
join
(
","
)},
filterGoods
:
function
(
t
){
return
t
.
name
+
"["
+
t
.
current_price
/
100
+
"元]"
}},
components
:{
goodDialog
:
r
,
newDialog
:
o
(
"VU/8"
)(
c
,
u
,
!
1
,
function
(
t
){
o
(
"D6RX"
)},
"data-v-53ba0d01"
,
null
).
exports
,
page
:
l
.
a
},
methods
:{
onSearch
:
function
(){
var
t
=
this
,
e
=
{};
this
.
title
&&
(
e
.
title
=
this
.
title
),
this
.
goodsId
&&
(
e
.
goods_id
=
this
.
goodsId
),
this
.
lessonId
&&
(
e
.
course_id
=
this
.
lessonId
),
Object
(
n
.
_13
)(
e
).
then
(
function
(
e
){
t
.
periodList
=
e
.
list
,
t
.
total
=
e
.
total
})},
onAdd
:
function
(){
this
.
newDialog
.
form
.
id
=
""
,
this
.
newDialog
.
start_num
=
""
,
this
.
newDialog
.
form
.
goods_id
=
""
,
this
.
newDialog
.
form
.
course_id
=
""
,
this
.
newDialog
.
form
.
title
=
""
,
this
.
newDialog
.
form
.
start_at
=
""
,
this
.
newDialog
.
form
.
rest_week_day
=
[],
this
.
newDialog
.
form
.
teacher_ids
=
[],
this
.
newDialog
.
title
=
"添加期数"
,
this
.
newDialog
.
show
=!
0
},
onEdit
:
function
(
t
){
this
.
newDialog
.
form
.
id
=
t
.
id
,
this
.
newDialog
.
form
.
start_num
=
t
.
start_num
,
this
.
newDialog
.
form
.
start_at
=
t
.
start_at
,
this
.
newDialog
.
form
.
title
=
t
.
title
,
this
.
newDialog
.
form
.
goods_id
=
t
.
goods_id
,
this
.
newDialog
.
form
.
course_id
=
t
.
course_id
,
console
.
log
(
"row"
,
t
);
var
e
=
[];
t
.
rest_week_day
&&
t
.
rest_week_day
.
split
(
","
).
forEach
(
function
(
t
){
e
.
push
(
parseInt
(
t
))}),
this
.
newDialog
.
form
.
rest_week_day
=
e
;
var
o
=
[];
t
.
teacher_ids
&&
t
.
teacher_ids
.
split
(
","
).
forEach
(
function
(
t
){
o
.
push
(
parseInt
(
t
))}),
this
.
newDialog
.
form
.
teacher_ids
=
o
,
this
.
newDialog
.
title
=
"编辑期数"
,
this
.
newDialog
.
show
=!
0
},
onSave
:
function
(
t
){
this
.
newDialog
.
show
=!
1
,
this
.
onSearch
()},
del
:
function
(
t
){
var
e
=
this
;
this
.
$confirm
(
"此操作将删除该期数?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
n
.
w
)(
t
.
id
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
}),
e
.
onSearch
()})})},
getGoodsOption
:
function
(){
var
t
=
this
;
Object
(
n
.
_7
)({
page
:
1
,
limit
:
100
}).
then
(
function
(
e
){
t
.
goodList
=
e
.
list
})},
getLessonOption
:
function
(){
var
t
=
this
;
Object
(
n
.
_8
)({
page
:
1
,
limit
:
100
}).
then
(
function
(
e
){
t
.
lessonList
=
e
.
list
})}},
mounted
:
function
(){
this
.
onSearch
(),
this
.
getGoodsOption
(),
this
.
getLessonOption
()}},
f
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
o
=
t
.
_self
.
_c
||
e
;
return
o
(
"div"
,[
o
(
"div"
,{
staticClass
:
"form-block"
},[
o
(
"el-form"
,{
attrs
:{
"label-width"
:
"90px"
,
inline
:
""
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"期数标题"
}},[
o
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入内容"
,
clearable
:
""
},
model
:{
value
:
t
.
title
,
callback
:
function
(
e
){
t
.
title
=
e
},
expression
:
"title"
}})],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品名称"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
clearable
:
""
},
model
:{
value
:
t
.
goodsId
,
callback
:
function
(
e
){
t
.
goodsId
=
e
},
expression
:
"goodsId"
}},
t
.
_l
(
t
.
goodList
,
function
(
e
,
n
){
return
o
(
"el-option"
,{
key
:
n
,
attrs
:{
label
:
t
.
_f
(
"filterGoods"
)(
e
),
value
:
e
.
id
}})}))],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程名称"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
clearable
:
""
},
model
:{
value
:
t
.
lessonId
,
callback
:
function
(
e
){
t
.
lessonId
=
e
},
expression
:
"lessonId"
}},
t
.
_l
(
t
.
lessonList
,
function
(
t
,
e
){
return
o
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
t
.
title
,
value
:
t
.
id
}})}))],
1
),
t
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onSearch
}},[
t
.
_v
(
"查询"
)]),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
staticStyle
:{
float
:
"right"
}},[
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onAdd
}},[
t
.
_v
(
"添加期数"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
o
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
periodList
}},[
o
(
"el-table-column"
,{
attrs
:{
prop
:
"id"
,
label
:
"期数ID"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"title"
,
label
:
"期数标题"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"goods_name"
,
label
:
"商品名称"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品价格"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
e
.
row
.
goods_price
/
100
)
+
"元
\n
"
)]}}])}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"course_title"
,
label
:
"课程名称"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"start_name"
,
label
:
"开始主题/歌"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"current_category_name"
,
label
:
"当前歌曲"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"watch_num"
,
label
:
"可看课包数"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"duration_num"
,
label
:
"续看课包数"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"has_watch_num"
,
label
:
"已看课包数"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"has_duration_num"
,
label
:
"已续看课包数"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"周几不上课"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"dayFilter"
)(
e
.
row
.
rest_week_day
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"start_at"
,
label
:
"期数开始时间"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"148"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
t
.
onEdit
(
e
.
row
)}}},[
t
.
_v
(
"
\n
编辑
\n
"
)]),
t
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"danger"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
t
.
del
(
e
.
row
)}}},[
t
.
_v
(
"
\n
删除
\n
"
)])]}}])})],
1
),
t
.
_v
(
" "
),
o
(
"page"
,{
attrs
:{
nowPage
:
t
.
nowPage
,
total
:
t
.
total
}}),
t
.
_v
(
" "
),
t
.
newDialog
.
show
?
o
(
"new-dialog"
,{
attrs
:{
dialogObj
:
t
.
newDialog
},
on
:{
reflash
:
t
.
onSave
}}):
t
.
_e
()],
1
)},
staticRenderFns
:[]};
var
_
=
o
(
"VU/8"
)(
d
,
f
,
!
1
,
function
(
t
){
o
(
"HY5N"
)},
"data-v-4f875663"
,
null
);
e
.
default
=
_
.
exports
},
wA2S
:
function
(
t
,
e
){}});
\ No newline at end of file
dist/static/js/7.755ba70f5ed3ca8b7804.js
deleted
100644 → 0
View file @
8451fa92
webpackJsonp
([
7
],{
"1Ff9"
:
function
(
t
,
e
){},
ayGs
:
function
(
t
,
e
,
o
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
l
=
o
(
"CCn6"
),
a
=
o
(
"+TkF"
),
n
=
o
(
"kmJW"
),
i
=
{
props
:[
"dialogObj"
],
data
:
function
(){
return
{
nowPage
:
1
,
total
:
0
,
goodList
:[],
currentRow
:
null
}},
components
:{
page
:
n
.
a
},
filters
:{
isOrNot
:
function
(
t
){
return
a
.
f
[
t
]},
goodsType
:
function
(
t
){
return
a
.
d
[
t
]},
lessonType
:
function
(
t
){
return
a
.
g
[
t
]},
goodsStatus
:
function
(
t
){
return
a
.
c
[
t
]}},
methods
:{
initPage
:
function
(){
var
t
=
this
;
Object
(
l
.
_7
)().
then
(
function
(
e
){
t
.
goodList
=
e
.
list
,
t
.
total
=
e
.
total
})},
handleCurrentChange
:
function
(
t
){
this
.
currentRow
=
t
},
onConfirm
:
function
(){
this
.
$emit
(
"reflash"
,
this
.
currentRow
)}},
mounted
:
function
(){
this
.
initPage
()}},
s
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
o
=
t
.
_self
.
_c
||
e
;
return
o
(
"div"
,[
o
(
"el-dialog"
,{
attrs
:{
title
:
t
.
dialogObj
.
title
,
visible
:
t
.
dialogObj
.
show
},
on
:{
"update:visible"
:
function
(
e
){
t
.
$set
(
t
.
dialogObj
,
"show"
,
e
)}}},[
o
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
goodList
,
"row-key"
:
"id"
,
"highlight-current-row"
:
""
},
on
:{
"current-change"
:
t
.
handleCurrentChange
}},[
o
(
"el-table-column"
,{
attrs
:{
prop
:
"id"
,
label
:
"商品ID"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品类型"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"goodsType"
)(
e
.
row
.
goods_type
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"现价"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
e
.
row
.
current_price
/
100
)
+
"元
\n
"
)]}}])}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"课程类别"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"lessonType"
)(
e
.
row
.
course_type
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"是否有实物"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"isOrNot"
)(
e
.
row
.
is_real
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"状态"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"goodsStatus"
)(
e
.
row
.
status
))
+
"
\n
"
)]}}])})],
1
),
t
.
_v
(
" "
),
o
(
"page"
,{
attrs
:{
nowPage
:
t
.
nowPage
,
total
:
t
.
total
}}),
t
.
_v
(
" "
),
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
dialogObj
.
show
=!
1
}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onConfirm
}},[
t
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
r
=
o
(
"VU/8"
)(
i
,
s
,
!
1
,
function
(
t
){
o
(
"wA2S"
)},
"data-v-aa878a4a"
,
null
).
exports
,
c
=
{
props
:[
"dialogObj"
],
data
:
function
(){
return
{
loading
:
!
1
,
form
:{},
teacherList
:[],
pickerOptions1
:{
disabledDate
:
function
(
t
){
return
!
(
t
.
getTime
()
>
Date
.
now
())}},
options
:[{
value
:
0
,
label
:
"周日"
},{
value
:
1
,
label
:
"周一"
},{
value
:
2
,
label
:
"周二"
},{
value
:
3
,
label
:
"周三"
},{
value
:
4
,
label
:
"周四"
},{
value
:
5
,
label
:
"周五"
},{
value
:
6
,
label
:
"周六"
}],
teacherOptions
:[],
goodList
:[],
itemOptions
:[],
rules
:{
title
:[{
required
:
!
0
,
message
:
"请输入名称"
,
trigger
:
"change"
}],
start_num
:[{
required
:
!
0
,
message
:
"请输入开始主题"
,
trigger
:
"change"
}],
start_at
:[{
required
:
!
0
,
message
:
"请选择开始上课时间"
,
trigger
:
"change"
}],
rest_week_day
:[{
required
:
!
0
,
message
:
"请选择周几不上课"
,
trigger
:
"change"
}],
teacher_ids
:[{
required
:
!
0
,
message
:
"请选择老师ID"
,
trigger
:
"change"
}],
goods_id
:[{
required
:
!
0
,
message
:
"商品ID不能为空"
,
trigger
:
"change"
}]}}},
components
:{
goodDialog
:
r
},
filters
:{
isOrNot
:
function
(
t
){
return
a
.
f
[
t
]},
goodsType
:
function
(
t
){
return
a
.
d
[
t
]},
lessonType
:
function
(
t
){
return
a
.
g
[
t
]},
goodsStatus
:
function
(
t
){
return
a
.
c
[
t
]},
filterGoods
:
function
(
t
){
return
t
.
name
+
"["
+
t
.
current_price
/
100
+
"元]"
}},
methods
:{
sub
:
function
(){
var
t
=
this
;
this
.
teacherList
?
this
.
$refs
.
form
.
validate
(
function
(
e
){
if
(
e
){
var
o
=
t
.
form
.
goods_id
,
a
=
{
title
:
t
.
form
.
title
,
start_num
:
t
.
form
.
start_num
,
start_at
:
t
.
form
.
start_at
,
rest_week_day
:
t
.
form
.
rest_week_day
?
t
.
form
.
rest_week_day
.
join
(
","
):
""
,
teacher_ids
:
t
.
teacherList
.
join
(
","
)};
t
.
form
.
id
?
Object
(
l
.
_4
)(
t
.
form
.
id
,
a
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
t
.
$emit
(
"reflash"
)}):
Object
(
l
.
Q
)(
o
,
a
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
t
.
$emit
(
"reflash"
)})}}):
this
.
$message
.
error
(
"请选择老师ID"
)},
getTeachers
:
function
(){
var
t
=
this
;
Object
(
l
.
_22
)().
then
(
function
(
e
){
t
.
teacherOptions
=
e
.
list
})},
getLessonDetail
:
function
(
t
){
var
e
=
this
;
console
.
log
(
"getLessonDetail"
,
t
),
this
.
form
.
start_num
=
""
,
Object
(
l
.
_9
)(
t
,{}).
then
(
function
(
t
){
e
.
itemOptions
=
t
.
detail
[
t
.
type
]})},
getGoodsOption
:
function
(){
var
t
=
this
;
Object
(
l
.
_7
)({
page
:
1
,
limit
:
100
}).
then
(
function
(
e
){
t
.
goodList
=
e
.
list
})}},
mounted
:
function
(){
this
.
getTeachers
(),
this
.
getGoodsOption
(),
this
.
dialogObj
.
form
.
goods_id
&&
this
.
getLessonDetail
(
this
.
dialogObj
.
form
.
goods_id
),
this
.
form
=
this
.
dialogObj
.
form
,
this
.
teacherList
=
this
.
dialogObj
.
form
.
teacher_ids
}},
u
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
o
=
t
.
_self
.
_c
||
e
;
return
o
(
"div"
,[
o
(
"el-dialog"
,{
attrs
:{
title
:
t
.
dialogObj
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
t
.
dialogObj
.
show
,
width
:
"800px"
},
on
:{
"update:visible"
:
function
(
e
){
t
.
$set
(
t
.
dialogObj
,
"show"
,
e
)}}},[
o
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
loading
,
expression
:
"loading"
}]},[
o
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
t
.
form
,
"label-width"
:
"120px"
,
rules
:
t
.
rules
}},[
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
span
:
10
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品名称"
,
prop
:
"goods_id"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
clearable
:
""
},
on
:{
change
:
t
.
getLessonDetail
},
model
:{
value
:
t
.
form
.
goods_id
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"goods_id"
,
e
)},
expression
:
"form.goods_id"
}},
t
.
_l
(
t
.
goodList
,
function
(
e
,
l
){
return
o
(
"el-option"
,{
key
:
l
,
attrs
:{
label
:
t
.
_f
(
"filterGoods"
)(
e
),
value
:
e
.
id
}})}))],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"期数名称"
,
prop
:
"title"
}},[
o
(
"el-input"
,{
model
:{
value
:
t
.
form
.
title
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"title"
,
e
)},
expression
:
"form.title"
}})],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"开始主题"
,
prop
:
"start_num"
}},[
o
(
"el-select"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form
.
start_num
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"start_num"
,
e
)},
expression
:
"form.start_num"
}},
t
.
_l
(
t
.
itemOptions
,
function
(
t
){
return
o
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
t
.
name
,
value
:
t
.
id
}})}))],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"开始上课时间"
,
prop
:
"start_at"
}},[
o
(
"el-date-picker"
,{
attrs
:{
format
:
"yyyy-MM-dd"
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"date"
,
"picker-options"
:
t
.
pickerOptions1
,
placeholder
:
"选择日期"
},
model
:{
value
:
t
.
form
.
start_at
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"start_at"
,
e
)},
expression
:
"form.start_at"
}})],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"相关老师"
}},[
o
(
"el-select"
,{
attrs
:{
multiple
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
teacherList
,
callback
:
function
(
e
){
t
.
teacherList
=
e
},
expression
:
"teacherList"
}},
t
.
_l
(
t
.
teacherOptions
,
function
(
t
){
return
o
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
t
.
name
,
value
:
t
.
id
}})}))],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"周几不上课"
}},[
o
(
"el-select"
,{
attrs
:{
multiple
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form
.
rest_week_day
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"rest_week_day"
,
e
)},
expression
:
"form.rest_week_day"
}},
t
.
_l
(
t
.
options
,
function
(
t
){
return
o
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
value
}})}))],
1
)],
1
),
t
.
_v
(
" "
),
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
dialogObj
.
show
=!
1
}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
sub
}},[
t
.
_v
(
"确 定"
)])],
1
)],
1
)])],
1
)},
staticRenderFns
:[]};
var
d
=
{
name
:
"index"
,
data
:
function
(){
return
{
nowPage
:
1
,
total
:
0
,
title
:
""
,
goodsId
:
null
,
lessonId
:
null
,
periodList
:[],
newDialog
:{
form
:{
id
:
0
,
title
:
""
,
start_num
:
0
,
start_at
:
""
,
rest_week_day
:[],
goods_id
:
""
},
show
:
!
1
,
title
:
""
},
goodList
:[],
lessonList
:[]}},
filters
:{
dayFilter
:
function
(
t
){
var
e
=
t
?
t
.
split
(
","
):[];
return
(
e
=
e
.
map
(
function
(
t
){
return
a
.
j
[
t
]})).
join
(
","
)},
filterGoods
:
function
(
t
){
return
t
.
name
+
"["
+
t
.
current_price
/
100
+
"元]"
}},
components
:{
goodDialog
:
r
,
newDialog
:
o
(
"VU/8"
)(
c
,
u
,
!
1
,
function
(
t
){
o
(
"dVxl"
)},
"data-v-beab71c6"
,
null
).
exports
,
page
:
n
.
a
},
methods
:{
onSearch
:
function
(){
var
t
=
this
,
e
=
{};
this
.
title
&&
(
e
.
title
=
this
.
title
),
this
.
goodsId
&&
(
e
.
goods_id
=
this
.
goodsId
),
this
.
lessonId
&&
(
e
.
course_id
=
this
.
lessonId
),
Object
(
l
.
_13
)(
e
).
then
(
function
(
e
){
t
.
periodList
=
e
.
list
,
t
.
total
=
e
.
total
})},
onAdd
:
function
(){
this
.
newDialog
.
form
.
id
=
""
,
this
.
newDialog
.
start_num
=
""
,
this
.
newDialog
.
form
.
goods_id
=
""
,
this
.
newDialog
.
form
.
title
=
""
,
this
.
newDialog
.
form
.
start_at
=
""
,
this
.
newDialog
.
form
.
rest_week_day
=
[],
this
.
newDialog
.
form
.
teacher_ids
=
[],
this
.
newDialog
.
title
=
"添加期数"
,
this
.
newDialog
.
show
=!
0
},
onEdit
:
function
(
t
){
this
.
newDialog
.
form
.
id
=
t
.
id
,
this
.
newDialog
.
form
.
start_num
=
t
.
start_num
,
this
.
newDialog
.
form
.
start_at
=
t
.
start_at
,
this
.
newDialog
.
form
.
title
=
t
.
title
,
this
.
newDialog
.
form
.
goods_id
=
t
.
goods_id
,
console
.
log
(
"row"
,
t
);
var
e
=
[];
t
.
rest_week_day
&&
t
.
rest_week_day
.
split
(
","
).
forEach
(
function
(
t
){
e
.
push
(
parseInt
(
t
))}),
this
.
newDialog
.
form
.
rest_week_day
=
e
;
var
o
=
[];
t
.
teacher_ids
&&
t
.
teacher_ids
.
split
(
","
).
forEach
(
function
(
t
){
o
.
push
(
parseInt
(
t
))}),
this
.
newDialog
.
form
.
teacher_ids
=
o
,
this
.
newDialog
.
title
=
"编辑期数"
,
this
.
newDialog
.
show
=!
0
},
onSave
:
function
(
t
){
this
.
newDialog
.
show
=!
1
,
this
.
onSearch
()},
del
:
function
(
t
){
var
e
=
this
;
this
.
$confirm
(
"此操作将删除该期数?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
l
.
w
)(
t
.
id
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
}),
e
.
onSearch
()})})},
getGoodsOption
:
function
(){
var
t
=
this
;
Object
(
l
.
_7
)({
page
:
1
,
limit
:
100
}).
then
(
function
(
e
){
t
.
goodList
=
e
.
list
})},
getLessonOption
:
function
(){
var
t
=
this
;
Object
(
l
.
_8
)({
page
:
1
,
limit
:
100
}).
then
(
function
(
e
){
t
.
lessonList
=
e
.
list
})}},
mounted
:
function
(){
this
.
onSearch
(),
this
.
getGoodsOption
(),
this
.
getLessonOption
()}},
f
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
o
=
t
.
_self
.
_c
||
e
;
return
o
(
"div"
,[
o
(
"div"
,{
staticClass
:
"form-block"
},[
o
(
"el-form"
,{
attrs
:{
"label-width"
:
"90px"
,
inline
:
""
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"期数标题"
}},[
o
(
"el-input"
,{
attrs
:{
placeholder
:
"请输入内容"
,
clearable
:
""
},
model
:{
value
:
t
.
title
,
callback
:
function
(
e
){
t
.
title
=
e
},
expression
:
"title"
}})],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"商品名称"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
clearable
:
""
},
model
:{
value
:
t
.
goodsId
,
callback
:
function
(
e
){
t
.
goodsId
=
e
},
expression
:
"goodsId"
}},
t
.
_l
(
t
.
goodList
,
function
(
e
,
l
){
return
o
(
"el-option"
,{
key
:
l
,
attrs
:{
label
:
t
.
_f
(
"filterGoods"
)(
e
),
value
:
e
.
id
}})}))],
1
),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"课程名称"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
clearable
:
""
},
model
:{
value
:
t
.
lessonId
,
callback
:
function
(
e
){
t
.
lessonId
=
e
},
expression
:
"lessonId"
}},
t
.
_l
(
t
.
lessonList
,
function
(
t
,
e
){
return
o
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
t
.
title
,
value
:
t
.
id
}})}))],
1
),
t
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onSearch
}},[
t
.
_v
(
"查询"
)]),
t
.
_v
(
" "
),
o
(
"el-form-item"
,{
staticStyle
:{
float
:
"left"
,
"margin-left"
:
"20px"
}},[
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onAdd
}},[
t
.
_v
(
"添加期数"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
o
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
periodList
}},[
o
(
"el-table-column"
,{
attrs
:{
prop
:
"id"
,
label
:
"期数ID"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"title"
,
label
:
"期数标题"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"goods_name"
,
label
:
"商品名称"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"商品价格"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
e
.
row
.
goods_price
/
100
)
+
"元
\n
"
)]}}])}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"course_title"
,
label
:
"课程名称"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"start_name"
,
label
:
"开始主题/歌"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"current_category_name"
,
label
:
"当前歌曲"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"watch_num"
,
label
:
"可看课包数"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"duration_num"
,
label
:
"续看课包数"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"has_watch_num"
,
label
:
"已看课包数"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"has_duration_num"
,
label
:
"已续看课包数"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"周几不上课"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"dayFilter"
)(
e
.
row
.
rest_week_day
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"start_at"
,
label
:
"期数开始时间"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"148"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
t
.
onEdit
(
e
.
row
)}}},[
t
.
_v
(
"
\n
编辑
\n
"
)]),
t
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"danger"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
t
.
del
(
e
.
row
)}}},[
t
.
_v
(
"
\n
删除
\n
"
)])]}}])})],
1
),
t
.
_v
(
" "
),
o
(
"page"
,{
attrs
:{
nowPage
:
t
.
nowPage
,
total
:
t
.
total
}}),
t
.
_v
(
" "
),
t
.
newDialog
.
show
?
o
(
"new-dialog"
,{
attrs
:{
dialogObj
:
t
.
newDialog
},
on
:{
reflash
:
t
.
onSave
}}):
t
.
_e
()],
1
)},
staticRenderFns
:[]};
var
_
=
o
(
"VU/8"
)(
d
,
f
,
!
1
,
function
(
t
){
o
(
"1Ff9"
)},
"data-v-5e99cdd0"
,
null
);
e
.
default
=
_
.
exports
},
dVxl
:
function
(
t
,
e
){},
wA2S
:
function
(
t
,
e
){}});
\ No newline at end of file
dist/static/js/manifest.
684189c8c7c193fa55cf
.js
→
dist/static/js/manifest.
4bc6a4ebabe097d932db
.js
View file @
441d2224
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
t
,
f
){
for
(
var
o
,
d
,
b
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
d
=
c
[
i
],
n
[
d
]
&&
u
.
push
(
n
[
d
][
0
]),
n
[
d
]
=
0
;
for
(
o
in
t
)
Object
.
prototype
.
hasOwnProperty
.
call
(
t
,
o
)
&&
(
e
[
o
]
=
t
[
o
]);
for
(
a
&&
a
(
c
,
t
,
f
);
u
.
length
;)
u
.
shift
()();
if
(
f
)
for
(
i
=
0
;
i
<
f
.
length
;
i
++
)
b
=
r
(
r
.
s
=
f
[
i
]);
return
b
};
var
c
=
{},
n
=
{
32
:
0
};
function
r
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
n
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
n
.
exports
,
n
,
n
.
exports
,
r
),
n
.
l
=!
0
,
n
.
exports
}
r
.
e
=
function
(
e
){
var
a
=
n
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
r
){
a
=
n
[
e
]
=
[
c
,
r
]});
a
[
2
]
=
c
;
var
t
=
document
.
getElementsByTagName
(
"head"
)[
0
],
f
=
document
.
createElement
(
"script"
);
f
.
type
=
"text/javascript"
,
f
.
charset
=
"utf-8"
,
f
.
async
=!
0
,
f
.
timeout
=
12
e4
,
r
.
nc
&&
f
.
setAttribute
(
"nonce"
,
r
.
nc
),
f
.
src
=
r
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"a0cb175b4369580fe6d9"
,
1
:
"c0927229680fd987bfe7"
,
2
:
"ecf48e10d45f2bc29d43"
,
3
:
"d0a09be5802508c20889"
,
4
:
"b68fdaa3fb36c125fd0c"
,
5
:
"bdf48f4553239f0df5bb"
,
6
:
"57484f62673b2b73d56a"
,
7
:
"755ba70f5ed3ca8b7804"
,
8
:
"f67eaac71db3345a5b5e"
,
9
:
"c0941face12e9e508c12"
,
10
:
"6186374cb159b5c34094"
,
11
:
"764f30eda110f7d6dc44"
,
12
:
"4436a45597a8bce84dc8"
,
13
:
"6c7187a7f1a3a08227c3"
,
14
:
"edf1d48dcea7e41a58b8"
,
15
:
"bd87a7d96c90ad105f9c"
,
16
:
"110c0eb5396f5726b15a"
,
17
:
"1ab66d364dd18e9aee3f"
,
18
:
"a42722a887716b917941"
,
19
:
"093685fab41a1832ef3a"
,
20
:
"63196b0f61c8940df744"
,
21
:
"baf6671ac90a7fa1e351"
,
22
:
"6fecb4623fd7e822ca84"
,
23
:
"15081e48ea873dad9fc1"
,
24
:
"f8f9819a6023d975129a"
,
25
:
"9e84cc6619173c9882b9"
,
26
:
"13ce6dd1ba9c09f98fcf"
,
27
:
"15017d15321256dd421b"
,
28
:
"29e177b13098e72e13d3"
,
29
:
"467369eed262ffbae7dd"
}[
e
]
+
".js"
;
var
o
=
setTimeout
(
d
,
12
e4
);
function
d
(){
f
.
onerror
=
f
.
onload
=
null
,
clearTimeout
(
o
);
var
a
=
n
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
n
[
e
]
=
void
0
)}
return
f
.
onerror
=
f
.
onload
=
d
,
t
.
appendChild
(
f
),
c
},
r
.
m
=
e
,
r
.
c
=
c
,
r
.
d
=
function
(
e
,
a
,
c
){
r
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
r
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
r
.
d
(
a
,
"a"
,
a
),
a
},
r
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
r
.
p
=
"/"
,
r
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
t
,
f
){
for
(
var
o
,
d
,
b
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
d
=
c
[
i
],
n
[
d
]
&&
u
.
push
(
n
[
d
][
0
]),
n
[
d
]
=
0
;
for
(
o
in
t
)
Object
.
prototype
.
hasOwnProperty
.
call
(
t
,
o
)
&&
(
e
[
o
]
=
t
[
o
]);
for
(
a
&&
a
(
c
,
t
,
f
);
u
.
length
;)
u
.
shift
()();
if
(
f
)
for
(
i
=
0
;
i
<
f
.
length
;
i
++
)
b
=
r
(
r
.
s
=
f
[
i
]);
return
b
};
var
c
=
{},
n
=
{
32
:
0
};
function
r
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
n
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
n
.
exports
,
n
,
n
.
exports
,
r
),
n
.
l
=!
0
,
n
.
exports
}
r
.
e
=
function
(
e
){
var
a
=
n
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
r
){
a
=
n
[
e
]
=
[
c
,
r
]});
a
[
2
]
=
c
;
var
t
=
document
.
getElementsByTagName
(
"head"
)[
0
],
f
=
document
.
createElement
(
"script"
);
f
.
type
=
"text/javascript"
,
f
.
charset
=
"utf-8"
,
f
.
async
=!
0
,
f
.
timeout
=
12
e4
,
r
.
nc
&&
f
.
setAttribute
(
"nonce"
,
r
.
nc
),
f
.
src
=
r
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"a0cb175b4369580fe6d9"
,
1
:
"c0927229680fd987bfe7"
,
2
:
"ecf48e10d45f2bc29d43"
,
3
:
"d0a09be5802508c20889"
,
4
:
"b68fdaa3fb36c125fd0c"
,
5
:
"bdf48f4553239f0df5bb"
,
6
:
"57484f62673b2b73d56a"
,
7
:
"0c25f803cb7f87694d59"
,
8
:
"f67eaac71db3345a5b5e"
,
9
:
"c0941face12e9e508c12"
,
10
:
"6186374cb159b5c34094"
,
11
:
"764f30eda110f7d6dc44"
,
12
:
"4436a45597a8bce84dc8"
,
13
:
"6c7187a7f1a3a08227c3"
,
14
:
"edf1d48dcea7e41a58b8"
,
15
:
"bd87a7d96c90ad105f9c"
,
16
:
"110c0eb5396f5726b15a"
,
17
:
"1ab66d364dd18e9aee3f"
,
18
:
"a42722a887716b917941"
,
19
:
"093685fab41a1832ef3a"
,
20
:
"63196b0f61c8940df744"
,
21
:
"baf6671ac90a7fa1e351"
,
22
:
"6fecb4623fd7e822ca84"
,
23
:
"15081e48ea873dad9fc1"
,
24
:
"f8f9819a6023d975129a"
,
25
:
"9e84cc6619173c9882b9"
,
26
:
"13ce6dd1ba9c09f98fcf"
,
27
:
"15017d15321256dd421b"
,
28
:
"29e177b13098e72e13d3"
,
29
:
"467369eed262ffbae7dd"
}[
e
]
+
".js"
;
var
o
=
setTimeout
(
d
,
12
e4
);
function
d
(){
f
.
onerror
=
f
.
onload
=
null
,
clearTimeout
(
o
);
var
a
=
n
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
n
[
e
]
=
void
0
)}
return
f
.
onerror
=
f
.
onload
=
d
,
t
.
appendChild
(
f
),
c
},
r
.
m
=
e
,
r
.
c
=
c
,
r
.
d
=
function
(
e
,
a
,
c
){
r
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
r
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
r
.
d
(
a
,
"a"
,
a
),
a
},
r
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
r
.
p
=
"/"
,
r
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
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