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
b64994b3
Commit
b64994b3
authored
Sep 20, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build
parent
12835f40
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7 additions
and
7 deletions
+7
-7
index.html
dist/index.html
+1
-1
app.a972fb41eca698dc4bbf705392bbfaec.css
dist/static/css/app.a972fb41eca698dc4bbf705392bbfaec.css
+1
-1
10.bf5301c5878f0a943dd8.js
dist/static/js/10.bf5301c5878f0a943dd8.js
+0
-1
10.dc560be19d1df2e9dca8.js
dist/static/js/10.dc560be19d1df2e9dca8.js
+1
-0
13.01ab4bcf32655e93d186.js
dist/static/js/13.01ab4bcf32655e93d186.js
+1
-1
13.44bb04141d0b07cee440.js
dist/static/js/13.44bb04141d0b07cee440.js
+0
-1
14.bed9371e7a04b87f98c8.js
dist/static/js/14.bed9371e7a04b87f98c8.js
+1
-0
app.75c962a190368bd930d8.js
dist/static/js/app.75c962a190368bd930d8.js
+1
-1
manifest.3f14d1f0b56608de5961.js
dist/static/js/manifest.3f14d1f0b56608de5961.js
+1
-1
No files found.
dist/index.html
View file @
b64994b3
<!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.34ddabd7d5b43755680c989577a25c44.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.e689ed331985778d6947.js
></script><script
type=
text/javascript
src=
/static/js/vendor.0b35d0c5581d0a6334a7.js
></script><script
type=
text/javascript
src=
/static/js/app.5ce842e920319a3aea9e.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.a972fb41eca698dc4bbf705392bbfaec.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.3f14d1f0b56608de5961.js
></script><script
type=
text/javascript
src=
/static/js/vendor.0b35d0c5581d0a6334a7.js
></script><script
type=
text/javascript
src=
/static/js/app.75c962a190368bd930d8.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
34ddabd7d5b43755680c989577a25c44
.css
→
dist/static/css/app.
a972fb41eca698dc4bbf705392bbfaec
.css
View file @
b64994b3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/10.bf5301c5878f0a943dd8.js
deleted
100644 → 0
View file @
12835f40
webpackJsonp
([
10
],{
"5tGO"
:
function
(
e
,
t
){},
AbSL
:
function
(
e
,
t
,
s
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
s
(
"CCn6"
),
o
=
s
(
"kmJW"
),
n
=
{
name
:
"dialogObj"
,
props
:[
"dialogObj"
],
data
:
function
(){
return
{
selectedLesson
:[],
selectedLessonList
:[],
lessonList
:[],
showLessonList
:[],
selectedBox
:[],
selectedBoxList
:[],
boxList
:[],
showBoxList
:[],
imageList
:[],
loading
:
!
1
,
uploadShow
:
!
0
,
form
:{
title
:
""
,
type
:
0
,
text_category_ids
:[],
item_category_ids
:[],
cover
:
0
},
rules
:{
title
:[{
required
:
!
0
,
message
:
"请输入课程标题"
,
trigger
:
"change"
}]}}},
methods
:{
handleItemChange
:
function
(
e
){},
changLessonItem
:
function
(){
0
===
this
.
form
.
type
?
this
.
showLessonList
.
forEach
(
function
(
e
){
e
.
children
=
e
.
children
||
[],
e
.
children
.
forEach
(
function
(
e
){
e
.
children
&&
delete
e
.
children
})}):
this
.
showLessonList
=
this
.
lessonList
},
delLesson
:
function
(
e
){
this
.
selectedLessonList
=
this
.
selectedLessonList
.
filter
(
function
(
t
){
return
t
.
id
!==
e
.
id
})},
delBox
:
function
(
e
){
this
.
selectedBoxList
=
this
.
selectedBoxList
.
filter
(
function
(
t
){
return
t
.
id
!==
e
.
id
})},
selectLesson
:
function
(
e
){
var
t
=
this
.
showLessonList
.
find
(
function
(
t
){
return
t
.
id
===
e
[
0
]});
t
.
children
&&
(
t
=
t
.
children
.
find
(
function
(
t
){
return
t
.
id
===
e
[
1
]}),
3
===
e
.
length
&&
(
t
=
t
.
children
.
find
(
function
(
t
){
return
t
.
id
===
e
[
2
]})),
-
1
===
this
.
selectedLessonList
.
findIndex
(
function
(
e
){
return
e
===
t
})?
this
.
selectedLessonList
.
push
(
t
):
this
.
$message
({
type
:
"info"
,
message
:
"不能重复添加!"
}))},
selectBox
:
function
(
e
){
var
t
=
this
.
showBoxList
.
find
(
function
(
t
){
return
t
.
id
===
e
[
0
]});
-
1
===
this
.
selectedBoxList
.
findIndex
(
function
(
e
){
return
e
===
t
})?
this
.
selectedBoxList
.
push
(
t
):
this
.
$message
({
type
:
"info"
,
message
:
"不能重复添加!"
})},
sub
:
function
(){
var
e
=
this
;
this
.
$refs
.
form
.
validate
(
function
(
t
){
var
s
=
[],
o
=
[];
e
.
selectedBoxList
.
forEach
(
function
(
e
){
s
.
push
(
e
.
id
)}),
e
.
selectedLessonList
.
forEach
(
function
(
e
){
o
.
push
(
e
.
id
)}),
e
.
imageList
[
0
]
&&
(
e
.
form
.
cover
=
e
.
imageList
[
0
].
name
);
var
n
=
e
.
form
;
if
(
n
.
item_category_ids
=
s
.
toString
(),
n
.
text_category_ids
=
o
.
toString
(),
t
){
if
(
!
e
.
form
.
cover
)
return
void
e
.
$message
({
type
:
"error"
,
message
:
"请上传封面!"
});
if
(
!
n
.
text_category_ids
)
return
void
e
.
$message
({
type
:
"error"
,
message
:
"请选择课程!"
});
switch
(
e
.
dialogObj
.
type
){
case
1
:
Object
(
i
.
O
)(
e
.
dialogObj
.
id
,
n
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
dialogObj
.
show
=!
1
});
break
;
case
0
:
console
.
log
(
e
.
form
),
Object
(
i
.
j
)(
n
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"新增成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
dialogObj
.
show
=!
1
})}}})},
initDialog
:
function
(){
var
e
=
this
;
Object
(
i
.
_0
)().
then
(
function
(
t
){
t
&&
(
e
.
boxList
=
t
,
e
.
showBoxList
=
JSON
.
parse
(
JSON
.
stringify
(
t
)))}),
Object
(
i
.
_2
)().
then
(
function
(
t
){
switch
(
e
.
lessonList
=
t
,
e
.
showLessonList
=
JSON
.
parse
(
JSON
.
stringify
(
t
)),
e
.
dialogObj
.
type
){
case
0
:
e
.
form
=
{
title
:
""
,
type
:
0
,
text_category_ids
:[],
item_category_ids
:[],
cover
:
0
},
e
.
uploadShow
=!
0
,
e
.
imageList
=
[],
e
.
selectedLessonList
=
[],
e
.
selectedBoxList
=
[];
break
;
case
1
:
Object
(
i
.
_13
)(
e
.
dialogObj
.
id
).
then
(
function
(
t
){
e
.
form
=
{
title
:
t
.
title
,
type
:
t
.
type
,
text_category_ids
:[],
item_category_ids
:[],
cover
:
""
},
e
.
imageList
=
[{
name
:
t
.
cover
,
url
:
"http://cdn.singsingenglish.com/"
+
t
.
cover
}],
e
.
uploadShow
=!
1
,
e
.
selectedLessonList
=
[],
e
.
selectedBoxList
=
[],
0
===
t
.
type
?
t
.
detail
[
0
].
forEach
(
function
(
t
){
e
.
selectLesson
([
t
.
pid
,
t
.
id
])}):
1
===
t
.
type
&&
t
.
detail
[
1
].
forEach
(
function
(
t
){
var
s
=
e
.
showLessonList
.
find
(
function
(
e
){
return
e
.
children
.
find
(
function
(
e
){
return
e
.
id
===
t
.
pid
})});
e
.
selectLesson
([
s
.
id
,
t
.
pid
,
t
.
id
])}),
t
.
detail
[
2
]
&&
t
.
detail
[
2
].
forEach
(
function
(
t
){
e
.
selectBox
([
t
.
id
])})});
break
;
case
2
:
e
.
title
=
"编辑"
,
e
.
show
=
e
.
dialogObj
.
show
,
e
.
id
=
e
.
dialogObj
.
id
,
e
.
type
=
2
}})},
beforeAvatarUpload
:
function
(){
this
.
uploadShow
=!
1
},
handleRemove
:
function
(){
this
.
uploadShow
=!
0
},
handleAvatarSuccess
:
function
(
e
){
this
.
imageList
=
[{
name
:
e
.
data
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
data
.
url
}]},
uploadFileMain
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
i
.
_43
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
form
.
cover
=
"http://cdn.singsingenglish.com/"
+
e
.
url
,
t
.
imageList
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}})},
moveBox
:
function
(
e
,
t
){
var
s
=
this
.
selectedBoxList
,
i
=
s
[
e
],
o
=
s
[
t
];
this
.
selectedBoxList
.
splice
(
e
,
1
,
o
),
this
.
selectedBoxList
.
splice
(
t
,
1
,
i
)},
moveItem
:
function
(
e
,
t
){
console
.
log
(
"moveItem"
,
e
,
t
);
var
s
=
this
.
selectedLessonList
,
i
=
s
[
e
],
o
=
s
[
t
];
this
.
selectedLessonList
.
splice
(
e
,
1
,
o
),
this
.
selectedLessonList
.
splice
(
t
,
1
,
i
)}},
watch
:{},
mounted
:
function
(){
this
.
initDialog
()}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialogObj
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
e
.
dialogObj
.
show
,
width
:
"800px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
dialogObj
,
"show"
,
t
)}}},[
s
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}]},[
s
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
e
.
form
,
"label-width"
:
"120px"
,
rules
:
e
.
rules
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程标题"
,
prop
:
"title"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
form
.
title
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"title"
,
t
)},
expression
:
"form.title"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程封面(670*472)"
}},[
s
(
"el-upload"
,{
class
:{
disabled
:
!
e
.
uploadShow
},
attrs
:{
action
:
"/api/public/upload"
,
"http-request"
:
e
.
uploadFileMain
,
"before-upload"
:
e
.
beforeAvatarUpload
,
"list-type"
:
"picture-card"
,
"file-list"
:
e
.
imageList
,
"on-success"
:
e
.
handleAvatarSuccess
,
"on-remove"
:
e
.
handleRemove
}},[
s
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程类型"
}},[
s
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择课程类型"
},
on
:{
change
:
function
(
t
){
e
.
selectedLesson
=
[],
e
.
selectedLessonList
=
[]}},
model
:{
value
:
e
.
form
.
type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"type"
,
t
)},
expression
:
"form.type"
}},[
s
(
"el-option"
,{
attrs
:{
label
:
"月课"
,
value
:
0
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
label
:
"日课"
,
value
:
1
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
10
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"选择课程"
}},[
s
(
"el-cascader"
,{
attrs
:{
clearable
:
""
,
value
:
e
.
selectedLesson
,
options
:
e
.
showLessonList
,
"show-all-levels"
:
!
1
,
props
:{
label
:
"name"
,
value
:
"id"
,
children
:
"children"
}},
on
:{
"active-item-change"
:
e
.
changLessonItem
,
change
:
e
.
selectLesson
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"已选课程"
}},
e
.
_l
(
e
.
selectedLessonList
,
function
(
t
,
i
){
return
s
(
"div"
,{
key
:
i
,
staticClass
:
"selected-block"
},[
s
(
"el-card"
,{
attrs
:{
shadow
:
"always"
}},[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
name
)
+
"
\n
"
),
s
(
"el-button"
,{
staticStyle
:{
float
:
"right"
,
padding
:
"3px"
},
attrs
:{
type
:
"danger"
,
icon
:
"el-icon-close"
,
circle
:
""
,
size
:
"mini"
},
on
:{
click
:
function
(
s
){
e
.
delLesson
(
t
)}}}),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"move"
},[
0
!==
i
?
s
(
"el-button"
,{
staticClass
:
"button"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
moveItem
(
i
-
1
,
i
)}}},[
e
.
_v
(
"上移"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
i
!==
e
.
selectedLessonList
.
length
-
1
?
s
(
"el-button"
,{
staticClass
:
"button"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
moveItem
(
i
,
i
+
1
)}}},[
e
.
_v
(
"下移"
)]):
e
.
_e
()],
1
)],
1
)],
1
)}))],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
10
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"选择盒子"
}},[
s
(
"el-cascader"
,{
attrs
:{
clearable
:
""
,
value
:
e
.
selectedBox
,
options
:
e
.
showBoxList
,
"show-all-levels"
:
!
1
,
"expand-trigger"
:
"hover"
,
props
:{
label
:
"name"
,
value
:
"id"
,
children
:
"children"
}},
on
:{
change
:
e
.
selectBox
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"已选盒子"
}},
e
.
_l
(
e
.
selectedBoxList
,
function
(
t
,
i
){
return
s
(
"div"
,{
key
:
t
.
id
,
staticClass
:
"selected-block"
},[
s
(
"el-card"
,{
attrs
:{
shadow
:
"always"
}},[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
name
)
+
"
\n
"
),
s
(
"el-button"
,{
staticStyle
:{
float
:
"right"
,
padding
:
"3px"
},
attrs
:{
type
:
"danger"
,
icon
:
"el-icon-close"
,
circle
:
""
,
size
:
"mini"
},
on
:{
click
:
function
(
s
){
e
.
delBox
(
t
)}}}),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"move"
},[
0
!==
i
?
s
(
"el-button"
,{
staticClass
:
"button"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
moveBox
(
i
-
1
,
i
)}}},[
e
.
_v
(
"上移"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
i
!==
e
.
selectedBoxList
.
length
-
1
?
s
(
"el-button"
,{
staticClass
:
"button"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
moveBox
(
i
,
i
+
1
)}}},[
e
.
_v
(
"下移"
)]):
e
.
_e
()],
1
)],
1
)],
1
)}))],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
2
!==
e
.
dialogObj
.
type
?
s
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
s
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogObj
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
):
e
.
_e
()],
1
)])},
staticRenderFns
:[]};
var
a
=
s
(
"VU/8"
)(
n
,
l
,
!
1
,
function
(
e
){
s
(
"x1fF"
),
s
(
"GvLD"
)},
"data-v-7d0dce78"
,
null
).
exports
,
r
=
s
(
"+TkF"
),
c
=
{
name
:
"index"
,
data
:
function
(){
return
{
searchFrom
:{
title
:
""
,
type
:
""
},
userList
:[],
total
:
0
,
nowPage
:
1
,
limit
:
10
,
dialogObj
:{
type
:
0
,
show
:
!
1
,
id
:
""
}}},
components
:{
page
:
o
.
a
,
dialogCom
:
a
},
filters
:{
lessonType
:
function
(
e
){
return
r
.
i
[
e
]}},
mounted
:
function
(){
this
.
getUser
()},
methods
:{
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
getUser
()},
getUser
:
function
(){
var
e
=
this
;
this
.
searchFrom
.
page
=
this
.
nowPage
;
var
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
searchFrom
.
title
&&
(
t
.
title
=
this
.
searchFrom
.
title
),
this
.
searchFrom
.
type
&&
(
t
.
type
=
this
.
searchFrom
.
type
),
Object
(
i
.
_12
)(
t
).
then
(
function
(
t
){
e
.
userList
=
t
.
list
,
e
.
total
=
t
.
total
})},
edit
:
function
(
e
){
this
.
dialogObj
=
{
type
:
1
,
show
:
!
0
,
id
:
e
.
id
,
title
:
"编辑课程"
}},
add
:
function
(){
this
.
dialogObj
=
{
type
:
0
,
show
:
!
0
,
id
:
""
,
title
:
"新增课程"
}},
detail
:
function
(
e
){
this
.
dialogObj
.
id
=
e
.
id
,
this
.
dialogObj
.
type
=
1
,
this
.
dialogObj
.
show
=!
0
},
delTeacher
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该课程?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
i
.
F
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
}),
t
.
getUser
()})})},
changeShow
:
function
(
e
){
this
.
dialogObj
.
show
=
e
}}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"user"
},[
s
(
"el-form"
,{
ref
:
"searchFrom"
,
attrs
:{
model
:
e
.
searchFrom
,
"label-width"
:
"80px"
}},[
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
4
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程标题"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
searchFrom
.
title
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"title"
,
t
)},
expression
:
"searchFrom.title"
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
4
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程类型"
}},[
s
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
searchFrom
.
type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"type"
,
t
)},
expression
:
"searchFrom.type"
}},[
s
(
"el-option"
,{
attrs
:{
value
:
""
,
label
:
"请选择"
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
value
:
"0"
,
label
:
"月课"
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
value
:
"1"
,
label
:
"日课"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
4
}},[
s
(
"el-form-item"
,[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
e
.
getUser
}},[
e
.
_v
(
"搜索"
)])],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
4
,
offset
:
8
}},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
s
(
"el-button"
,{
staticStyle
:{
float
:
"right"
},
attrs
:{
type
:
"success"
,
plain
:
""
},
on
:{
click
:
e
.
add
}},[
e
.
_v
(
"新增课程"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
userList
}},[
s
(
"el-table-column"
,{
attrs
:{
prop
:
"title"
,
label
:
"课程名"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"课程类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"lessonType"
)(
t
.
row
.
type
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
prop
:
"theme_num"
,
label
:
"主题数"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
prop
:
"sing_num"
,
label
:
"歌曲数"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
prop
:
"item_num"
,
label
:
"实体包数量"
}}),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
s
(
"el-table-column"
,{
attrs
:{
width
:
"250"
,
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"warning"
},
on
:{
click
:
function
(
s
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"
\n
编辑
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
&&!
e
.
$store
.
state
.
readonly
?
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"danger"
},
on
:{
click
:
function
(
s
){
e
.
delTeacher
(
t
.
row
)}}},[
e
.
_v
(
"
\n
删除
\n
"
)]):
e
.
_e
()]}}])})],
1
),
e
.
_v
(
" "
),
s
(
"page"
,{
attrs
:{
total
:
e
.
total
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
}}),
e
.
_v
(
" "
),
e
.
dialogObj
.
show
?
s
(
"dialog-com"
,{
attrs
:{
dialogObj
:
e
.
dialogObj
},
on
:{
changeShow
:
e
.
changeShow
,
reflash
:
e
.
getUser
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
u
=
s
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
s
(
"5tGO"
)},
"data-v-f7b662be"
,
null
);
t
.
default
=
u
.
exports
},
GvLD
:
function
(
e
,
t
){},
x1fF
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/10.dc560be19d1df2e9dca8.js
0 → 100644
View file @
b64994b3
webpackJsonp
([
10
],{
"5tGO"
:
function
(
e
,
t
){},
AbSL
:
function
(
e
,
t
,
s
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
s
(
"CCn6"
),
o
=
s
(
"kmJW"
),
n
=
{
name
:
"dialogObj"
,
props
:[
"dialogObj"
],
data
:
function
(){
return
{
selectedLesson
:[],
selectedLessonList
:[],
lessonList
:[],
showLessonList
:[],
selectedBox
:[],
selectedBoxList
:[],
boxList
:[],
showBoxList
:[],
imageList
:[],
loading
:
!
1
,
uploadShow
:
!
0
,
form
:{
title
:
""
,
type
:
0
,
text_category_ids
:[],
item_category_ids
:[],
cover
:
0
},
rules
:{
title
:[{
required
:
!
0
,
message
:
"请输入课程标题"
,
trigger
:
"change"
}]}}},
methods
:{
handleItemChange
:
function
(
e
){},
changLessonItem
:
function
(){
0
===
this
.
form
.
type
?
this
.
showLessonList
.
forEach
(
function
(
e
){
e
.
children
=
e
.
children
||
[],
e
.
children
.
forEach
(
function
(
e
){
e
.
children
&&
delete
e
.
children
})}):
this
.
showLessonList
=
this
.
lessonList
},
delLesson
:
function
(
e
){
this
.
selectedLessonList
=
this
.
selectedLessonList
.
filter
(
function
(
t
){
return
t
.
id
!==
e
.
id
})},
delBox
:
function
(
e
){
this
.
selectedBoxList
=
this
.
selectedBoxList
.
filter
(
function
(
t
){
return
t
.
id
!==
e
.
id
})},
selectLesson
:
function
(
e
){
var
t
=
this
.
showLessonList
.
find
(
function
(
t
){
return
t
.
id
===
e
[
0
]});
t
.
children
&&
(
t
=
t
.
children
.
find
(
function
(
t
){
return
t
.
id
===
e
[
1
]}),
3
===
e
.
length
&&
(
t
=
t
.
children
.
find
(
function
(
t
){
return
t
.
id
===
e
[
2
]})),
-
1
===
this
.
selectedLessonList
.
findIndex
(
function
(
e
){
return
e
===
t
})?
this
.
selectedLessonList
.
push
(
t
):
this
.
$message
({
type
:
"info"
,
message
:
"不能重复添加!"
}))},
selectBox
:
function
(
e
){
var
t
=
this
.
showBoxList
.
find
(
function
(
t
){
return
t
.
id
===
e
[
0
]});
-
1
===
this
.
selectedBoxList
.
findIndex
(
function
(
e
){
return
e
===
t
})?
this
.
selectedBoxList
.
push
(
t
):
this
.
$message
({
type
:
"info"
,
message
:
"不能重复添加!"
})},
sub
:
function
(){
var
e
=
this
;
this
.
$refs
.
form
.
validate
(
function
(
t
){
var
s
=
[],
o
=
[];
e
.
selectedBoxList
.
forEach
(
function
(
e
){
s
.
push
(
e
.
id
)}),
e
.
selectedLessonList
.
forEach
(
function
(
e
){
o
.
push
(
e
.
id
)}),
e
.
imageList
[
0
]
&&
(
e
.
form
.
cover
=
e
.
imageList
[
0
].
name
);
var
n
=
e
.
form
;
if
(
n
.
item_category_ids
=
s
.
toString
(),
n
.
text_category_ids
=
o
.
toString
(),
t
){
if
(
!
e
.
form
.
cover
)
return
void
e
.
$message
({
type
:
"error"
,
message
:
"请上传封面!"
});
if
(
!
n
.
text_category_ids
)
return
void
e
.
$message
({
type
:
"error"
,
message
:
"请选择课程!"
});
switch
(
e
.
dialogObj
.
type
){
case
1
:
Object
(
i
.
O
)(
e
.
dialogObj
.
id
,
n
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
dialogObj
.
show
=!
1
});
break
;
case
0
:
Object
(
i
.
j
)(
n
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"新增成功!"
}),
e
.
$emit
(
"reflash"
),
e
.
dialogObj
.
show
=!
1
})}}})},
initDialog
:
function
(){
var
e
=
this
;
Object
(
i
.
_0
)().
then
(
function
(
t
){
t
&&
(
e
.
boxList
=
t
,
e
.
showBoxList
=
JSON
.
parse
(
JSON
.
stringify
(
t
)))}),
Object
(
i
.
_2
)().
then
(
function
(
t
){
switch
(
e
.
lessonList
=
t
,
e
.
showLessonList
=
JSON
.
parse
(
JSON
.
stringify
(
t
)),
e
.
dialogObj
.
type
){
case
0
:
e
.
form
=
{
title
:
""
,
type
:
0
,
text_category_ids
:[],
item_category_ids
:[],
cover
:
0
},
e
.
uploadShow
=!
0
,
e
.
imageList
=
[],
e
.
selectedLessonList
=
[],
e
.
selectedBoxList
=
[];
break
;
case
1
:
Object
(
i
.
_13
)(
e
.
dialogObj
.
id
).
then
(
function
(
t
){
e
.
form
=
{
title
:
t
.
title
,
type
:
t
.
type
,
text_category_ids
:[],
item_category_ids
:[],
cover
:
""
},
e
.
imageList
=
[{
name
:
t
.
cover
,
url
:
"http://cdn.singsingenglish.com/"
+
t
.
cover
}],
e
.
uploadShow
=!
1
,
e
.
selectedLessonList
=
[],
e
.
selectedBoxList
=
[],
0
===
t
.
type
?
t
.
detail
[
0
].
forEach
(
function
(
t
){
e
.
selectLesson
([
t
.
pid
,
t
.
id
])}):
1
===
t
.
type
&&
t
.
detail
[
1
].
forEach
(
function
(
t
){
var
s
=
e
.
showLessonList
.
find
(
function
(
e
){
return
e
.
children
=
e
.
children
||
[],
e
.
children
.
find
(
function
(
e
){
return
e
.
id
===
t
.
pid
})});
e
.
selectLesson
([
s
.
id
,
t
.
pid
,
t
.
id
])}),
t
.
detail
[
2
]
&&
t
.
detail
[
2
].
forEach
(
function
(
t
){
e
.
selectBox
([
t
.
id
])})});
break
;
case
2
:
e
.
title
=
"编辑"
,
e
.
show
=
e
.
dialogObj
.
show
,
e
.
id
=
e
.
dialogObj
.
id
,
e
.
type
=
2
}})},
beforeAvatarUpload
:
function
(){
this
.
uploadShow
=!
1
},
handleRemove
:
function
(){
this
.
uploadShow
=!
0
},
handleAvatarSuccess
:
function
(
e
){
this
.
imageList
=
[{
name
:
e
.
data
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
data
.
url
}]},
uploadFileMain
:
function
(
e
){
var
t
=
this
;
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
i
.
_43
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
form
.
cover
=
"http://cdn.singsingenglish.com/"
+
e
.
url
,
t
.
imageList
[
0
]
=
{
name
:
e
.
url
,
url
:
"http://cdn.singsingenglish.com/"
+
e
.
url
,
title
:
""
,
lable
:
""
}})},
moveBox
:
function
(
e
,
t
){
var
s
=
this
.
selectedBoxList
,
i
=
s
[
e
],
o
=
s
[
t
];
this
.
selectedBoxList
.
splice
(
e
,
1
,
o
),
this
.
selectedBoxList
.
splice
(
t
,
1
,
i
)},
moveItem
:
function
(
e
,
t
){
var
s
=
this
.
selectedLessonList
,
i
=
s
[
e
],
o
=
s
[
t
];
this
.
selectedLessonList
.
splice
(
e
,
1
,
o
),
this
.
selectedLessonList
.
splice
(
t
,
1
,
i
)}},
watch
:{},
mounted
:
function
(){
this
.
initDialog
()}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialogObj
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
e
.
dialogObj
.
show
,
width
:
"800px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
dialogObj
,
"show"
,
t
)}}},[
s
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}]},[
s
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
e
.
form
,
"label-width"
:
"120px"
,
rules
:
e
.
rules
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程标题"
,
prop
:
"title"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
form
.
title
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"title"
,
t
)},
expression
:
"form.title"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程封面(670*472)"
}},[
s
(
"el-upload"
,{
class
:{
disabled
:
!
e
.
uploadShow
},
attrs
:{
action
:
"/api/public/upload"
,
"http-request"
:
e
.
uploadFileMain
,
"before-upload"
:
e
.
beforeAvatarUpload
,
"list-type"
:
"picture-card"
,
"file-list"
:
e
.
imageList
,
"on-success"
:
e
.
handleAvatarSuccess
,
"on-remove"
:
e
.
handleRemove
}},[
s
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程类型"
}},[
s
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择课程类型"
},
on
:{
change
:
function
(
t
){
e
.
selectedLesson
=
[],
e
.
selectedLessonList
=
[]}},
model
:{
value
:
e
.
form
.
type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"type"
,
t
)},
expression
:
"form.type"
}},[
s
(
"el-option"
,{
attrs
:{
label
:
"月课"
,
value
:
0
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
label
:
"日课"
,
value
:
1
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
10
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"选择课程"
}},[
s
(
"el-cascader"
,{
attrs
:{
clearable
:
""
,
value
:
e
.
selectedLesson
,
options
:
e
.
showLessonList
,
"show-all-levels"
:
!
1
,
props
:{
label
:
"name"
,
value
:
"id"
,
children
:
"children"
}},
on
:{
"active-item-change"
:
e
.
changLessonItem
,
change
:
e
.
selectLesson
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"已选课程"
}},
e
.
_l
(
e
.
selectedLessonList
,
function
(
t
,
i
){
return
s
(
"div"
,{
key
:
i
,
staticClass
:
"selected-block"
},[
s
(
"el-card"
,{
attrs
:{
shadow
:
"always"
}},[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
name
)
+
"
\n
"
),
s
(
"el-button"
,{
staticStyle
:{
float
:
"right"
,
padding
:
"3px"
},
attrs
:{
type
:
"danger"
,
icon
:
"el-icon-close"
,
circle
:
""
,
size
:
"mini"
},
on
:{
click
:
function
(
s
){
e
.
delLesson
(
t
)}}}),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"move"
},[
0
!==
i
?
s
(
"el-button"
,{
staticClass
:
"button"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
moveItem
(
i
-
1
,
i
)}}},[
e
.
_v
(
"上移"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
i
!==
e
.
selectedLessonList
.
length
-
1
?
s
(
"el-button"
,{
staticClass
:
"button"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
moveItem
(
i
,
i
+
1
)}}},[
e
.
_v
(
"下移"
)]):
e
.
_e
()],
1
)],
1
)],
1
)}))],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
10
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"选择盒子"
}},[
s
(
"el-cascader"
,{
attrs
:{
clearable
:
""
,
value
:
e
.
selectedBox
,
options
:
e
.
showBoxList
,
"show-all-levels"
:
!
1
,
"expand-trigger"
:
"hover"
,
props
:{
label
:
"name"
,
value
:
"id"
,
children
:
"children"
}},
on
:{
change
:
e
.
selectBox
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
label
:
"已选盒子"
}},
e
.
_l
(
e
.
selectedBoxList
,
function
(
t
,
i
){
return
s
(
"div"
,{
key
:
t
.
id
,
staticClass
:
"selected-block"
},[
s
(
"el-card"
,{
attrs
:{
shadow
:
"always"
}},[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
name
)
+
"
\n
"
),
s
(
"el-button"
,{
staticStyle
:{
float
:
"right"
,
padding
:
"3px"
},
attrs
:{
type
:
"danger"
,
icon
:
"el-icon-close"
,
circle
:
""
,
size
:
"mini"
},
on
:{
click
:
function
(
s
){
e
.
delBox
(
t
)}}}),
e
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"move"
},[
0
!==
i
?
s
(
"el-button"
,{
staticClass
:
"button"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
moveBox
(
i
-
1
,
i
)}}},[
e
.
_v
(
"上移"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
i
!==
e
.
selectedBoxList
.
length
-
1
?
s
(
"el-button"
,{
staticClass
:
"button"
,
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
t
){
e
.
moveBox
(
i
,
i
+
1
)}}},[
e
.
_v
(
"下移"
)]):
e
.
_e
()],
1
)],
1
)],
1
)}))],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
2
!==
e
.
dialogObj
.
type
?
s
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
s
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogObj
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
):
e
.
_e
()],
1
)])},
staticRenderFns
:[]};
var
a
=
s
(
"VU/8"
)(
n
,
l
,
!
1
,
function
(
e
){
s
(
"AzFP"
),
s
(
"mvZf"
)},
"data-v-5ff93a1c"
,
null
).
exports
,
r
=
s
(
"+TkF"
),
c
=
{
name
:
"index"
,
data
:
function
(){
return
{
searchFrom
:{
title
:
""
,
type
:
""
},
userList
:[],
total
:
0
,
nowPage
:
1
,
limit
:
10
,
dialogObj
:{
type
:
0
,
show
:
!
1
,
id
:
""
}}},
components
:{
page
:
o
.
a
,
dialogCom
:
a
},
filters
:{
lessonType
:
function
(
e
){
return
r
.
i
[
e
]}},
mounted
:
function
(){
this
.
getUser
()},
methods
:{
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
getUser
()},
getUser
:
function
(){
var
e
=
this
;
this
.
searchFrom
.
page
=
this
.
nowPage
;
var
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
searchFrom
.
title
&&
(
t
.
title
=
this
.
searchFrom
.
title
),
this
.
searchFrom
.
type
&&
(
t
.
type
=
this
.
searchFrom
.
type
),
Object
(
i
.
_12
)(
t
).
then
(
function
(
t
){
e
.
userList
=
t
.
list
,
e
.
total
=
t
.
total
})},
edit
:
function
(
e
){
this
.
dialogObj
=
{
type
:
1
,
show
:
!
0
,
id
:
e
.
id
,
title
:
"编辑课程"
}},
add
:
function
(){
this
.
dialogObj
=
{
type
:
0
,
show
:
!
0
,
id
:
""
,
title
:
"新增课程"
}},
detail
:
function
(
e
){
this
.
dialogObj
.
id
=
e
.
id
,
this
.
dialogObj
.
type
=
1
,
this
.
dialogObj
.
show
=!
0
},
delTeacher
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该课程?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
i
.
F
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
}),
t
.
getUser
()})})},
changeShow
:
function
(
e
){
this
.
dialogObj
.
show
=
e
}}},
d
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"user"
},[
s
(
"el-form"
,{
ref
:
"searchFrom"
,
attrs
:{
model
:
e
.
searchFrom
,
"label-width"
:
"80px"
}},[
s
(
"el-row"
,[
s
(
"el-col"
,{
attrs
:{
span
:
4
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程标题"
}},[
s
(
"el-input"
,{
model
:{
value
:
e
.
searchFrom
.
title
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"title"
,
t
)},
expression
:
"searchFrom.title"
}})],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
4
}},[
s
(
"el-form-item"
,{
attrs
:{
label
:
"课程类型"
}},[
s
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
searchFrom
.
type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"type"
,
t
)},
expression
:
"searchFrom.type"
}},[
s
(
"el-option"
,{
attrs
:{
value
:
""
,
label
:
"请选择"
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
value
:
"0"
,
label
:
"月课"
}}),
e
.
_v
(
" "
),
s
(
"el-option"
,{
attrs
:{
value
:
"1"
,
label
:
"日课"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
4
}},[
s
(
"el-form-item"
,[
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
e
.
getUser
}},[
e
.
_v
(
"搜索"
)])],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-col"
,{
attrs
:{
span
:
4
,
offset
:
8
}},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
s
(
"el-button"
,{
staticStyle
:{
float
:
"right"
},
attrs
:{
type
:
"success"
,
plain
:
""
},
on
:{
click
:
e
.
add
}},[
e
.
_v
(
"新增课程"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
s
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
userList
}},[
s
(
"el-table-column"
,{
attrs
:{
prop
:
"title"
,
label
:
"课程名"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
label
:
"课程类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"lessonType"
)(
t
.
row
.
type
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
prop
:
"theme_num"
,
label
:
"主题数"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
prop
:
"sing_num"
,
label
:
"歌曲数"
}}),
e
.
_v
(
" "
),
s
(
"el-table-column"
,{
attrs
:{
prop
:
"item_num"
,
label
:
"实体包数量"
}}),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
s
(
"el-table-column"
,{
attrs
:{
width
:
"250"
,
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"warning"
},
on
:{
click
:
function
(
s
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"
\n
编辑
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
&&!
e
.
$store
.
state
.
readonly
?
s
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"danger"
},
on
:{
click
:
function
(
s
){
e
.
delTeacher
(
t
.
row
)}}},[
e
.
_v
(
"
\n
删除
\n
"
)]):
e
.
_e
()]}}])})],
1
),
e
.
_v
(
" "
),
s
(
"page"
,{
attrs
:{
total
:
e
.
total
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
}}),
e
.
_v
(
" "
),
e
.
dialogObj
.
show
?
s
(
"dialog-com"
,{
attrs
:{
dialogObj
:
e
.
dialogObj
},
on
:{
changeShow
:
e
.
changeShow
,
reflash
:
e
.
getUser
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
u
=
s
(
"VU/8"
)(
c
,
d
,
!
1
,
function
(
e
){
s
(
"5tGO"
)},
"data-v-f7b662be"
,
null
);
t
.
default
=
u
.
exports
},
AzFP
:
function
(
e
,
t
){},
mvZf
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/1
4.3599cdb833ec36097805
.js
→
dist/static/js/1
3.01ab4bcf32655e93d186
.js
View file @
b64994b3
webpackJsonp
([
14
],{
"0SOv"
:
function
(
t
,
e
){},
"7jYr"
:
function
(
t
,
e
){},
"9PRC"
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
l
=
a
(
"CCn6"
),
i
=
a
(
"kmJW"
),
s
=
a
(
"+TkF"
),
n
=
{
props
:[
"dialogObj"
],
data
:
function
(){
return
{
form
:{
id
:
""
,
teacher_id
:
""
},
teacherList
:[]}},
methods
:{
initPage
:
function
(){
var
t
=
this
;
Object
(
l
.
_26
)().
then
(
function
(
e
){
t
.
teacherList
=
e
.
list
}),
this
.
form
=
{
id
:
this
.
dialogObj
.
id
,
teacher_id
:
this
.
dialogObj
.
teacher_id
?
this
.
dialogObj
.
teacher_id
:
""
}},
onSave
:
function
(){
var
t
=
this
,
e
=
{
teacher_id
:
this
.
form
.
teacher_id
?
this
.
form
.
teacher_id
:
0
};
Object
(
l
.
l
)(
this
.
form
.
id
,
e
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"绑定成功!"
}),
t
.
$emit
(
"reflash"
),
t
.
dialogObj
.
show
=!
1
})}},
watch
:{
dialogObj
:
function
(
t
){
this
.
initPage
()}}},
r
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
t
.
dialogObj
.
title
,
visible
:
t
.
dialogObj
.
show
},
on
:{
"update:visible"
:
function
(
e
){
t
.
$set
(
t
.
dialogObj
,
"show"
,
e
)}}},[
a
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
t
.
form
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"老师"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form
.
teacher_id
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"teacher_id"
,
e
)},
expression
:
"form.teacher_id"
}},
t
.
_l
(
t
.
teacherList
,
function
(
t
,
e
){
return
a
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
t
.
name
,
value
:
t
.
id
}})}))],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
dialogObj
.
show
=!
1
}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onSave
}},[
t
.
_v
(
"确 定"
)])],
1
)],
1
)},
staticRenderFns
:[]};
var
o
=
a
(
"VU/8"
)(
n
,
r
,
!
1
,
function
(
t
){
a
(
"HvAI"
)},
"data-v-6ac12182"
,
null
).
exports
,
c
=
{
name
:
"index"
,
data
:
function
(){
return
{
userList
:[],
total
:
0
,
nowPage
:
1
,
limit
:
3
,
id
:
""
,
detail
:{},
periodList
:[],
dialogObj
:{
show
:
!
1
,
title
:
"绑定老师"
,
id
:
0
,
teacher_id
:
0
}}},
components
:{
page
:
i
.
a
,
teacherDialog
:
o
},
mounted
:
function
(){
this
.
id
=
this
.
$route
.
params
.
id
,
this
.
getDetail
(),
this
.
getUser
()},
methods
:{
onPageChange
:
function
(
t
){
this
.
nowPage
=
t
,
this
.
getUser
()},
getUser
:
function
(){
var
t
=
this
,
e
=
{
user_id
:
this
.
id
,
limit
:
this
.
limit
,
page
:
this
.
nowPage
,
status
:
1
};
Object
(
l
.
_16
)(
e
).
then
(
function
(
e
){
t
.
userList
=
e
.
list
,
t
.
total
=
e
.
total
})},
getDetail
:
function
(){
var
t
=
this
;
this
.
id
&&
Object
(
l
.
_27
)(
this
.
id
).
then
(
function
(
e
){
t
.
detail
=
e
,
e
.
periods_list
&&
(
t
.
periodList
=
e
.
periods_list
)})},
bindTeacher
:
function
(){
var
t
=
this
.
detail
;
this
.
dialogObj
=
{
show
:
!
0
,
title
:
"绑定老师"
,
id
:
t
.
user_id
,
teacher_id
:
t
.
teacher_id
}}},
filters
:{
payMentFilter
:
function
(
t
){
return
"1"
==
t
?
"已付款"
:
"未付款"
},
courseTypeFilter
:
function
(
t
){
return
"1"
==
t
.
type
?
"正式课("
+
t
.
duration
+
"个月)"
:
"试听课("
+
t
.
duration
+
"天)"
},
inviteType
:
function
(
t
){
return
s
.
f
[
t
]},
status
:
function
(
t
){
return
s
.
j
[
t
]},
buyType
:
function
(
t
){
return
s
.
b
[
t
]},
moneytFilter
:
function
(
t
){
return
t
/
100
+
"元"
}}},
_
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"user"
},[
a
(
"div"
,{
staticClass
:
"header"
},[
t
.
detail
?
a
(
"div"
,{
staticClass
:
"clear-both"
,
staticStyle
:{
"margin-top"
:
"20px"
}},[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
a
(
"el-button"
,{
staticStyle
:{
float
:
"right"
},
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"success"
},
on
:{
click
:
t
.
bindTeacher
}},[
t
.
_v
(
"
\n
绑定老师
\n
"
)])],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"昵称:"
)]),
t
.
_v
(
" "
),
a
(
"a"
,{
attrs
:{
href
:
t
.
detail
.
qr
}},[
a
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
t
.
detail
.
avatar
}})]),
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
detail
.
nickname
)
+
"
\n
"
)]),
t
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"手机号:"
)]),
t
.
_v
(
" "
+
t
.
_s
(
t
.
detail
.
mobile
)
+
"
\n
"
)]),
t
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"生日:"
)]),
t
.
_v
(
t
.
_s
(
t
.
detail
.
birthday
)
+
"
\n
"
)]),
t
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"等级:"
)]),
t
.
_v
(
t
.
_s
(
t
.
detail
.
level
)
+
"
\n
"
)])],
1
),
t
.
_v
(
" "
),
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"邀请类型:"
)]),
t
.
_v
(
t
.
_s
(
t
.
_f
(
"inviteType"
)(
t
.
detail
.
invite_type
))
+
"
\n
"
)]),
t
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"邀请人ID:"
)]),
t
.
_v
(
t
.
_s
(
t
.
detail
.
invite_user_id
?
t
.
detail
.
invite_user_id
:
""
)
+
"
\n
"
)]),
t
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"已绑定老师:"
)]),
t
.
_v
(
t
.
_s
(
t
.
detail
.
teacher_name
)
+
"
\n
"
)]),
t
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"注册时间:"
)]),
t
.
_v
(
t
.
_s
(
t
.
detail
.
created_at
)
+
"
\n
"
)])],
1
),
t
.
_v
(
" "
),
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"最后登录:"
)]),
t
.
_v
(
t
.
_s
(
t
.
detail
.
last_login_at
)
+
"
\n
"
)])],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"b-title"
},[
t
.
_v
(
"期数列表"
)]),
t
.
_v
(
" "
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
periodList
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"periods_title"
,
label
:
"期数名称"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"开课权限"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
1
===
e
.
row
.
is_view_course
?
"开"
:
"关"
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
className
:
"f-c"
,
label
:
"老师"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
e
.
row
.
teacher_qr
}}),
t
.
_v
(
" "
+
t
.
_s
(
e
.
row
.
teacher_name
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"join_num"
,
label
:
"加入人数"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"max_join_num"
,
label
:
"最大加入人数"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"start_at"
,
label
:
"开课时间"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"created_at"
,
label
:
"创建时间"
}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"b-title"
},[
t
.
_v
(
"订单列表"
)]),
t
.
_v
(
" "
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
userList
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"out_trade_no"
,
label
:
"订单号"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
className
:
"f-c"
,
label
:
"用户"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
e
.
row
.
user_avatar
}}),
t
.
_v
(
" "
+
t
.
_s
(
e
.
row
.
user_nickname
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"goods_name"
,
label
:
"商品名称"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"periods_id"
,
label
:
"期数ID"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"实付金额"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"moneytFilter"
)(
e
.
row
.
money
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"推广人"
,
width
:
"150"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
类型:"
+
t
.
_s
(
t
.
_f
(
"inviteType"
)(
e
.
row
.
invite_type
))),
a
(
"br"
),
t
.
_v
(
"
\n
"
+
t
.
_s
(
e
.
row
.
invite_id
?
"ID:"
+
e
.
row
.
invite_id
:
""
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"购买方式"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
1
===
e
.
row
.
buy_type
?
"团购"
:
"单买"
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"是否是团长"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
1
===
e
.
row
.
is_captain
?
"是"
:
"否"
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"付款状态"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"status"
)(
e
.
row
.
status
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"pay_at"
,
label
:
"支付时间"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"created_at"
,
label
:
"创建时间"
}})],
1
),
t
.
_v
(
" "
),
a
(
"page"
,{
attrs
:{
total
:
t
.
total
,
limit
:
t
.
limit
},
on
:{
pageChange
:
t
.
onPageChange
}}),
t
.
_v
(
" "
),
a
(
"teacher-dialog"
,{
attrs
:{
dialogObj
:
t
.
dialogObj
},
on
:{
reflash
:
t
.
getDetail
}})],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
c
,
_
,
!
1
,
function
(
t
){
a
(
"7jYr"
),
a
(
"0SOv"
)},
"data-v-33d2461a"
,
null
);
e
.
default
=
d
.
exports
},
HvAI
:
function
(
t
,
e
){}});
\ No newline at end of file
webpackJsonp
([
13
],{
"0SOv"
:
function
(
t
,
e
){},
"7jYr"
:
function
(
t
,
e
){},
"9PRC"
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
l
=
a
(
"CCn6"
),
i
=
a
(
"kmJW"
),
s
=
a
(
"+TkF"
),
n
=
{
props
:[
"dialogObj"
],
data
:
function
(){
return
{
form
:{
id
:
""
,
teacher_id
:
""
},
teacherList
:[]}},
methods
:{
initPage
:
function
(){
var
t
=
this
;
Object
(
l
.
_26
)().
then
(
function
(
e
){
t
.
teacherList
=
e
.
list
}),
this
.
form
=
{
id
:
this
.
dialogObj
.
id
,
teacher_id
:
this
.
dialogObj
.
teacher_id
?
this
.
dialogObj
.
teacher_id
:
""
}},
onSave
:
function
(){
var
t
=
this
,
e
=
{
teacher_id
:
this
.
form
.
teacher_id
?
this
.
form
.
teacher_id
:
0
};
Object
(
l
.
l
)(
this
.
form
.
id
,
e
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"绑定成功!"
}),
t
.
$emit
(
"reflash"
),
t
.
dialogObj
.
show
=!
1
})}},
watch
:{
dialogObj
:
function
(
t
){
this
.
initPage
()}}},
r
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
t
.
dialogObj
.
title
,
visible
:
t
.
dialogObj
.
show
},
on
:{
"update:visible"
:
function
(
e
){
t
.
$set
(
t
.
dialogObj
,
"show"
,
e
)}}},[
a
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
t
.
form
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"老师"
}},[
a
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form
.
teacher_id
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"teacher_id"
,
e
)},
expression
:
"form.teacher_id"
}},
t
.
_l
(
t
.
teacherList
,
function
(
t
,
e
){
return
a
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
t
.
name
,
value
:
t
.
id
}})}))],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
dialogObj
.
show
=!
1
}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onSave
}},[
t
.
_v
(
"确 定"
)])],
1
)],
1
)},
staticRenderFns
:[]};
var
o
=
a
(
"VU/8"
)(
n
,
r
,
!
1
,
function
(
t
){
a
(
"HvAI"
)},
"data-v-6ac12182"
,
null
).
exports
,
c
=
{
name
:
"index"
,
data
:
function
(){
return
{
userList
:[],
total
:
0
,
nowPage
:
1
,
limit
:
3
,
id
:
""
,
detail
:{},
periodList
:[],
dialogObj
:{
show
:
!
1
,
title
:
"绑定老师"
,
id
:
0
,
teacher_id
:
0
}}},
components
:{
page
:
i
.
a
,
teacherDialog
:
o
},
mounted
:
function
(){
this
.
id
=
this
.
$route
.
params
.
id
,
this
.
getDetail
(),
this
.
getUser
()},
methods
:{
onPageChange
:
function
(
t
){
this
.
nowPage
=
t
,
this
.
getUser
()},
getUser
:
function
(){
var
t
=
this
,
e
=
{
user_id
:
this
.
id
,
limit
:
this
.
limit
,
page
:
this
.
nowPage
,
status
:
1
};
Object
(
l
.
_16
)(
e
).
then
(
function
(
e
){
t
.
userList
=
e
.
list
,
t
.
total
=
e
.
total
})},
getDetail
:
function
(){
var
t
=
this
;
this
.
id
&&
Object
(
l
.
_27
)(
this
.
id
).
then
(
function
(
e
){
t
.
detail
=
e
,
e
.
periods_list
&&
(
t
.
periodList
=
e
.
periods_list
)})},
bindTeacher
:
function
(){
var
t
=
this
.
detail
;
this
.
dialogObj
=
{
show
:
!
0
,
title
:
"绑定老师"
,
id
:
t
.
user_id
,
teacher_id
:
t
.
teacher_id
}}},
filters
:{
payMentFilter
:
function
(
t
){
return
"1"
==
t
?
"已付款"
:
"未付款"
},
courseTypeFilter
:
function
(
t
){
return
"1"
==
t
.
type
?
"正式课("
+
t
.
duration
+
"个月)"
:
"试听课("
+
t
.
duration
+
"天)"
},
inviteType
:
function
(
t
){
return
s
.
f
[
t
]},
status
:
function
(
t
){
return
s
.
j
[
t
]},
buyType
:
function
(
t
){
return
s
.
b
[
t
]},
moneytFilter
:
function
(
t
){
return
t
/
100
+
"元"
}}},
_
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"user"
},[
a
(
"div"
,{
staticClass
:
"header"
},[
t
.
detail
?
a
(
"div"
,{
staticClass
:
"clear-both"
,
staticStyle
:{
"margin-top"
:
"20px"
}},[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
a
(
"el-button"
,{
staticStyle
:{
float
:
"right"
},
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"success"
},
on
:{
click
:
t
.
bindTeacher
}},[
t
.
_v
(
"
\n
绑定老师
\n
"
)])],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"昵称:"
)]),
t
.
_v
(
" "
),
a
(
"a"
,{
attrs
:{
href
:
t
.
detail
.
qr
}},[
a
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
t
.
detail
.
avatar
}})]),
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
detail
.
nickname
)
+
"
\n
"
)]),
t
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"手机号:"
)]),
t
.
_v
(
" "
+
t
.
_s
(
t
.
detail
.
mobile
)
+
"
\n
"
)]),
t
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"生日:"
)]),
t
.
_v
(
t
.
_s
(
t
.
detail
.
birthday
)
+
"
\n
"
)]),
t
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"等级:"
)]),
t
.
_v
(
t
.
_s
(
t
.
detail
.
level
)
+
"
\n
"
)])],
1
),
t
.
_v
(
" "
),
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"邀请类型:"
)]),
t
.
_v
(
t
.
_s
(
t
.
_f
(
"inviteType"
)(
t
.
detail
.
invite_type
))
+
"
\n
"
)]),
t
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"邀请人ID:"
)]),
t
.
_v
(
t
.
_s
(
t
.
detail
.
invite_user_id
?
t
.
detail
.
invite_user_id
:
""
)
+
"
\n
"
)]),
t
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"已绑定老师:"
)]),
t
.
_v
(
t
.
_s
(
t
.
detail
.
teacher_name
)
+
"
\n
"
)]),
t
.
_v
(
" "
),
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"注册时间:"
)]),
t
.
_v
(
t
.
_s
(
t
.
detail
.
created_at
)
+
"
\n
"
)])],
1
),
t
.
_v
(
" "
),
a
(
"el-row"
,[
a
(
"el-col"
,{
attrs
:{
span
:
6
}},[
a
(
"label"
,[
t
.
_v
(
"最后登录:"
)]),
t
.
_v
(
t
.
_s
(
t
.
detail
.
last_login_at
)
+
"
\n
"
)])],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"b-title"
},[
t
.
_v
(
"期数列表"
)]),
t
.
_v
(
" "
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
periodList
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"periods_title"
,
label
:
"期数名称"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"开课权限"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
1
===
e
.
row
.
is_view_course
?
"开"
:
"关"
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
className
:
"f-c"
,
label
:
"老师"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
e
.
row
.
teacher_qr
}}),
t
.
_v
(
" "
+
t
.
_s
(
e
.
row
.
teacher_name
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"join_num"
,
label
:
"加入人数"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"max_join_num"
,
label
:
"最大加入人数"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"start_at"
,
label
:
"开课时间"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"created_at"
,
label
:
"创建时间"
}})],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"b-title"
},[
t
.
_v
(
"订单列表"
)]),
t
.
_v
(
" "
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
userList
}},[
a
(
"el-table-column"
,{
attrs
:{
prop
:
"out_trade_no"
,
label
:
"订单号"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
className
:
"f-c"
,
label
:
"用户"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
e
.
row
.
user_avatar
}}),
t
.
_v
(
" "
+
t
.
_s
(
e
.
row
.
user_nickname
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"goods_name"
,
label
:
"商品名称"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"periods_id"
,
label
:
"期数ID"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"实付金额"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"moneytFilter"
)(
e
.
row
.
money
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"推广人"
,
width
:
"150"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
类型:"
+
t
.
_s
(
t
.
_f
(
"inviteType"
)(
e
.
row
.
invite_type
))),
a
(
"br"
),
t
.
_v
(
"
\n
"
+
t
.
_s
(
e
.
row
.
invite_id
?
"ID:"
+
e
.
row
.
invite_id
:
""
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"购买方式"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
1
===
e
.
row
.
buy_type
?
"团购"
:
"单买"
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"是否是团长"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
1
===
e
.
row
.
is_captain
?
"是"
:
"否"
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"付款状态"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"status"
)(
e
.
row
.
status
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"pay_at"
,
label
:
"支付时间"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"created_at"
,
label
:
"创建时间"
}})],
1
),
t
.
_v
(
" "
),
a
(
"page"
,{
attrs
:{
total
:
t
.
total
,
limit
:
t
.
limit
},
on
:{
pageChange
:
t
.
onPageChange
}}),
t
.
_v
(
" "
),
a
(
"teacher-dialog"
,{
attrs
:{
dialogObj
:
t
.
dialogObj
},
on
:{
reflash
:
t
.
getDetail
}})],
1
)},
staticRenderFns
:[]};
var
d
=
a
(
"VU/8"
)(
c
,
_
,
!
1
,
function
(
t
){
a
(
"7jYr"
),
a
(
"0SOv"
)},
"data-v-33d2461a"
,
null
);
e
.
default
=
d
.
exports
},
HvAI
:
function
(
t
,
e
){}});
\ No newline at end of file
dist/static/js/13.44bb04141d0b07cee440.js
deleted
100644 → 0
View file @
12835f40
webpackJsonp
([
13
],{
"1lOH"
:
function
(
t
,
e
){},
"2VsG"
:
function
(
t
,
e
){},
"3nwV"
:
function
(
t
,
e
){},
OX9A
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
i
(
"CCn6"
),
n
=
{
props
:[
"dialogObj"
],
data
:
function
(){
return
{
form
:{
teacher_id
:
""
,
max_join_num
:
""
},
teacherList
:[],
exitTeacherList
:[],
goodsList
:[],
periods
:{}}},
methods
:{
findDifferentArray
:
function
(
t
,
e
){
var
i
=
[];
return
t
.
forEach
(
function
(
t
){
-
1
===
e
.
findIndex
(
function
(
e
){
return
e
.
teacher_id
==
t
.
id
})
&&
i
.
push
(
t
)}),
i
},
getTeacher
:
function
(){
var
t
=
this
;
this
.
exitTeacherList
=
this
.
dialogObj
.
teacherList
.
length
>
0
?
this
.
dialogObj
.
teacherList
:[],
Object
(
s
.
_26
)().
then
(
function
(
e
){
t
.
exitTeacherList
.
length
>
0
?
t
.
teacherList
=
t
.
findDifferentArray
(
e
.
list
,
t
.
exitTeacherList
):
t
.
teacherList
=
e
.
list
})},
getTeacherByPeriods
:
function
(){
var
t
=
this
;
Object
(
s
.
_18
)(
this
.
periods
.
id
).
then
(
function
(
e
){
t
.
exitTeacherList
=
e
,
Object
(
s
.
_26
)().
then
(
function
(
e
){
t
.
exitTeacherList
.
length
>
0
?
t
.
teacherList
=
t
.
findDifferentArray
(
e
.
list
,
t
.
exitTeacherList
):
t
.
teacherList
=
e
.
list
})})},
initPage
:
function
(){
var
t
=
this
;
switch
(
this
.
periods
=
this
.
dialogObj
.
periods
,
this
.
getTeacher
(),
this
.
dialogObj
.
type
){
case
0
:
this
.
dialogObj
.
periodsId
||
this
.
getPeriodList
(),
this
.
form
=
{
teacher_id
:
""
,
max_join_num
:
""
};
break
;
case
1
:
Object
(
s
.
_3
)(
this
.
dialogObj
.
id
).
then
(
function
(
e
){
t
.
form
=
{
teacher_id
:
e
.
teacher_id
,
max_join_num
:
e
.
max_join_num
}})}},
getPeriodList
:
function
(){
var
t
=
this
;
Object
(
s
.
_11
)().
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
children
=
[]}),
t
.
goodsList
=
e
.
list
,
t
.
periods
||
Object
(
s
.
_17
)({
goods_id
:
t
.
goodsList
[
0
].
id
}).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
t
.
goodsList
[
0
].
children
=
e
.
list
,
t
.
periods
=
e
.
list
[
0
]})})},
onSave
:
function
(){
var
t
=
this
;
switch
(
this
.
dialogObj
.
type
){
case
0
:
var
e
=
this
.
dialogObj
.
periodsId
?
this
.
dialogObj
.
periodsId
:
this
.
periods
.
id
;
Object
(
s
.
f
)(
e
,
this
.
form
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
t
.
$emit
(
"reflash"
,
t
.
periods
),
t
.
dialogObj
.
show
=!
1
});
break
;
case
1
:
Object
(
s
.
L
)(
this
.
dialogObj
.
id
,
this
.
form
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
t
.
$emit
(
"reflash"
,
t
.
periods
),
t
.
dialogObj
.
show
=!
1
})}},
handleItemChange
:
function
(
t
){
var
e
=
this
;
Object
(
s
.
_17
)({
goods_id
:
t
[
0
]}).
then
(
function
(
i
){
i
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
e
.
goodsList
.
find
(
function
(
e
){
return
e
.
id
===
t
[
0
]}).
children
=
i
.
list
})},
changePeriods
:
function
(
t
){
if
(
t
.
length
>
1
){
var
e
=
this
.
goodsList
.
find
(
function
(
e
){
return
e
.
id
===
t
[
0
]});
this
.
periods
=
e
.
children
.
find
(
function
(
e
){
return
e
.
id
===
t
[
1
]}),
this
.
getTeacherByPeriods
()}}},
watch
:{
dialogObj
:
function
(
t
){
this
.
initPage
()}}},
o
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"el-dialog"
,{
attrs
:{
title
:
t
.
dialogObj
.
title
,
visible
:
t
.
dialogObj
.
show
},
on
:{
"update:visible"
:
function
(
e
){
t
.
$set
(
t
.
dialogObj
,
"show"
,
e
)}}},[
i
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
t
.
form
,
"label-width"
:
"120px"
}},[
this
.
dialogObj
.
periodsId
?
t
.
_e
():
i
(
"el-form-item"
,{
attrs
:{
label
:
"期数"
}},[
i
(
"el-cascader"
,{
attrs
:{
options
:
t
.
goodsList
,
props
:{
value
:
"id"
,
label
:
"name"
}},
on
:{
"active-item-change"
:
t
.
handleItemChange
,
change
:
t
.
changePeriods
}})],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"老师"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form
.
teacher_id
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"teacher_id"
,
e
)},
expression
:
"form.teacher_id"
}},
t
.
_l
(
t
.
teacherList
,
function
(
t
,
e
){
return
i
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
t
.
name
,
value
:
t
.
id
}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"最大学员"
}},[
i
(
"el-input-number"
,{
model
:{
value
:
t
.
form
.
max_join_num
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"max_join_num"
,
e
)},
expression
:
"form.max_join_num"
}})],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
i
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
dialogObj
.
show
=!
1
}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onSave
}},[
t
.
_v
(
"确 定"
)])],
1
)],
1
)},
staticRenderFns
:[]};
var
a
=
i
(
"VU/8"
)(
n
,
o
,
!
1
,
function
(
t
){
i
(
"2VsG"
)},
"data-v-68a62bcd"
,
null
).
exports
,
r
=
i
(
"kmJW"
),
l
=
i
(
"+TkF"
);
function
c
(
t
,
e
,
i
){
return
e
in
t
?
Object
.
defineProperty
(
t
,
e
,{
value
:
i
,
enumerable
:
!
0
,
configurable
:
!
0
,
writable
:
!
0
}):
t
[
e
]
=
i
,
t
}
var
d
=
{
name
:
"userList"
,
props
:[
"userObj"
],
data
:
function
(){
var
t
;
return
c
(
t
=
{
userTable
:[],
addId
:
""
,
addShow
:
!
1
,
searchFrom
:{},
userList
:[],
nowPage
:
1
,
limit
:
5
,
total
:
0
},
"searchFrom"
,{
userId
:
""
,
nickName
:
""
,
mobile
:
""
}),
c
(
t
,
"multipleSelection"
,[]),
t
},
components
:{
page
:
r
.
a
},
filters
:{
isOrNot
:
function
(
t
){
return
l
.
h
[
t
]}},
methods
:{
initPage
:
function
(){
var
t
=
this
;
Object
(
s
.
_5
)(
this
.
userObj
.
classId
).
then
(
function
(
e
){
t
.
userTable
=
e
.
list
})},
changeUser
:
function
(
t
){
var
e
=
this
;
this
.
$confirm
(
"此操作将修改成员看课权限?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
p
)(
t
.
id
,{
is_view_course
:
0
===
t
.
is_view_course
?
1
:
0
}).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})}),
e
.
initPage
()})},
onDel
:
function
(
t
){
var
e
=
this
;
this
.
$confirm
(
"此操作将删除该成员?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
w
)(
t
.
id
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
}),
e
.
initPage
()})})},
onAdd
:
function
(){
var
t
=
this
;
0
!==
this
.
multipleSelection
.
length
?
1
===
this
.
multipleSelection
.
length
?(
this
.
addId
=
this
.
multipleSelection
[
0
].
user_id
,
this
.
addId
&&
Object
(
s
.
g
)(
this
.
userObj
.
classId
,
this
.
addId
,{
is_buy
:
0
}).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
t
.
addShow
=!
1
,
t
.
initPage
()})):
this
.
$message
({
type
:
"error"
,
message
:
"只能选择一个用户!"
}):
this
.
$message
({
type
:
"error"
,
message
:
"请选择用户!"
})},
onAddUser
:
function
(){
this
.
addShow
=!
0
,
this
.
getUser
()},
getUser
:
function
(){
var
t
=
this
,
e
=
{
page
:
this
.
nowPage
,
limit
:
this
.
limit
};
this
.
searchFrom
.
userId
&&
(
e
.
user_id
=
this
.
searchFrom
.
userId
),
this
.
searchFrom
.
nickName
&&
(
e
.
nickname
=
this
.
searchFrom
.
nickName
),
this
.
searchFrom
.
mobile
&&
(
e
.
mobile
=
this
.
searchFrom
.
mobile
),
Object
(
s
.
_28
)(
e
).
then
(
function
(
e
){
t
.
userList
=
e
.
list
,
t
.
total
=
e
.
total
})},
onPageChange
:
function
(
t
){
this
.
nowPage
=
t
,
this
.
getUser
()},
handleSelectionChange
:
function
(
t
){
this
.
multipleSelection
=
t
},
editComment
:
function
(
t
,
e
){
var
i
=
this
;
this
.
$prompt
(
""
,
"编辑备注"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
inputValue
:
e
}).
then
(
function
(
e
){
var
n
=
e
.
value
;
Object
(
s
.
k
)(
t
,{
desc
:
n
}).
then
(
function
(
t
){
i
.
$message
({
type
:
"success"
,
message
:
"编辑备注成功"
}),
i
.
initPage
()})})}},
watch
:{
userObj
:
function
(){
this
.
initPage
()}}},
h
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"el-dialog"
,{
attrs
:{
title
:
t
.
userObj
.
title
,
visible
:
t
.
userObj
.
show
,
modal
:
!
1
,
fullscreen
:
!
0
},
on
:{
"update:visible"
:
function
(
e
){
t
.
$set
(
t
.
userObj
,
"show"
,
e
)}}},[
i
(
"div"
,[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"90px"
,
inline
:
""
}},[
i
(
"el-form-item"
,{
staticStyle
:{
float
:
"right"
}},[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"success"
},
on
:{
click
:
t
.
onAddUser
}},[
t
.
_v
(
"+添加用户"
)])],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
userTable
}},[
i
(
"el-table-column"
,{
attrs
:{
label
:
"用户"
,
className
:
"f-c"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
i
(
"img"
,{
staticStyle
:{
"margin-right"
:
"5px"
,
width
:
"50px"
,
height
:
"50px"
,
"border-radius"
:
"50px"
},
attrs
:{
src
:
e
.
row
.
avatar
}}),
t
.
_v
(
" "
+
t
.
_s
(
e
.
row
.
nickname
)
+
"(ID:"
+
t
.
_s
(
e
.
row
.
user_id
)
+
")
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"是否购买"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
0
===
e
.
row
.
is_buy
?
"否"
:
"是"
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"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_view_course
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"desc"
,
label
:
"备注"
}}),
t
.
_v
(
" "
),
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"300"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"warning"
,
size
:
"mini"
},
on
:{
click
:
function
(
i
){
t
.
editComment
(
e
.
row
.
user_id
,
e
.
row
.
desc
)}}},[
t
.
_v
(
"编辑备注"
)]),
t
.
_v
(
" "
),
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"warning"
,
size
:
"mini"
},
on
:{
click
:
function
(
i
){
t
.
changeUser
(
e
.
row
)}}},[
t
.
_v
(
"更改看课权限"
)]),
t
.
_v
(
" "
),
t
.
$store
.
state
.
deletePermission
&&!
t
.
$store
.
state
.
readonly
?
i
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
size
:
"mini"
},
on
:{
click
:
function
(
i
){
t
.
onDel
(
e
.
row
)}}},[
t
.
_v
(
"删除"
)]):
t
.
_e
()]}}])})],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-dialog"
,{
attrs
:{
modal
:
!
1
,
visible
:
t
.
addShow
},
on
:{
"update:visible"
:
function
(
e
){
t
.
addShow
=
e
}}},[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"90px"
}},[
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
8
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"ID"
}},[
i
(
"el-input"
,{
model
:{
value
:
t
.
searchFrom
.
userId
,
callback
:
function
(
e
){
t
.
$set
(
t
.
searchFrom
,
"userId"
,
e
)},
expression
:
"searchFrom.userId"
}})],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
8
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"昵称"
}},[
i
(
"el-input"
,{
model
:{
value
:
t
.
searchFrom
.
nickName
,
callback
:
function
(
e
){
t
.
$set
(
t
.
searchFrom
,
"nickName"
,
e
)},
expression
:
"searchFrom.nickName"
}})],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
8
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"电话"
}},[
i
(
"el-input"
,{
model
:{
value
:
t
.
searchFrom
.
mobile
,
callback
:
function
(
e
){
t
.
$set
(
t
.
searchFrom
,
"mobile"
,
e
)},
expression
:
"searchFrom.mobile"
}})],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
8
,
offset
:
16
}},[
i
(
"el-form-item"
,[
i
(
"el-button"
,{
staticStyle
:{
float
:
"right"
},
attrs
:{
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
getUser
}},[
t
.
_v
(
"搜索"
)])],
1
)],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-table"
,{
ref
:
"multipleTable"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
userList
},
on
:{
"selection-change"
:
t
.
handleSelectionChange
}},[
i
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
className
:
"f-c"
,
label
:
"用户"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
i
(
"img"
,{
staticStyle
:{
"margin-right"
:
"5px"
,
width
:
"50px"
,
height
:
"50px"
,
"border-radius"
:
"50px"
},
attrs
:{
src
:
e
.
row
.
avatar
}}),
t
.
_v
(
t
.
_s
(
e
.
row
.
nickname
)
+
"(ID:"
+
t
.
_s
(
e
.
row
.
user_id
)
+
")
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"mobile"
,
label
:
"手机号"
}})],
1
),
t
.
_v
(
" "
),
i
(
"page"
,{
attrs
:{
total
:
t
.
total
,
limit
:
t
.
limit
},
on
:{
pageChange
:
t
.
onPageChange
}}),
t
.
_v
(
" "
),
i
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
i
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
addShow
=!
1
}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onAdd
}},[
t
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
u
=
{
data
:
function
(){
return
{
nowPage
:
1
,
total
:
0
,
limit
:
10
,
periodsId
:
null
,
goodsList
:[],
teacher_id
:
""
,
classList
:[],
title
:
""
,
countObj
:
""
,
teacherList
:[],
userObj
:{
classId
:
""
,
title
:
""
,
show
:
!
1
},
dialogObj
:{
show
:
!
1
,
title
:
"添加班级"
,
periodsId
:
""
,
type
:
0
,
id
:
0
},
selectedGoods
:[]}},
components
:{
UserList
:
i
(
"VU/8"
)(
d
,
h
,
!
1
,
function
(
t
){
i
(
"1lOH"
)},
null
,
null
).
exports
,
classDialog
:
a
,
page
:
r
.
a
},
filters
:{
classTypeFilter
:
function
(
t
){
var
e
=
parseInt
(
t
);
return
1
===
e
?
"带班班级"
:
2
===
e
?
"观摩班级"
:
""
}},
mounted
:
function
(){
this
.
initPage
()},
methods
:{
initQuery
:
function
(){
var
t
=
this
,
e
=
this
.
$route
.
query
;
e
&&
e
.
goods_id
&&
e
.
periods_id
?(
this
.
selectedGoods
=
[
parseInt
(
e
.
goods_id
),
parseInt
(
e
.
periods_id
)],
Object
(
s
.
_17
)({
goods_id
:
this
.
selectedGoods
[
0
]}).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
t
.
goodsList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
0
]}).
children
=
e
.
list
;
var
i
=
t
.
goodsList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
0
]});
t
.
periods
=
i
.
children
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
1
]}),
t
.
teacher_id
=
""
,
t
.
getClassList
()})):
Object
(
s
.
_17
)({
goods_id
:
this
.
goodsList
[
0
].
id
}).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
t
.
goodsList
[
0
].
children
=
e
.
list
,
t
.
periods
=
e
.
list
[
0
]})},
initPage
:
function
(){
var
t
=
this
;
Object
(
s
.
_11
)().
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
children
=
[]}),
t
.
goodsList
=
e
.
list
,
t
.
initQuery
()})},
showUser
:
function
(
t
){
this
.
userObj
=
{
classId
:
t
.
id
,
show
:
!
0
,
title
:
t
.
teacher_name
+
"班级用户列表"
}},
getTeacher
:
function
(){
var
t
=
this
;
this
.
periods
&&
Object
(
s
.
_18
)(
this
.
periods
.
id
).
then
(
function
(
e
){
t
.
teacherList
=
e
})},
changePeriods
:
function
(
t
){
if
(
t
.
length
>
1
){
var
e
=
this
.
goodsList
.
find
(
function
(
e
){
return
e
.
id
===
t
[
0
]});
this
.
periods
=
e
.
children
.
find
(
function
(
e
){
return
e
.
id
===
t
[
1
]}),
this
.
teacher_id
=
""
,
this
.
getTeacher
()}},
onPageChange
:
function
(
t
){
this
.
nowPage
=
t
,
this
.
getClassList
()},
onReflash
:
function
(
t
){
this
.
periods
=
t
,
this
.
selectedGoods
=
[
t
.
goods_id
,
t
.
id
],
this
.
getClassList
()},
getClassList
:
function
(){
var
t
=
this
;
if
(
this
.
periods
){
this
.
getTeacher
();
var
e
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
teacher_id
&&
(
e
.
teacher_id
=
this
.
teacher_id
),
Object
(
s
.
_4
)(
this
.
periods
.
id
,
e
).
then
(
function
(
e
){
t
.
title
=
e
.
periods
,
t
.
countObj
=
e
.
count
?
e
.
count
:
""
,
t
.
classList
=
e
.
list
,
t
.
total
=
e
.
total
})}},
handleItemChange
:
function
(
t
){
var
e
=
this
;
Object
(
s
.
_17
)({
goods_id
:
t
[
0
]}).
then
(
function
(
i
){
i
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
e
.
goodsList
.
find
(
function
(
e
){
return
e
.
id
===
t
[
0
]}).
children
=
i
.
list
})},
delClass
:
function
(
t
){
var
e
=
this
;
this
.
$confirm
(
"此操作将删除该班级?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
v
)(
t
.
id
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
}),
e
.
getClassList
()})})},
onAdd
:
function
(){
this
.
dialogObj
=
{
show
:
!
0
,
title
:
"添加班级"
,
type
:
0
,
teacherList
:
this
.
teacherList
?
this
.
teacherList
:[]},
this
.
periods
&&
(
this
.
dialogObj
.
periods
=
this
.
periods
,
this
.
dialogObj
.
periodsId
=
this
.
periods
.
id
)},
editClass
:
function
(
t
){
this
.
dialogObj
=
{
show
:
!
0
,
title
:
"编辑班级"
,
type
:
1
,
id
:
t
.
id
,
teacherList
:
this
.
teacherList
?
this
.
teacherList
:[]},
this
.
periods
&&
(
this
.
dialogObj
.
periods
=
this
.
periods
,
this
.
dialogObj
.
periodsId
=
this
.
periods
.
id
)}}},
f
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"class"
},[
i
(
"div"
,{
staticClass
:
"form-block"
},[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"90px"
,
inline
:
""
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"期数"
}},[
i
(
"el-cascader"
,{
attrs
:{
options
:
t
.
goodsList
,
props
:{
value
:
"id"
,
label
:
"name"
}},
on
:{
"active-item-change"
:
t
.
handleItemChange
,
change
:
t
.
changePeriods
},
model
:{
value
:
t
.
selectedGoods
,
callback
:
function
(
e
){
t
.
selectedGoods
=
e
},
expression
:
"selectedGoods"
}})],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"老师"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
clearable
:
""
},
model
:{
value
:
t
.
teacher_id
,
callback
:
function
(
e
){
t
.
teacher_id
=
e
},
expression
:
"teacher_id"
}},
t
.
_l
(
t
.
teacherList
,
function
(
t
,
e
){
return
i
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
t
.
teacher_name
,
value
:
t
.
teacher_id
}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
getClassList
}},[
t
.
_v
(
"
\n
搜索
\n
"
)])],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
staticStyle
:{
float
:
"right"
}},[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"success"
},
on
:{
click
:
t
.
onAdd
}},[
t
.
_v
(
"+添加班级"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
t
.
classList
&&
t
.
classList
.
length
>
0
?
i
(
"div"
,{
staticClass
:
"intro"
},[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"100px"
}},[
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"期数名称"
}},[
t
.
_v
(
t
.
_s
(
t
.
title
.
title
))])],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"可看课包数"
}},[
t
.
_v
(
t
.
_s
(
t
.
title
.
watch_num
))])],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"已看课包数"
}},[
t
.
_v
(
t
.
_s
(
t
.
title
.
has_watch_num
))])],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"开始时间"
}},[
t
.
_v
(
t
.
_s
(
t
.
title
.
start_at
))])],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"老师数量"
}},[
t
.
_v
(
t
.
_s
(
t
.
countObj
.
count_teacher_num
))])],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"预计学员总数"
}},[
t
.
_v
(
t
.
_s
(
t
.
countObj
.
count_max_join_num
))])],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"学员总数"
}},[
t
.
_v
(
t
.
_s
(
t
.
countObj
.
count_join_num
))])],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"结束时间"
}},[
t
.
_v
(
t
.
_s
(
t
.
title
.
over_at
))])],
1
)],
1
)],
1
)],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
classList
&&
0
!==
t
.
classList
.
length
?
t
.
_e
():
i
(
"div"
,[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"300px"
,
inline
:
""
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"暂无期数信息,请先选择期数"
}})],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"div"
,[
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
classList
}},[
i
(
"el-table-column"
,{
attrs
:{
prop
:
"teacher_name"
,
label
:
"班主任"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"班级类型"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"classTypeFilter"
)(
e
.
row
.
type
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"max_join_num"
,
label
:
"最大人数"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"join_num"
,
label
:
"现有人数"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
width
:
"250"
,
label
:
"操作"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
i
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"primary"
},
on
:{
click
:
function
(
i
){
t
.
showUser
(
e
.
row
)}}},[
t
.
_v
(
"班级成员"
)]),
t
.
_v
(
" "
),
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"warning"
},
on
:{
click
:
function
(
i
){
t
.
editClass
(
e
.
row
)}}},[
t
.
_v
(
"编辑"
)]),
t
.
_v
(
" "
),
t
.
$store
.
state
.
deletePermission
&&!
t
.
$store
.
state
.
readonly
?
i
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"danger"
},
on
:{
click
:
function
(
i
){
t
.
delClass
(
e
.
row
)}}},[
t
.
_v
(
"删除"
)]):
t
.
_e
()]}}])})],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"page"
,{
attrs
:{
nowPage
:
t
.
nowPage
,
total
:
t
.
total
,
limit
:
t
.
limit
},
on
:{
pageChange
:
t
.
onPageChange
}}),
t
.
_v
(
" "
),
i
(
"class-dialog"
,{
attrs
:{
dialogObj
:
t
.
dialogObj
},
on
:{
reflash
:
t
.
onReflash
}}),
t
.
_v
(
" "
),
i
(
"user-list"
,{
attrs
:{
userObj
:
t
.
userObj
},
on
:{
reflash
:
t
.
getClassList
}})],
1
)},
staticRenderFns
:[]};
var
m
=
i
(
"VU/8"
)(
u
,
f
,
!
1
,
function
(
t
){
i
(
"3nwV"
)},
"data-v-6a4cdeb0"
,
null
);
e
.
default
=
m
.
exports
}});
\ No newline at end of file
dist/static/js/14.bed9371e7a04b87f98c8.js
0 → 100644
View file @
b64994b3
webpackJsonp
([
14
],{
"2VsG"
:
function
(
t
,
e
){},
"3nwV"
:
function
(
t
,
e
){},
OX9A
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
i
(
"CCn6"
),
n
=
{
props
:[
"dialogObj"
],
data
:
function
(){
return
{
form
:{
teacher_id
:
""
,
max_join_num
:
""
},
teacherList
:[],
exitTeacherList
:[],
goodsList
:[],
periods
:{}}},
methods
:{
findDifferentArray
:
function
(
t
,
e
){
var
i
=
[];
return
t
.
forEach
(
function
(
t
){
-
1
===
e
.
findIndex
(
function
(
e
){
return
e
.
teacher_id
==
t
.
id
})
&&
i
.
push
(
t
)}),
i
},
getTeacher
:
function
(){
var
t
=
this
;
this
.
exitTeacherList
=
this
.
dialogObj
.
teacherList
.
length
>
0
?
this
.
dialogObj
.
teacherList
:[],
Object
(
s
.
_26
)().
then
(
function
(
e
){
t
.
exitTeacherList
.
length
>
0
?
t
.
teacherList
=
t
.
findDifferentArray
(
e
.
list
,
t
.
exitTeacherList
):
t
.
teacherList
=
e
.
list
})},
getTeacherByPeriods
:
function
(){
var
t
=
this
;
Object
(
s
.
_18
)(
this
.
periods
.
id
).
then
(
function
(
e
){
t
.
exitTeacherList
=
e
,
Object
(
s
.
_26
)().
then
(
function
(
e
){
t
.
exitTeacherList
.
length
>
0
?
t
.
teacherList
=
t
.
findDifferentArray
(
e
.
list
,
t
.
exitTeacherList
):
t
.
teacherList
=
e
.
list
})})},
initPage
:
function
(){
var
t
=
this
;
switch
(
this
.
periods
=
this
.
dialogObj
.
periods
,
this
.
getTeacher
(),
this
.
dialogObj
.
type
){
case
0
:
this
.
dialogObj
.
periodsId
||
this
.
getPeriodList
(),
this
.
form
=
{
teacher_id
:
""
,
max_join_num
:
""
};
break
;
case
1
:
Object
(
s
.
_3
)(
this
.
dialogObj
.
id
).
then
(
function
(
e
){
t
.
form
=
{
teacher_id
:
e
.
teacher_id
,
max_join_num
:
e
.
max_join_num
}})}},
getPeriodList
:
function
(){
var
t
=
this
;
Object
(
s
.
_11
)().
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
children
=
[]}),
t
.
goodsList
=
e
.
list
,
t
.
periods
||
Object
(
s
.
_17
)({
goods_id
:
t
.
goodsList
[
0
].
id
}).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
t
.
goodsList
[
0
].
children
=
e
.
list
,
t
.
periods
=
e
.
list
[
0
]})})},
onSave
:
function
(){
var
t
=
this
;
switch
(
this
.
dialogObj
.
type
){
case
0
:
var
e
=
this
.
dialogObj
.
periodsId
?
this
.
dialogObj
.
periodsId
:
this
.
periods
.
id
;
Object
(
s
.
f
)(
e
,
this
.
form
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
t
.
$emit
(
"reflash"
,
t
.
periods
),
t
.
dialogObj
.
show
=!
1
});
break
;
case
1
:
Object
(
s
.
L
)(
this
.
dialogObj
.
id
,
this
.
form
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
t
.
$emit
(
"reflash"
,
t
.
periods
),
t
.
dialogObj
.
show
=!
1
})}},
handleItemChange
:
function
(
t
){
var
e
=
this
;
Object
(
s
.
_17
)({
goods_id
:
t
[
0
]}).
then
(
function
(
i
){
i
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
e
.
goodsList
.
find
(
function
(
e
){
return
e
.
id
===
t
[
0
]}).
children
=
i
.
list
})},
changePeriods
:
function
(
t
){
if
(
t
.
length
>
1
){
var
e
=
this
.
goodsList
.
find
(
function
(
e
){
return
e
.
id
===
t
[
0
]});
this
.
periods
=
e
.
children
.
find
(
function
(
e
){
return
e
.
id
===
t
[
1
]}),
this
.
getTeacherByPeriods
()}}},
watch
:{
dialogObj
:
function
(
t
){
this
.
initPage
()}}},
o
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"el-dialog"
,{
attrs
:{
title
:
t
.
dialogObj
.
title
,
visible
:
t
.
dialogObj
.
show
},
on
:{
"update:visible"
:
function
(
e
){
t
.
$set
(
t
.
dialogObj
,
"show"
,
e
)}}},[
i
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
t
.
form
,
"label-width"
:
"120px"
}},[
this
.
dialogObj
.
periodsId
?
t
.
_e
():
i
(
"el-form-item"
,{
attrs
:{
label
:
"期数"
}},[
i
(
"el-cascader"
,{
attrs
:{
options
:
t
.
goodsList
,
props
:{
value
:
"id"
,
label
:
"name"
}},
on
:{
"active-item-change"
:
t
.
handleItemChange
,
change
:
t
.
changePeriods
}})],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"老师"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form
.
teacher_id
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"teacher_id"
,
e
)},
expression
:
"form.teacher_id"
}},
t
.
_l
(
t
.
teacherList
,
function
(
t
,
e
){
return
i
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
t
.
name
,
value
:
t
.
id
}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"最大学员"
}},[
i
(
"el-input-number"
,{
model
:{
value
:
t
.
form
.
max_join_num
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"max_join_num"
,
e
)},
expression
:
"form.max_join_num"
}})],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
i
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
dialogObj
.
show
=!
1
}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onSave
}},[
t
.
_v
(
"确 定"
)])],
1
)],
1
)},
staticRenderFns
:[]};
var
a
=
i
(
"VU/8"
)(
n
,
o
,
!
1
,
function
(
t
){
i
(
"2VsG"
)},
"data-v-68a62bcd"
,
null
).
exports
,
r
=
i
(
"kmJW"
),
l
=
i
(
"+TkF"
);
function
c
(
t
,
e
,
i
){
return
e
in
t
?
Object
.
defineProperty
(
t
,
e
,{
value
:
i
,
enumerable
:
!
0
,
configurable
:
!
0
,
writable
:
!
0
}):
t
[
e
]
=
i
,
t
}
var
d
=
{
name
:
"userList"
,
props
:[
"userObj"
],
data
:
function
(){
var
t
;
return
c
(
t
=
{
userTable
:[],
addId
:
""
,
addShow
:
!
1
,
searchFrom
:{},
userList
:[],
nowPage
:
1
,
limit
:
5
,
total
:
0
},
"searchFrom"
,{
userId
:
""
,
nickName
:
""
,
mobile
:
""
}),
c
(
t
,
"multipleSelection"
,[]),
t
},
components
:{
page
:
r
.
a
},
filters
:{
isOrNot
:
function
(
t
){
return
l
.
h
[
t
]}},
methods
:{
initPage
:
function
(){
var
t
=
this
;
Object
(
s
.
_5
)(
this
.
userObj
.
classId
).
then
(
function
(
e
){
t
.
userTable
=
e
.
list
})},
changeUser
:
function
(
t
){
var
e
=
this
;
this
.
$confirm
(
"此操作将修改成员看课权限?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
p
)(
t
.
id
,{
is_view_course
:
0
===
t
.
is_view_course
?
1
:
0
}).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})}),
e
.
initPage
()})},
onDel
:
function
(
t
){
var
e
=
this
;
this
.
$confirm
(
"此操作将删除该成员?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
w
)(
t
.
id
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
}),
e
.
initPage
()})})},
onAdd
:
function
(){
var
t
=
this
;
0
!==
this
.
multipleSelection
.
length
?
1
===
this
.
multipleSelection
.
length
?(
this
.
addId
=
this
.
multipleSelection
[
0
].
user_id
,
this
.
addId
&&
Object
(
s
.
g
)(
this
.
userObj
.
classId
,
this
.
addId
,{
is_buy
:
0
}).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
t
.
addShow
=!
1
,
t
.
initPage
()})):
this
.
$message
({
type
:
"error"
,
message
:
"只能选择一个用户!"
}):
this
.
$message
({
type
:
"error"
,
message
:
"请选择用户!"
})},
onAddUser
:
function
(){
this
.
addShow
=!
0
,
this
.
getUser
()},
getUser
:
function
(){
var
t
=
this
,
e
=
{
page
:
this
.
nowPage
,
limit
:
this
.
limit
};
this
.
searchFrom
.
userId
&&
(
e
.
user_id
=
this
.
searchFrom
.
userId
),
this
.
searchFrom
.
nickName
&&
(
e
.
nickname
=
this
.
searchFrom
.
nickName
),
this
.
searchFrom
.
mobile
&&
(
e
.
mobile
=
this
.
searchFrom
.
mobile
),
Object
(
s
.
_28
)(
e
).
then
(
function
(
e
){
t
.
userList
=
e
.
list
,
t
.
total
=
e
.
total
})},
onPageChange
:
function
(
t
){
this
.
nowPage
=
t
,
this
.
getUser
()},
handleSelectionChange
:
function
(
t
){
this
.
multipleSelection
=
t
},
editComment
:
function
(
t
,
e
){
var
i
=
this
;
this
.
$prompt
(
""
,
"编辑备注"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
inputValue
:
e
}).
then
(
function
(
e
){
var
n
=
e
.
value
;
Object
(
s
.
k
)(
t
,{
desc
:
n
}).
then
(
function
(
t
){
i
.
$message
({
type
:
"success"
,
message
:
"编辑备注成功"
}),
i
.
initPage
()})})}},
watch
:{
userObj
:
function
(){
this
.
initPage
()}}},
h
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"el-dialog"
,{
attrs
:{
title
:
t
.
userObj
.
title
,
visible
:
t
.
userObj
.
show
,
modal
:
!
1
,
fullscreen
:
!
0
},
on
:{
"update:visible"
:
function
(
e
){
t
.
$set
(
t
.
userObj
,
"show"
,
e
)}}},[
i
(
"div"
,[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"90px"
,
inline
:
""
}},[
i
(
"el-form-item"
,{
staticStyle
:{
float
:
"right"
}},[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"success"
},
on
:{
click
:
t
.
onAddUser
}},[
t
.
_v
(
"+添加用户"
)])],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
userTable
}},[
i
(
"el-table-column"
,{
attrs
:{
label
:
"用户"
,
className
:
"f-c"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
i
(
"img"
,{
staticStyle
:{
"margin-right"
:
"5px"
,
width
:
"50px"
,
height
:
"50px"
,
"border-radius"
:
"50px"
},
attrs
:{
src
:
e
.
row
.
avatar
}}),
t
.
_v
(
" "
+
t
.
_s
(
e
.
row
.
nickname
)
+
"(ID:"
+
t
.
_s
(
e
.
row
.
user_id
)
+
")
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"是否购买"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
0
===
e
.
row
.
is_buy
?
"否"
:
"是"
)
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"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_view_course
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"desc"
,
label
:
"备注"
}}),
t
.
_v
(
" "
),
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"300"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"warning"
,
size
:
"mini"
},
on
:{
click
:
function
(
i
){
t
.
editComment
(
e
.
row
.
id
,
e
.
row
.
desc
)}}},[
t
.
_v
(
"编辑备注"
)]),
t
.
_v
(
" "
),
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"warning"
,
size
:
"mini"
},
on
:{
click
:
function
(
i
){
t
.
changeUser
(
e
.
row
)}}},[
t
.
_v
(
"更改看课权限"
)]),
t
.
_v
(
" "
),
t
.
$store
.
state
.
deletePermission
&&!
t
.
$store
.
state
.
readonly
?
i
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
size
:
"mini"
},
on
:{
click
:
function
(
i
){
t
.
onDel
(
e
.
row
)}}},[
t
.
_v
(
"删除"
)]):
t
.
_e
()]}}])})],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-dialog"
,{
attrs
:{
modal
:
!
1
,
visible
:
t
.
addShow
},
on
:{
"update:visible"
:
function
(
e
){
t
.
addShow
=
e
}}},[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"90px"
}},[
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
8
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"ID"
}},[
i
(
"el-input"
,{
model
:{
value
:
t
.
searchFrom
.
userId
,
callback
:
function
(
e
){
t
.
$set
(
t
.
searchFrom
,
"userId"
,
e
)},
expression
:
"searchFrom.userId"
}})],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
8
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"昵称"
}},[
i
(
"el-input"
,{
model
:{
value
:
t
.
searchFrom
.
nickName
,
callback
:
function
(
e
){
t
.
$set
(
t
.
searchFrom
,
"nickName"
,
e
)},
expression
:
"searchFrom.nickName"
}})],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
8
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"电话"
}},[
i
(
"el-input"
,{
model
:{
value
:
t
.
searchFrom
.
mobile
,
callback
:
function
(
e
){
t
.
$set
(
t
.
searchFrom
,
"mobile"
,
e
)},
expression
:
"searchFrom.mobile"
}})],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
8
,
offset
:
16
}},[
i
(
"el-form-item"
,[
i
(
"el-button"
,{
staticStyle
:{
float
:
"right"
},
attrs
:{
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
getUser
}},[
t
.
_v
(
"搜索"
)])],
1
)],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-table"
,{
ref
:
"multipleTable"
,
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
userList
},
on
:{
"selection-change"
:
t
.
handleSelectionChange
}},[
i
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
className
:
"f-c"
,
label
:
"用户"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
i
(
"img"
,{
staticStyle
:{
"margin-right"
:
"5px"
,
width
:
"50px"
,
height
:
"50px"
,
"border-radius"
:
"50px"
},
attrs
:{
src
:
e
.
row
.
avatar
}}),
t
.
_v
(
t
.
_s
(
e
.
row
.
nickname
)
+
"(ID:"
+
t
.
_s
(
e
.
row
.
user_id
)
+
")
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"mobile"
,
label
:
"手机号"
}})],
1
),
t
.
_v
(
" "
),
i
(
"page"
,{
attrs
:{
total
:
t
.
total
,
limit
:
t
.
limit
},
on
:{
pageChange
:
t
.
onPageChange
}}),
t
.
_v
(
" "
),
i
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
i
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
addShow
=!
1
}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onAdd
}},[
t
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
u
=
{
data
:
function
(){
return
{
nowPage
:
1
,
total
:
0
,
limit
:
10
,
periodsId
:
null
,
goodsList
:[],
teacher_id
:
""
,
classList
:[],
title
:
""
,
countObj
:
""
,
teacherList
:[],
userObj
:{
classId
:
""
,
title
:
""
,
show
:
!
1
},
dialogObj
:{
show
:
!
1
,
title
:
"添加班级"
,
periodsId
:
""
,
type
:
0
,
id
:
0
},
selectedGoods
:[]}},
components
:{
UserList
:
i
(
"VU/8"
)(
d
,
h
,
!
1
,
function
(
t
){
i
(
"zZZ+"
)},
null
,
null
).
exports
,
classDialog
:
a
,
page
:
r
.
a
},
filters
:{
classTypeFilter
:
function
(
t
){
var
e
=
parseInt
(
t
);
return
1
===
e
?
"带班班级"
:
2
===
e
?
"观摩班级"
:
""
}},
mounted
:
function
(){
this
.
initPage
()},
methods
:{
initQuery
:
function
(){
var
t
=
this
,
e
=
this
.
$route
.
query
;
e
&&
e
.
goods_id
&&
e
.
periods_id
?(
this
.
selectedGoods
=
[
parseInt
(
e
.
goods_id
),
parseInt
(
e
.
periods_id
)],
Object
(
s
.
_17
)({
goods_id
:
this
.
selectedGoods
[
0
]}).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
t
.
goodsList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
0
]}).
children
=
e
.
list
;
var
i
=
t
.
goodsList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
0
]});
t
.
periods
=
i
.
children
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
1
]}),
t
.
teacher_id
=
""
,
t
.
getClassList
()})):
Object
(
s
.
_17
)({
goods_id
:
this
.
goodsList
[
0
].
id
}).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
t
.
goodsList
[
0
].
children
=
e
.
list
,
t
.
periods
=
e
.
list
[
0
]})},
initPage
:
function
(){
var
t
=
this
;
Object
(
s
.
_11
)().
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
children
=
[]}),
t
.
goodsList
=
e
.
list
,
t
.
initQuery
()})},
showUser
:
function
(
t
){
this
.
userObj
=
{
classId
:
t
.
id
,
show
:
!
0
,
title
:
t
.
teacher_name
+
"班级用户列表"
}},
getTeacher
:
function
(){
var
t
=
this
;
this
.
periods
&&
Object
(
s
.
_18
)(
this
.
periods
.
id
).
then
(
function
(
e
){
t
.
teacherList
=
e
})},
changePeriods
:
function
(
t
){
if
(
t
.
length
>
1
){
var
e
=
this
.
goodsList
.
find
(
function
(
e
){
return
e
.
id
===
t
[
0
]});
this
.
periods
=
e
.
children
.
find
(
function
(
e
){
return
e
.
id
===
t
[
1
]}),
this
.
teacher_id
=
""
,
this
.
getTeacher
()}},
onPageChange
:
function
(
t
){
this
.
nowPage
=
t
,
this
.
getClassList
()},
onReflash
:
function
(
t
){
this
.
periods
=
t
,
this
.
selectedGoods
=
[
t
.
goods_id
,
t
.
id
],
this
.
getClassList
()},
getClassList
:
function
(){
var
t
=
this
;
if
(
this
.
periods
){
this
.
getTeacher
();
var
e
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
teacher_id
&&
(
e
.
teacher_id
=
this
.
teacher_id
),
Object
(
s
.
_4
)(
this
.
periods
.
id
,
e
).
then
(
function
(
e
){
t
.
title
=
e
.
periods
,
t
.
countObj
=
e
.
count
?
e
.
count
:
""
,
t
.
classList
=
e
.
list
,
t
.
total
=
e
.
total
})}},
handleItemChange
:
function
(
t
){
var
e
=
this
;
Object
(
s
.
_17
)({
goods_id
:
t
[
0
]}).
then
(
function
(
i
){
i
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
e
.
goodsList
.
find
(
function
(
e
){
return
e
.
id
===
t
[
0
]}).
children
=
i
.
list
})},
delClass
:
function
(
t
){
var
e
=
this
;
this
.
$confirm
(
"此操作将删除该班级?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
s
.
v
)(
t
.
id
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
}),
e
.
getClassList
()})})},
onAdd
:
function
(){
this
.
dialogObj
=
{
show
:
!
0
,
title
:
"添加班级"
,
type
:
0
,
teacherList
:
this
.
teacherList
?
this
.
teacherList
:[]},
this
.
periods
&&
(
this
.
dialogObj
.
periods
=
this
.
periods
,
this
.
dialogObj
.
periodsId
=
this
.
periods
.
id
)},
editClass
:
function
(
t
){
this
.
dialogObj
=
{
show
:
!
0
,
title
:
"编辑班级"
,
type
:
1
,
id
:
t
.
id
,
teacherList
:
this
.
teacherList
?
this
.
teacherList
:[]},
this
.
periods
&&
(
this
.
dialogObj
.
periods
=
this
.
periods
,
this
.
dialogObj
.
periodsId
=
this
.
periods
.
id
)}}},
f
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"class"
},[
i
(
"div"
,{
staticClass
:
"form-block"
},[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"90px"
,
inline
:
""
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"期数"
}},[
i
(
"el-cascader"
,{
attrs
:{
options
:
t
.
goodsList
,
props
:{
value
:
"id"
,
label
:
"name"
}},
on
:{
"active-item-change"
:
t
.
handleItemChange
,
change
:
t
.
changePeriods
},
model
:{
value
:
t
.
selectedGoods
,
callback
:
function
(
e
){
t
.
selectedGoods
=
e
},
expression
:
"selectedGoods"
}})],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"老师"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
clearable
:
""
},
model
:{
value
:
t
.
teacher_id
,
callback
:
function
(
e
){
t
.
teacher_id
=
e
},
expression
:
"teacher_id"
}},
t
.
_l
(
t
.
teacherList
,
function
(
t
,
e
){
return
i
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
t
.
teacher_name
,
value
:
t
.
teacher_id
}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
getClassList
}},[
t
.
_v
(
"
\n
搜索
\n
"
)])],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
staticStyle
:{
float
:
"right"
}},[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"success"
},
on
:{
click
:
t
.
onAdd
}},[
t
.
_v
(
"+添加班级"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
t
.
classList
&&
t
.
classList
.
length
>
0
?
i
(
"div"
,{
staticClass
:
"intro"
},[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"100px"
}},[
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"期数名称"
}},[
t
.
_v
(
t
.
_s
(
t
.
title
.
title
))])],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"可看课包数"
}},[
t
.
_v
(
t
.
_s
(
t
.
title
.
watch_num
))])],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"已看课包数"
}},[
t
.
_v
(
t
.
_s
(
t
.
title
.
has_watch_num
))])],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"开始时间"
}},[
t
.
_v
(
t
.
_s
(
t
.
title
.
start_at
))])],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"老师数量"
}},[
t
.
_v
(
t
.
_s
(
t
.
countObj
.
count_teacher_num
))])],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"预计学员总数"
}},[
t
.
_v
(
t
.
_s
(
t
.
countObj
.
count_max_join_num
))])],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"学员总数"
}},[
t
.
_v
(
t
.
_s
(
t
.
countObj
.
count_join_num
))])],
1
),
t
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
6
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"结束时间"
}},[
t
.
_v
(
t
.
_s
(
t
.
title
.
over_at
))])],
1
)],
1
)],
1
)],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
classList
&&
0
!==
t
.
classList
.
length
?
t
.
_e
():
i
(
"div"
,[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"300px"
,
inline
:
""
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"暂无期数信息,请先选择期数"
}})],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"div"
,[
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
classList
}},[
i
(
"el-table-column"
,{
attrs
:{
prop
:
"teacher_name"
,
label
:
"班主任"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"班级类型"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"classTypeFilter"
)(
e
.
row
.
type
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"max_join_num"
,
label
:
"最大人数"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"join_num"
,
label
:
"现有人数"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
width
:
"250"
,
label
:
"操作"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
i
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"primary"
},
on
:{
click
:
function
(
i
){
t
.
showUser
(
e
.
row
)}}},[
t
.
_v
(
"班级成员"
)]),
t
.
_v
(
" "
),
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"warning"
},
on
:{
click
:
function
(
i
){
t
.
editClass
(
e
.
row
)}}},[
t
.
_v
(
"编辑"
)]),
t
.
_v
(
" "
),
t
.
$store
.
state
.
deletePermission
&&!
t
.
$store
.
state
.
readonly
?
i
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"danger"
},
on
:{
click
:
function
(
i
){
t
.
delClass
(
e
.
row
)}}},[
t
.
_v
(
"删除"
)]):
t
.
_e
()]}}])})],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"page"
,{
attrs
:{
nowPage
:
t
.
nowPage
,
total
:
t
.
total
,
limit
:
t
.
limit
},
on
:{
pageChange
:
t
.
onPageChange
}}),
t
.
_v
(
" "
),
i
(
"class-dialog"
,{
attrs
:{
dialogObj
:
t
.
dialogObj
},
on
:{
reflash
:
t
.
onReflash
}}),
t
.
_v
(
" "
),
i
(
"user-list"
,{
attrs
:{
userObj
:
t
.
userObj
},
on
:{
reflash
:
t
.
getClassList
}})],
1
)},
staticRenderFns
:[]};
var
m
=
i
(
"VU/8"
)(
u
,
f
,
!
1
,
function
(
t
){
i
(
"3nwV"
)},
"data-v-6a4cdeb0"
,
null
);
e
.
default
=
m
.
exports
},
"zZZ+"
:
function
(
t
,
e
){}});
\ No newline at end of file
dist/static/js/app.
5ce842e920319a3aea9e
.js
→
dist/static/js/app.
75c962a190368bd930d8
.js
View file @
b64994b3
webpackJsonp
([
31
],{
IcnI
:
function
(
e
,
n
,
t
){
"use strict"
;
var
o
=
t
(
"7+uW"
),
a
=
t
(
"NYxO"
),
r
=
t
(
"zSLJ"
),
i
=
{
setToken
:
function
(
e
,
n
){
e
.
token
=
n
,
r
.
a
.
set
(
"cc_token"
,
n
)},
setUserName
:
function
(
e
,
n
){
e
.
userName
=
n
,
r
.
a
.
set
(
"cc_user_name"
,
n
)},
setPermission
:
function
(
e
,
n
){
e
.
progressList
=
n
,
localStorage
.
setItem
(
"permission"
,
JSON
.
stringify
(
n
))},
setMenu
:
function
(
e
,
n
){
e
.
menuList
=
n
},
readonly
:
function
(
e
,
n
){
e
.
readonly
=
n
},
deletePermission
:
function
(
e
,
n
){
e
.
deletePermission
=
n
},
mainCanShow
:
function
(
e
){
e
.
mainLoad
=!
1
},
mainUnShow
:
function
(
e
){
e
.
mainLoad
=!
0
},
changeParentRouter
:
function
(
e
,
n
){
e
.
menuList
.
find
(
function
(
e
){
return
e
.
name
===
n
.
name
}).
routerName
=
n
.
to
.
name
},
progress
:
function
(
e
,
n
){
switch
(
n
.
type
){
case
"new"
:
e
.
progressList
.
push
({
num
:
0
,
id
:
n
.
id
});
break
;
case
"change"
:
e
.
progressList
.
find
(
function
(
e
){
return
e
.
id
===
n
.
id
}).
num
=
n
.
num
;
break
;
case
"delete"
:
e
.
progressList
.
find
(
function
(
e
){
return
e
.
id
===
n
.
id
})}}},
u
=
{
setToken
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"setToken"
,
n
)},
setUserName
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"setUserName"
,
n
)},
setProgress
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"progress"
,
n
)},
setPermission
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"setPermission"
,
n
)},
setMenu
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"setMenu"
,
n
)},
readonly
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"readonly"
,
n
)},
deletePermission
:
function
(
e
,
n
){
var
t
=
e
.
commit
;
console
.
log
(
n
),
t
(
"deletePermission"
,
n
)}};
o
.
default
.
use
(
a
.
a
);
n
.
a
=
new
a
.
a
.
Store
({
state
:{
show
:
!
1
,
userName
:
""
,
token
:
""
,
permission
:
!
1
,
readonly
:
!
0
,
deletePermission
:
!
1
,
mainLoad
:
!
0
,
menuList
:[],
menuType
:
!
1
,
nowTab
:
"first"
,
progressList
:[],
openedTab
:[{
value
:
"首页"
,
routerName
:
"first"
,
name
:
"first"
,
delNo
:
!
0
,
path
:
"/index"
}]},
mutations
:
i
,
actions
:
u
})},
NHnr
:
function
(
e
,
n
,
t
){
"use strict"
;
Object
.
defineProperty
(
n
,
"__esModule"
,{
value
:
!
0
});
var
o
=
t
(
"7+uW"
),
a
=
[{
name
:
""
,
value
:
"教研管理"
,
icon
:
"icon-material"
,
list
:[{
value
:
"教材列表"
,
routerName
:
"resources"
,
path
:
"/resources"
,
cover
:
"1-1"
,
router
:{
path
:
"/resources"
,
name
:
"resources"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
1
)]).
then
(
function
(){
var
n
=
[
t
(
"z5EG"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"商品课程"
,
icon
:
"icon-shangpin1"
,
list
:[{
value
:
"课程列表"
,
routerName
:
"lesson"
,
path
:
"/lesson"
,
cover
:
"2-1"
,
router
:{
path
:
"/lesson"
,
name
:
"lesson"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
10
)]).
then
(
function
(){
var
n
=
[
t
(
"AbSL"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"商品列表"
,
routerName
:
"shop"
,
path
:
"/shop"
,
cover
:
"4-1"
,
router
:{
path
:
"/shop"
,
name
:
"shop"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
18
)]).
then
(
function
(){
var
n
=
[
t
(
"1djJ"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"期数管理"
,
icon
:
"icon-kecheng"
,
list
:[{
value
:
"期数列表"
,
routerName
:
"periods"
,
path
:
"/periods"
,
cover
:
"2-2"
,
router
:{
path
:
"/periods"
,
name
:
"periods"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
9
)]).
then
(
function
(){
var
n
=
[
t
(
"ayGs"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"班级列表"
,
routerName
:
"class"
,
path
:
"/class"
,
cover
:
"2-3"
,
router
:{
path
:
"/class"
,
name
:
"class"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
13
)]).
then
(
function
(){
var
n
=
[
t
(
"OX9A"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"不上课日期"
,
routerName
:
"noLesson"
,
path
:
"/noLesson"
,
cover
:
"2-4"
,
router
:{
path
:
"/noLesson"
,
name
:
"noLesson"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
17
)]).
then
(
function
(){
var
n
=
[
t
(
"sg/1"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"人员管理"
,
icon
:
"icon-laoshi"
,
list
:[{
value
:
"教师列表"
,
routerName
:
"teacher"
,
path
:
"/teacher"
,
cover
:
"3-1"
,
router
:{
path
:
"/teacher"
,
name
:
"teacher"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
15
)]).
then
(
function
(){
var
n
=
[
t
(
"Y0Vi"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"用户列表"
,
routerName
:
"user"
,
path
:
"/user"
,
cover
:
"3-2"
,
router
:{
path
:
"/user"
,
name
:
"user"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
8
)]).
then
(
function
(){
var
n
=
[
t
(
"jFLA"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"订单管理"
,
icon
:
"icon-dingdan"
,
list
:[{
value
:
"订单列表"
,
routerName
:
"order"
,
path
:
"/order"
,
cover
:
"5-1"
,
router
:{
path
:
"/order"
,
name
:
"order"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
2
)]).
then
(
function
(){
var
n
=
[
t
(
"2qmY"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"退款列表"
,
routerName
:
"refund"
,
path
:
"/refund"
,
cover
:
"5-2"
,
router
:{
path
:
"/refund"
,
name
:
"refund"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
25
)]).
then
(
function
(){
var
n
=
[
t
(
"89rD"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"提现列表"
,
routerName
:
"putForward"
,
path
:
"/putForward"
,
cover
:
"5-3"
,
router
:{
path
:
"/putForward"
,
name
:
"putForward"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
21
)]).
then
(
function
(){
var
n
=
[
t
(
"F5pf"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"发货管理"
,
routerName
:
"consignment"
,
path
:
"/consignment"
,
cover
:
"5-4"
,
router
:{
path
:
"/consignment"
,
name
:
"consignment"
,
component
:
function
(
e
){
return
t
.
e
(
24
).
then
(
function
(){
var
n
=
[
t
(
"usUK"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"实物管理"
,
icon
:
"icon-shu"
,
list
:[{
value
:
"单品列表"
,
routerName
:
"single"
,
path
:
"/single"
,
cover
:
"6-1"
,
router
:{
path
:
"/single"
,
name
:
"single"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
11
)]).
then
(
function
(){
var
n
=
[
t
(
"B31M"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"盒子列表"
,
routerName
:
"box"
,
path
:
"/box"
,
cover
:
"6-2"
,
router
:{
path
:
"/box"
,
name
:
"box"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
7
)]).
then
(
function
(){
var
n
=
[
t
(
"+vCD"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"公众号"
,
icon
:
"icon-ai-weixin"
,
list
:[{
value
:
"关注自动回复"
,
routerName
:
"focusReply"
,
path
:
"/focusReply"
,
cover
:
"7-1"
,
router
:{
path
:
"/focusReply"
,
name
:
"focusReply"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
5
)]).
then
(
function
(){
var
n
=
[
t
(
"CK6D"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"关键词回复"
,
routerName
:
"autoReply"
,
path
:
"/autoReply"
,
cover
:
"7-2"
,
router
:{
path
:
"/autoReply"
,
name
:
"autoReply"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
4
)]).
then
(
function
(){
var
n
=
[
t
(
"65NY"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"公众号菜单"
,
routerName
:
"weChat"
,
path
:
"/weChat"
,
cover
:
"7-3"
,
router
:{
path
:
"/weChat"
,
name
:
"weChat"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
12
)]).
then
(
function
(){
var
n
=
[
t
(
"q5av"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"素材管理"
,
routerName
:
"weChatResource"
,
path
:
"/weChatResource"
,
cover
:
"7-4"
,
router
:{
path
:
"/weChatResource"
,
name
:
"weChatResource"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
26
)]).
then
(
function
(){
var
n
=
[
t
(
"Xhqp"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"Banner管理"
,
routerName
:
"banner"
,
path
:
"/banner"
,
cover
:
"7-5"
,
router
:{
path
:
"/banner"
,
name
:
"banner"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
16
)]).
then
(
function
(){
var
n
=
[
t
(
"CGL6"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"系统管理"
,
icon
:
"icon-shezhi"
,
list
:[{
value
:
"账号管理"
,
routerName
:
"admin"
,
path
:
"/admin"
,
cover
:
"8-1"
,
router
:{
path
:
"/admin"
,
name
:
"admin"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
23
)]).
then
(
function
(){
var
n
=
[
t
(
"+jTk"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"角色管理"
,
routerName
:
"role"
,
path
:
"/role"
,
cover
:
"8-2"
,
router
:{
path
:
"/role"
,
name
:
"role"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
29
)]).
then
(
function
(){
var
n
=
[
t
(
"Vt1u"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"菜单管理"
,
routerName
:
"menu"
,
path
:
"/menu"
,
cover
:
"8-3"
,
router
:{
path
:
"/menu"
,
name
:
"menu"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
22
)]).
then
(
function
(){
var
n
=
[
t
(
"aTXs"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"系统配置"
,
routerName
:
"sysConfig"
,
path
:
"/sysConfig"
,
cover
:
"8-4"
,
router
:{
path
:
"/sysConfig"
,
name
:
"sysConfig"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
20
)]).
then
(
function
(){
var
n
=
[
t
(
"gaNG"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"操作日志"
,
routerName
:
"adminLog"
,
path
:
"/adminLog"
,
cover
:
"8-5"
,
router
:{
path
:
"/adminLog"
,
name
:
"adminLog"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
27
)]).
then
(
function
(){
var
n
=
[
t
(
"WZgi"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]}],
r
=
{
name
:
"App"
,
data
:
function
(){
return
{}},
mounted
:
function
(){
var
e
=
this
,
n
=
this
.
$store
.
state
.
progressList
,
t
=
[];
this
.
$router
.
options
.
routes
[
0
].
children
=
[],
a
.
forEach
(
function
(
o
){
var
a
=!
1
,
r
=
[];
o
.
list
.
forEach
(
function
(
t
){
var
o
=
n
.
find
(
function
(
e
){
return
e
.
cover
===
t
.
cover
});
o
&&
(
t
.
router
.
meta
=
{},
t
.
router
.
meta
.
readonly
=
o
.
readonly
,
t
.
router
.
meta
.
delete
=!!
o
.
delete
,
r
.
push
(
t
),
e
.
$router
.
options
.
routes
[
0
].
children
.
push
(
t
.
router
),
a
=!
0
)}),
a
&&
(
o
.
list
=
r
,
t
.
push
(
o
))}),
this
.
$router
.
addRoutes
(
this
.
$router
.
options
.
routes
),
this
.
$store
.
dispatch
(
"setMenu"
,
t
)}},
i
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
n
=
this
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
attrs
:{
id
:
"app"
}},[
n
(
"router-view"
)],
1
)},
staticRenderFns
:[]};
var
u
=
t
(
"VU/8"
)(
r
,
i
,
!
1
,
function
(
e
){
t
(
"Rjbg"
)},
null
,
null
).
exports
,
c
=
t
(
"YaEn"
),
s
=
t
(
"zL8q"
),
l
=
t
.
n
(
s
),
p
=
(
t
(
"tvR6"
),
t
(
"IcnI"
));
o
.
default
.
use
(
l
.
a
),
o
.
default
.
config
.
productionTip
=!
1
,
new
o
.
default
({
el
:
"#app"
,
store
:
p
.
a
,
router
:
c
.
a
,
components
:{
App
:
u
},
template
:
"<App/>"
})},
Rjbg
:
function
(
e
,
n
){},
YaEn
:
function
(
e
,
n
,
t
){
"use strict"
;
var
o
=
t
(
"7+uW"
),
a
=
t
(
"IcnI"
),
r
=
t
(
"/ocq"
),
i
=
t
(
"zSLJ"
);
o
.
default
.
use
(
r
.
a
);
var
u
=
new
r
.
a
({
routes
:[{
path
:
"/"
,
name
:
"index"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
6
)]).
then
(
function
(){
var
n
=
[
t
(
"jHcp"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)},
redirect
:{
name
:
"first"
},
children
:[{
path
:
""
,
name
:
"first"
,
component
:
function
(
e
){
return
t
.
e
(
3
).
then
(
function
(){
var
n
=
[
t
(
"sJm1"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}},{
path
:
"/userDetail/:id"
,
name
:
"userDetail"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
14
)]).
then
(
function
(){
var
n
=
[
t
(
"9PRC"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}},{
path
:
"/teacher/:id"
,
name
:
"teacherDetail"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
28
)]).
then
(
function
(){
var
n
=
[
t
(
"hFUZ"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}]},{
path
:
"/login"
,
name
:
"login"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
19
)]).
then
(
function
(){
var
n
=
[
t
(
"0HId"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)},
meta
:{
skip_auth
:
!
0
}}]});
u
.
beforeEach
(
function
(
e
,
n
,
t
){
if
(
a
.
a
.
commit
(
"mainCanShow"
),
i
.
a
.
get
(
"cc_token"
)
&&
(
a
.
a
.
dispatch
(
"setToken"
,
i
.
a
.
get
(
"cc_token"
)),
a
.
a
.
dispatch
(
"setPermission"
,
JSON
.
parse
(
localStorage
.
getItem
(
"permission"
))),
null
!==
i
.
a
.
get
(
"cc_user_name"
)
&&
a
.
a
.
dispatch
(
"setUserName"
,
i
.
a
.
get
(
"cc_user_name"
))),
a
.
a
.
state
.
nowTab
=
e
.
name
,
e
.
matched
.
length
>
1
&&
"first"
!==
e
.
name
){
for
(
var
o
=
void
0
,
r
=
0
;
r
<
a
.
a
.
state
.
menuList
.
length
;
r
++
)
for
(
var
u
=
a
.
a
.
state
.
menuList
[
r
],
c
=
0
;
c
<
u
.
list
.
length
;
c
++
){
var
s
=
u
.
list
[
c
];
s
.
path
===
e
.
path
&&
(
o
=
s
)}
a
.
a
.
state
.
openedTab
.
indexOf
(
o
)
<
0
&&
a
.
a
.
state
.
openedTab
.
push
(
o
)}
if
(
e
.
meta
.
readonly
?
a
.
a
.
dispatch
(
"readonly"
,
!
0
):
a
.
a
.
dispatch
(
"readonly"
,
!
1
),
"userDetail"
===
e
.
name
){
var
l
=
JSON
.
parse
(
localStorage
.
getItem
(
"permission"
)).
find
(
function
(
e
){
return
"3-2"
===
e
.
cover
}).
readonly
;
a
.
a
.
dispatch
(
"readonly"
,
l
)}
e
.
meta
.
delete
?
a
.
a
.
dispatch
(
"deletePermission"
,
!
0
):
a
.
a
.
dispatch
(
"deletePermission"
,
!
1
),
e
.
matched
.
some
(
function
(
e
){
return
!
0
!==
e
.
meta
.
skip_auth
})
&&!
a
.
a
.
state
.
token
?
t
({
path
:
"/login"
}):
t
()}),
n
.
a
=
u
},
tvR6
:
function
(
e
,
n
){},
zSLJ
:
function
(
e
,
n
,
t
){
"use strict"
;
n
.
a
=
{
set
:
function
(
e
,
n
,
t
){
var
o
=
new
Date
;
o
.
setTime
(
o
.
getTime
()
+
864
e5
*
t
),
window
.
document
.
cookie
=
e
+
"="
+
n
+
";path=/;expires="
+
o
.
toGMTString
()},
get
:
function
(
e
){
var
n
=
window
.
document
.
cookie
.
match
(
"(^|;) ?"
+
e
+
"=([^;]*)(;|$)"
);
return
n
?
n
[
2
]:
null
},
delete
:
function
(
e
){
this
.
set
(
e
,
""
,
-
1
)}}}},[
"NHnr"
]);
\ No newline at end of file
webpackJsonp
([
31
],{
IcnI
:
function
(
e
,
n
,
t
){
"use strict"
;
var
o
=
t
(
"7+uW"
),
a
=
t
(
"NYxO"
),
r
=
t
(
"zSLJ"
),
i
=
{
setToken
:
function
(
e
,
n
){
e
.
token
=
n
,
r
.
a
.
set
(
"cc_token"
,
n
)},
setUserName
:
function
(
e
,
n
){
e
.
userName
=
n
,
r
.
a
.
set
(
"cc_user_name"
,
n
)},
setPermission
:
function
(
e
,
n
){
e
.
progressList
=
n
,
localStorage
.
setItem
(
"permission"
,
JSON
.
stringify
(
n
))},
setMenu
:
function
(
e
,
n
){
e
.
menuList
=
n
},
readonly
:
function
(
e
,
n
){
e
.
readonly
=
n
},
deletePermission
:
function
(
e
,
n
){
e
.
deletePermission
=
n
},
mainCanShow
:
function
(
e
){
e
.
mainLoad
=!
1
},
mainUnShow
:
function
(
e
){
e
.
mainLoad
=!
0
},
changeParentRouter
:
function
(
e
,
n
){
e
.
menuList
.
find
(
function
(
e
){
return
e
.
name
===
n
.
name
}).
routerName
=
n
.
to
.
name
},
progress
:
function
(
e
,
n
){
switch
(
n
.
type
){
case
"new"
:
e
.
progressList
.
push
({
num
:
0
,
id
:
n
.
id
});
break
;
case
"change"
:
e
.
progressList
.
find
(
function
(
e
){
return
e
.
id
===
n
.
id
}).
num
=
n
.
num
;
break
;
case
"delete"
:
e
.
progressList
.
find
(
function
(
e
){
return
e
.
id
===
n
.
id
})}}},
u
=
{
setToken
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"setToken"
,
n
)},
setUserName
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"setUserName"
,
n
)},
setProgress
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"progress"
,
n
)},
setPermission
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"setPermission"
,
n
)},
setMenu
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"setMenu"
,
n
)},
readonly
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"readonly"
,
n
)},
deletePermission
:
function
(
e
,
n
){
var
t
=
e
.
commit
;
console
.
log
(
n
),
t
(
"deletePermission"
,
n
)}};
o
.
default
.
use
(
a
.
a
);
n
.
a
=
new
a
.
a
.
Store
({
state
:{
show
:
!
1
,
userName
:
""
,
token
:
""
,
permission
:
!
1
,
readonly
:
!
0
,
deletePermission
:
!
1
,
mainLoad
:
!
0
,
menuList
:[],
menuType
:
!
1
,
nowTab
:
"first"
,
progressList
:[],
openedTab
:[{
value
:
"首页"
,
routerName
:
"first"
,
name
:
"first"
,
delNo
:
!
0
,
path
:
"/index"
}]},
mutations
:
i
,
actions
:
u
})},
NHnr
:
function
(
e
,
n
,
t
){
"use strict"
;
Object
.
defineProperty
(
n
,
"__esModule"
,{
value
:
!
0
});
var
o
=
t
(
"7+uW"
),
a
=
[{
name
:
""
,
value
:
"教研管理"
,
icon
:
"icon-material"
,
list
:[{
value
:
"教材列表"
,
routerName
:
"resources"
,
path
:
"/resources"
,
cover
:
"1-1"
,
router
:{
path
:
"/resources"
,
name
:
"resources"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
1
)]).
then
(
function
(){
var
n
=
[
t
(
"z5EG"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"商品课程"
,
icon
:
"icon-shangpin1"
,
list
:[{
value
:
"课程列表"
,
routerName
:
"lesson"
,
path
:
"/lesson"
,
cover
:
"2-1"
,
router
:{
path
:
"/lesson"
,
name
:
"lesson"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
10
)]).
then
(
function
(){
var
n
=
[
t
(
"AbSL"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"商品列表"
,
routerName
:
"shop"
,
path
:
"/shop"
,
cover
:
"4-1"
,
router
:{
path
:
"/shop"
,
name
:
"shop"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
18
)]).
then
(
function
(){
var
n
=
[
t
(
"1djJ"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"期数管理"
,
icon
:
"icon-kecheng"
,
list
:[{
value
:
"期数列表"
,
routerName
:
"periods"
,
path
:
"/periods"
,
cover
:
"2-2"
,
router
:{
path
:
"/periods"
,
name
:
"periods"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
9
)]).
then
(
function
(){
var
n
=
[
t
(
"ayGs"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"班级列表"
,
routerName
:
"class"
,
path
:
"/class"
,
cover
:
"2-3"
,
router
:{
path
:
"/class"
,
name
:
"class"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
14
)]).
then
(
function
(){
var
n
=
[
t
(
"OX9A"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"不上课日期"
,
routerName
:
"noLesson"
,
path
:
"/noLesson"
,
cover
:
"2-4"
,
router
:{
path
:
"/noLesson"
,
name
:
"noLesson"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
17
)]).
then
(
function
(){
var
n
=
[
t
(
"sg/1"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"人员管理"
,
icon
:
"icon-laoshi"
,
list
:[{
value
:
"教师列表"
,
routerName
:
"teacher"
,
path
:
"/teacher"
,
cover
:
"3-1"
,
router
:{
path
:
"/teacher"
,
name
:
"teacher"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
15
)]).
then
(
function
(){
var
n
=
[
t
(
"Y0Vi"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"用户列表"
,
routerName
:
"user"
,
path
:
"/user"
,
cover
:
"3-2"
,
router
:{
path
:
"/user"
,
name
:
"user"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
8
)]).
then
(
function
(){
var
n
=
[
t
(
"jFLA"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"订单管理"
,
icon
:
"icon-dingdan"
,
list
:[{
value
:
"订单列表"
,
routerName
:
"order"
,
path
:
"/order"
,
cover
:
"5-1"
,
router
:{
path
:
"/order"
,
name
:
"order"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
2
)]).
then
(
function
(){
var
n
=
[
t
(
"2qmY"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"退款列表"
,
routerName
:
"refund"
,
path
:
"/refund"
,
cover
:
"5-2"
,
router
:{
path
:
"/refund"
,
name
:
"refund"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
25
)]).
then
(
function
(){
var
n
=
[
t
(
"89rD"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"提现列表"
,
routerName
:
"putForward"
,
path
:
"/putForward"
,
cover
:
"5-3"
,
router
:{
path
:
"/putForward"
,
name
:
"putForward"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
21
)]).
then
(
function
(){
var
n
=
[
t
(
"F5pf"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"发货管理"
,
routerName
:
"consignment"
,
path
:
"/consignment"
,
cover
:
"5-4"
,
router
:{
path
:
"/consignment"
,
name
:
"consignment"
,
component
:
function
(
e
){
return
t
.
e
(
24
).
then
(
function
(){
var
n
=
[
t
(
"usUK"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"实物管理"
,
icon
:
"icon-shu"
,
list
:[{
value
:
"单品列表"
,
routerName
:
"single"
,
path
:
"/single"
,
cover
:
"6-1"
,
router
:{
path
:
"/single"
,
name
:
"single"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
11
)]).
then
(
function
(){
var
n
=
[
t
(
"B31M"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"盒子列表"
,
routerName
:
"box"
,
path
:
"/box"
,
cover
:
"6-2"
,
router
:{
path
:
"/box"
,
name
:
"box"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
7
)]).
then
(
function
(){
var
n
=
[
t
(
"+vCD"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"公众号"
,
icon
:
"icon-ai-weixin"
,
list
:[{
value
:
"关注自动回复"
,
routerName
:
"focusReply"
,
path
:
"/focusReply"
,
cover
:
"7-1"
,
router
:{
path
:
"/focusReply"
,
name
:
"focusReply"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
5
)]).
then
(
function
(){
var
n
=
[
t
(
"CK6D"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"关键词回复"
,
routerName
:
"autoReply"
,
path
:
"/autoReply"
,
cover
:
"7-2"
,
router
:{
path
:
"/autoReply"
,
name
:
"autoReply"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
4
)]).
then
(
function
(){
var
n
=
[
t
(
"65NY"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"公众号菜单"
,
routerName
:
"weChat"
,
path
:
"/weChat"
,
cover
:
"7-3"
,
router
:{
path
:
"/weChat"
,
name
:
"weChat"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
12
)]).
then
(
function
(){
var
n
=
[
t
(
"q5av"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"素材管理"
,
routerName
:
"weChatResource"
,
path
:
"/weChatResource"
,
cover
:
"7-4"
,
router
:{
path
:
"/weChatResource"
,
name
:
"weChatResource"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
26
)]).
then
(
function
(){
var
n
=
[
t
(
"Xhqp"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"Banner管理"
,
routerName
:
"banner"
,
path
:
"/banner"
,
cover
:
"7-5"
,
router
:{
path
:
"/banner"
,
name
:
"banner"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
16
)]).
then
(
function
(){
var
n
=
[
t
(
"CGL6"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"系统管理"
,
icon
:
"icon-shezhi"
,
list
:[{
value
:
"账号管理"
,
routerName
:
"admin"
,
path
:
"/admin"
,
cover
:
"8-1"
,
router
:{
path
:
"/admin"
,
name
:
"admin"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
23
)]).
then
(
function
(){
var
n
=
[
t
(
"+jTk"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"角色管理"
,
routerName
:
"role"
,
path
:
"/role"
,
cover
:
"8-2"
,
router
:{
path
:
"/role"
,
name
:
"role"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
29
)]).
then
(
function
(){
var
n
=
[
t
(
"Vt1u"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"菜单管理"
,
routerName
:
"menu"
,
path
:
"/menu"
,
cover
:
"8-3"
,
router
:{
path
:
"/menu"
,
name
:
"menu"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
22
)]).
then
(
function
(){
var
n
=
[
t
(
"aTXs"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"系统配置"
,
routerName
:
"sysConfig"
,
path
:
"/sysConfig"
,
cover
:
"8-4"
,
router
:{
path
:
"/sysConfig"
,
name
:
"sysConfig"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
20
)]).
then
(
function
(){
var
n
=
[
t
(
"gaNG"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"操作日志"
,
routerName
:
"adminLog"
,
path
:
"/adminLog"
,
cover
:
"8-5"
,
router
:{
path
:
"/adminLog"
,
name
:
"adminLog"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
27
)]).
then
(
function
(){
var
n
=
[
t
(
"WZgi"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]}],
r
=
{
name
:
"App"
,
data
:
function
(){
return
{}},
mounted
:
function
(){
var
e
=
this
,
n
=
this
.
$store
.
state
.
progressList
,
t
=
[];
this
.
$router
.
options
.
routes
[
0
].
children
=
[],
a
.
forEach
(
function
(
o
){
var
a
=!
1
,
r
=
[];
o
.
list
.
forEach
(
function
(
t
){
var
o
=
n
.
find
(
function
(
e
){
return
e
.
cover
===
t
.
cover
});
o
&&
(
t
.
router
.
meta
=
{},
t
.
router
.
meta
.
readonly
=
o
.
readonly
,
t
.
router
.
meta
.
delete
=!!
o
.
delete
,
r
.
push
(
t
),
e
.
$router
.
options
.
routes
[
0
].
children
.
push
(
t
.
router
),
a
=!
0
)}),
a
&&
(
o
.
list
=
r
,
t
.
push
(
o
))}),
this
.
$router
.
addRoutes
(
this
.
$router
.
options
.
routes
),
this
.
$store
.
dispatch
(
"setMenu"
,
t
)}},
i
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
n
=
this
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
attrs
:{
id
:
"app"
}},[
n
(
"router-view"
)],
1
)},
staticRenderFns
:[]};
var
u
=
t
(
"VU/8"
)(
r
,
i
,
!
1
,
function
(
e
){
t
(
"Rjbg"
)},
null
,
null
).
exports
,
c
=
t
(
"YaEn"
),
s
=
t
(
"zL8q"
),
l
=
t
.
n
(
s
),
p
=
(
t
(
"tvR6"
),
t
(
"IcnI"
));
o
.
default
.
use
(
l
.
a
),
o
.
default
.
config
.
productionTip
=!
1
,
new
o
.
default
({
el
:
"#app"
,
store
:
p
.
a
,
router
:
c
.
a
,
components
:{
App
:
u
},
template
:
"<App/>"
})},
Rjbg
:
function
(
e
,
n
){},
YaEn
:
function
(
e
,
n
,
t
){
"use strict"
;
var
o
=
t
(
"7+uW"
),
a
=
t
(
"IcnI"
),
r
=
t
(
"/ocq"
),
i
=
t
(
"zSLJ"
);
o
.
default
.
use
(
r
.
a
);
var
u
=
new
r
.
a
({
routes
:[{
path
:
"/"
,
name
:
"index"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
6
)]).
then
(
function
(){
var
n
=
[
t
(
"jHcp"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)},
redirect
:{
name
:
"first"
},
children
:[{
path
:
""
,
name
:
"first"
,
component
:
function
(
e
){
return
t
.
e
(
3
).
then
(
function
(){
var
n
=
[
t
(
"sJm1"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}},{
path
:
"/userDetail/:id"
,
name
:
"userDetail"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
13
)]).
then
(
function
(){
var
n
=
[
t
(
"9PRC"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}},{
path
:
"/teacher/:id"
,
name
:
"teacherDetail"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
28
)]).
then
(
function
(){
var
n
=
[
t
(
"hFUZ"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}]},{
path
:
"/login"
,
name
:
"login"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
19
)]).
then
(
function
(){
var
n
=
[
t
(
"0HId"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)},
meta
:{
skip_auth
:
!
0
}}]});
u
.
beforeEach
(
function
(
e
,
n
,
t
){
if
(
a
.
a
.
commit
(
"mainCanShow"
),
i
.
a
.
get
(
"cc_token"
)
&&
(
a
.
a
.
dispatch
(
"setToken"
,
i
.
a
.
get
(
"cc_token"
)),
a
.
a
.
dispatch
(
"setPermission"
,
JSON
.
parse
(
localStorage
.
getItem
(
"permission"
))),
null
!==
i
.
a
.
get
(
"cc_user_name"
)
&&
a
.
a
.
dispatch
(
"setUserName"
,
i
.
a
.
get
(
"cc_user_name"
))),
a
.
a
.
state
.
nowTab
=
e
.
name
,
e
.
matched
.
length
>
1
&&
"first"
!==
e
.
name
){
for
(
var
o
=
void
0
,
r
=
0
;
r
<
a
.
a
.
state
.
menuList
.
length
;
r
++
)
for
(
var
u
=
a
.
a
.
state
.
menuList
[
r
],
c
=
0
;
c
<
u
.
list
.
length
;
c
++
){
var
s
=
u
.
list
[
c
];
s
.
path
===
e
.
path
&&
(
o
=
s
)}
a
.
a
.
state
.
openedTab
.
indexOf
(
o
)
<
0
&&
a
.
a
.
state
.
openedTab
.
push
(
o
)}
if
(
e
.
meta
.
readonly
?
a
.
a
.
dispatch
(
"readonly"
,
!
0
):
a
.
a
.
dispatch
(
"readonly"
,
!
1
),
"userDetail"
===
e
.
name
){
var
l
=
JSON
.
parse
(
localStorage
.
getItem
(
"permission"
)).
find
(
function
(
e
){
return
"3-2"
===
e
.
cover
}).
readonly
;
a
.
a
.
dispatch
(
"readonly"
,
l
)}
e
.
meta
.
delete
?
a
.
a
.
dispatch
(
"deletePermission"
,
!
0
):
a
.
a
.
dispatch
(
"deletePermission"
,
!
1
),
e
.
matched
.
some
(
function
(
e
){
return
!
0
!==
e
.
meta
.
skip_auth
})
&&!
a
.
a
.
state
.
token
?
t
({
path
:
"/login"
}):
t
()}),
n
.
a
=
u
},
tvR6
:
function
(
e
,
n
){},
zSLJ
:
function
(
e
,
n
,
t
){
"use strict"
;
n
.
a
=
{
set
:
function
(
e
,
n
,
t
){
var
o
=
new
Date
;
o
.
setTime
(
o
.
getTime
()
+
864
e5
*
t
),
window
.
document
.
cookie
=
e
+
"="
+
n
+
";path=/;expires="
+
o
.
toGMTString
()},
get
:
function
(
e
){
var
n
=
window
.
document
.
cookie
.
match
(
"(^|;) ?"
+
e
+
"=([^;]*)(;|$)"
);
return
n
?
n
[
2
]:
null
},
delete
:
function
(
e
){
this
.
set
(
e
,
""
,
-
1
)}}}},[
"NHnr"
]);
\ No newline at end of file
dist/static/js/manifest.
e689ed331985778d6947
.js
→
dist/static/js/manifest.
3f14d1f0b56608de5961
.js
View file @
b64994b3
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
c
,
o
){
for
(
var
f
,
b
,
d
,
i
=
0
,
u
=
[];
i
<
r
.
length
;
i
++
)
b
=
r
[
i
],
t
[
b
]
&&
u
.
push
(
t
[
b
][
0
]),
t
[
b
]
=
0
;
for
(
f
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
f
)
&&
(
e
[
f
]
=
c
[
f
]);
for
(
n
&&
n
(
r
,
c
,
o
);
u
.
length
;)
u
.
shift
()();
if
(
o
)
for
(
i
=
0
;
i
<
o
.
length
;
i
++
)
d
=
a
(
a
.
s
=
o
[
i
]);
return
d
};
var
r
=
{},
t
=
{
32
:
0
};
function
a
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
a
),
t
.
l
=!
0
,
t
.
exports
}
a
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
a
){
n
=
t
[
e
]
=
[
r
,
a
]});
n
[
2
]
=
r
;
var
c
=
document
.
getElementsByTagName
(
"head"
)[
0
],
o
=
document
.
createElement
(
"script"
);
o
.
type
=
"text/javascript"
,
o
.
charset
=
"utf-8"
,
o
.
async
=!
0
,
o
.
timeout
=
12
e4
,
a
.
nc
&&
o
.
setAttribute
(
"nonce"
,
a
.
nc
),
o
.
src
=
a
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"426f3cb3ed60e86e4938"
,
1
:
"b3e83f55c19363296ba6"
,
2
:
"10a25ff2b953ff74556b"
,
3
:
"d0a09be5802508c20889"
,
4
:
"a7486f536dae8d5f0d8e"
,
5
:
"fb72f00239feb2d507b1"
,
6
:
"e7dbcf5af79b2384452e"
,
7
:
"53941563792158472887"
,
8
:
"742470ac13a83dc2c97a"
,
9
:
"e230b875e1f0b0b83e53"
,
10
:
"bf5301c5878f0a943dd8"
,
11
:
"200229e9488c91778d34"
,
12
:
"6744ebb3f93944c9da14"
,
13
:
"44bb04141d0b07cee440"
,
14
:
"3599cdb833ec36097805"
,
15
:
"f525b9d9c4196fa161a2"
,
16
:
"d2e5739471a28c10917a"
,
17
:
"855582f507fd3efb0072"
,
18
:
"891a35c7f5fb765ee59d"
,
19
:
"e0b0392e040014a72c27"
,
20
:
"40f0b4a8a205091f5659"
,
21
:
"00449760891cf6ab5f68"
,
22
:
"b6b16bb7d57b8cdb7cd4"
,
23
:
"d4517c639a6834597937"
,
24
:
"168877af8fdb1d0ad847"
,
25
:
"a992e1ace012a21f6853"
,
26
:
"d2b0ecb2939e6bb15d44"
,
27
:
"9d6b6a920be7efb24d8c"
,
28
:
"67048a713e09743e9b41"
,
29
:
"e661237a7317b47853f7"
}[
e
]
+
".js"
;
var
f
=
setTimeout
(
b
,
12
e4
);
function
b
(){
o
.
onerror
=
o
.
onload
=
null
,
clearTimeout
(
f
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
o
.
onerror
=
o
.
onload
=
b
,
c
.
appendChild
(
o
),
r
},
a
.
m
=
e
,
a
.
c
=
r
,
a
.
d
=
function
(
e
,
n
,
r
){
a
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
a
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
a
.
d
(
n
,
"a"
,
n
),
n
},
a
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
a
.
p
=
"/"
,
a
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
n
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
r
,
c
,
f
){
for
(
var
o
,
b
,
d
,
i
=
0
,
u
=
[];
i
<
r
.
length
;
i
++
)
b
=
r
[
i
],
t
[
b
]
&&
u
.
push
(
t
[
b
][
0
]),
t
[
b
]
=
0
;
for
(
o
in
c
)
Object
.
prototype
.
hasOwnProperty
.
call
(
c
,
o
)
&&
(
e
[
o
]
=
c
[
o
]);
for
(
n
&&
n
(
r
,
c
,
f
);
u
.
length
;)
u
.
shift
()();
if
(
f
)
for
(
i
=
0
;
i
<
f
.
length
;
i
++
)
d
=
a
(
a
.
s
=
f
[
i
]);
return
d
};
var
r
=
{},
t
=
{
32
:
0
};
function
a
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
a
),
t
.
l
=!
0
,
t
.
exports
}
a
.
e
=
function
(
e
){
var
n
=
t
[
e
];
if
(
0
===
n
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
n
)
return
n
[
2
];
var
r
=
new
Promise
(
function
(
r
,
a
){
n
=
t
[
e
]
=
[
r
,
a
]});
n
[
2
]
=
r
;
var
c
=
document
.
getElementsByTagName
(
"head"
)[
0
],
f
=
document
.
createElement
(
"script"
);
f
.
type
=
"text/javascript"
,
f
.
charset
=
"utf-8"
,
f
.
async
=!
0
,
f
.
timeout
=
12
e4
,
a
.
nc
&&
f
.
setAttribute
(
"nonce"
,
a
.
nc
),
f
.
src
=
a
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"426f3cb3ed60e86e4938"
,
1
:
"b3e83f55c19363296ba6"
,
2
:
"10a25ff2b953ff74556b"
,
3
:
"d0a09be5802508c20889"
,
4
:
"a7486f536dae8d5f0d8e"
,
5
:
"fb72f00239feb2d507b1"
,
6
:
"e7dbcf5af79b2384452e"
,
7
:
"53941563792158472887"
,
8
:
"742470ac13a83dc2c97a"
,
9
:
"e230b875e1f0b0b83e53"
,
10
:
"dc560be19d1df2e9dca8"
,
11
:
"200229e9488c91778d34"
,
12
:
"6744ebb3f93944c9da14"
,
13
:
"01ab4bcf32655e93d186"
,
14
:
"bed9371e7a04b87f98c8"
,
15
:
"f525b9d9c4196fa161a2"
,
16
:
"d2e5739471a28c10917a"
,
17
:
"855582f507fd3efb0072"
,
18
:
"891a35c7f5fb765ee59d"
,
19
:
"e0b0392e040014a72c27"
,
20
:
"40f0b4a8a205091f5659"
,
21
:
"00449760891cf6ab5f68"
,
22
:
"b6b16bb7d57b8cdb7cd4"
,
23
:
"d4517c639a6834597937"
,
24
:
"168877af8fdb1d0ad847"
,
25
:
"a992e1ace012a21f6853"
,
26
:
"d2b0ecb2939e6bb15d44"
,
27
:
"9d6b6a920be7efb24d8c"
,
28
:
"67048a713e09743e9b41"
,
29
:
"e661237a7317b47853f7"
}[
e
]
+
".js"
;
var
o
=
setTimeout
(
b
,
12
e4
);
function
b
(){
f
.
onerror
=
f
.
onload
=
null
,
clearTimeout
(
o
);
var
n
=
t
[
e
];
0
!==
n
&&
(
n
&&
n
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
t
[
e
]
=
void
0
)}
return
f
.
onerror
=
f
.
onload
=
b
,
c
.
appendChild
(
f
),
r
},
a
.
m
=
e
,
a
.
c
=
r
,
a
.
d
=
function
(
e
,
n
,
r
){
a
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
a
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
a
.
d
(
n
,
"a"
,
n
),
n
},
a
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
a
.
p
=
"/"
,
a
.
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