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
0183bd62
Commit
0183bd62
authored
Apr 22, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.22
parent
663a94b9
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
166 additions
and
35 deletions
+166
-35
index.html
dev/index.html
+1
-1
16.bc763973217519eba9c0.js
dev/static/js/16.bc763973217519eba9c0.js
+1
-0
53.e655ff2d2f4699d082e6.js
dev/static/js/53.e655ff2d2f4699d082e6.js
+1
-0
manifest.d569cc44f3a2d5a9bcfe.js
dev/static/js/manifest.d569cc44f3a2d5a9bcfe.js
+1
-0
index.html
dist/index.html
+1
-1
app.b0d776f76d19ac44e23b5c6a340f8a78.css
dist/static/css/app.b0d776f76d19ac44e23b5c6a340f8a78.css
+1
-0
14.1c1389cd180e64a2062d.js
dist/static/js/14.1c1389cd180e64a2062d.js
+1
-0
15.03ca213ca5a3f48944d9.js
dist/static/js/15.03ca213ca5a3f48944d9.js
+1
-0
16.39e0963902d2c482e169.js
dist/static/js/16.39e0963902d2c482e169.js
+1
-0
17.eb1744ffcd2565bc88c1.js
dist/static/js/17.eb1744ffcd2565bc88c1.js
+1
-0
42.9deb0b4c322248e7c116.js
dist/static/js/42.9deb0b4c322248e7c116.js
+1
-0
43.a501ec1ed9e3ba0afca1.js
dist/static/js/43.a501ec1ed9e3ba0afca1.js
+1
-0
44.19bbaca27d596e8feedb.js
dist/static/js/44.19bbaca27d596e8feedb.js
+1
-0
45.cc440faa844aed89202f.js
dist/static/js/45.cc440faa844aed89202f.js
+1
-0
46.274ce7653f003af7ef42.js
dist/static/js/46.274ce7653f003af7ef42.js
+1
-0
app.d2a18b8f8f90e251ef7f.js
dist/static/js/app.d2a18b8f8f90e251ef7f.js
+1
-0
manifest.ed07b7179249fdc53c6d.js
dist/static/js/manifest.ed07b7179249fdc53c6d.js
+1
-0
index.vue
src/components/class/index.vue
+3
-29
index.vue
src/components/config/index.vue
+146
-4
No files found.
dev/index.html
View file @
0183bd62
<!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_x1rivf5f5.css
><link
rel=
stylesheet
href=
https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css
><title>
唱唱启蒙-后台
</title></head><body><script
src=
https://cdn.bootcss.com/vue/2.5.17/vue.min.js
></script><script
src=
https://unpkg.com/vuex@3.0.1
></script><script
src=
https://cdn.bootcss.com/axios/0.18.0/axios.min.js
></script><script
src=
https://lib.baomitu.com/element-ui/2.7.2/index.js
></script><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.
c51c8894b81b003acb44
.js
></script><script
type=
text/javascript
src=
/static/js/vendor.520caa645c172051b099.js
></script><script
type=
text/javascript
src=
/static/js/app.812a35112b9b7b739747.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
<!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_x1rivf5f5.css
><link
rel=
stylesheet
href=
https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css
><title>
唱唱启蒙-后台
</title></head><body><script
src=
https://cdn.bootcss.com/vue/2.5.17/vue.min.js
></script><script
src=
https://unpkg.com/vuex@3.0.1
></script><script
src=
https://cdn.bootcss.com/axios/0.18.0/axios.min.js
></script><script
src=
https://lib.baomitu.com/element-ui/2.7.2/index.js
></script><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.
d569cc44f3a2d5a9bcfe
.js
></script><script
type=
text/javascript
src=
/static/js/vendor.520caa645c172051b099.js
></script><script
type=
text/javascript
src=
/static/js/app.812a35112b9b7b739747.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
el
.
onerror
=
function
(
a
,
b
,
c
){
console
.
log
(
'error:'
,
a
,
b
,
c
);
};
...
...
dev/static/js/16.bc763973217519eba9c0.js
0 → 100644
View file @
0183bd62
webpackJsonp
([
16
],{
"1/HN"
:
function
(
e
,
t
,
i
){(
e
.
exports
=
i
(
"FZ+f"
)(
!
0
)).
push
([
e
.
i
,
"
\n
.demo-table-expand {
\n
font-size: 0;
\n
}
\n
.demo-table-expand label {
\n
width: 90px;
\n
color: #99a9bf;
\n
}
\n
.demo-table-expand .el-form-item {
\n
margin-right: 0;
\n
margin-bottom: 0;
\n
width: 50%;
\n
}
\n\n
"
,
""
,{
version
:
3
,
sources
:[
"C:/Users/Administrator/Desktop/后台/admin/src/components/class/index.vue"
],
names
:[],
mappings
:
";AACA;EACE,aAAa;CACd;AACD;EACE,YAAY;EACZ,eAAe;CAChB;AACD;EACE,gBAAgB;EAChB,iBAAiB;EACjB,WAAW;CACZ"
,
file
:
"index.vue"
,
sourcesContent
:[
"
\n
.demo-table-expand {
\n
font-size: 0;
\n
}
\n
.demo-table-expand label {
\n
width: 90px;
\n
color: #99a9bf;
\n
}
\n
.demo-table-expand .el-form-item {
\n
margin-right: 0;
\n
margin-bottom: 0;
\n
width: 50%;
\n
}
\n\n
"
],
sourceRoot
:
""
}])},
BenM
:
function
(
e
,
t
,
i
){(
e
.
exports
=
i
(
"FZ+f"
)(
!
0
)).
push
([
e
.
i
,
"
\n
.qr-img[data-v-e25797c8] {
\
r
\n
width: 148px !important;
\
r
\n
border: none !important;
\
r
\n
border-radius: 0 !important;
\n
}
\n
.disabled .el-upload--picture-card[data-v-e25797c8] {
\
r
\n
display: none !important;
\n
}
\
r
\n
"
,
""
,{
version
:
3
,
sources
:[
"C:/Users/Administrator/Desktop/后台/admin/src/components/class/dialog.vue"
],
names
:[],
mappings
:
";AACA;IACI,wBAAwB;IACxB,wBAAwB;IACxB,4BAA4B;CAC/B;AACD;IACI,yBAAyB;CAC5B"
,
file
:
"dialog.vue"
,
sourcesContent
:[
"
\n
.qr-img[data-v-e25797c8] {
\
r
\n
width: 148px !important;
\
r
\n
border: none !important;
\
r
\n
border-radius: 0 !important;
\n
}
\n
.disabled .el-upload--picture-card[data-v-e25797c8] {
\
r
\n
display: none !important;
\n
}
\
r
\n
"
],
sourceRoot
:
""
}])},
JP4Q
:
function
(
e
,
t
,
i
){
var
o
=
i
(
"BenM"
);
"string"
==
typeof
o
&&
(
o
=
[[
e
.
i
,
o
,
""
]]),
o
.
locals
&&
(
e
.
exports
=
o
.
locals
);
i
(
"rjj0"
)(
"486a2a46"
,
o
,
!
1
,{})},
NzM9
:
function
(
e
,
t
,
i
){(
e
.
exports
=
i
(
"FZ+f"
)(
!
0
)).
push
([
e
.
i
,
"
\n
.class[data-v-426dc2ae] {
\n
padding: 20px 0;
\n
}
\n
.intro .el-form-item[data-v-426dc2ae] {
\n
margin-bottom: 0;
\n
}
\n
.avatar[data-v-426dc2ae] {
\n
width: 70px;
\n
}
\n
"
,
""
,{
version
:
3
,
sources
:[
"C:/Users/Administrator/Desktop/后台/admin/src/components/class/index.vue"
],
names
:[],
mappings
:
";AACA;EACE,gBAAgB;CACjB;AACD;EACE,iBAAiB;CAClB;AACD;EACE,YAAY;CACb"
,
file
:
"index.vue"
,
sourcesContent
:[
"
\n
.class[data-v-426dc2ae] {
\n
padding: 20px 0;
\n
}
\n
.intro .el-form-item[data-v-426dc2ae] {
\n
margin-bottom: 0;
\n
}
\n
.avatar[data-v-426dc2ae] {
\n
width: 70px;
\n
}
\n
"
],
sourceRoot
:
""
}])},
OX9A
:
function
(
e
,
t
,
i
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
i
(
"CCn6"
),
n
=
i
(
"g5CC"
),
s
=
i
(
"+TkF"
),
a
=
i
(
"0qGg"
),
r
=
i
(
"kmJW"
),
l
=
{
data
:
function
(){
return
{
noticeDialog
:
!
1
,
nowPage
:
1
,
total
:
0
,
limit
:
10
,
periodsId
:
null
,
goods_id
:
null
,
goodsList
:[],
teacher_id
:
""
,
classList
:[],
title
:
""
,
countObj
:
""
,
teacherList
:[],
userObj
:{
classId
:
""
,
title
:
""
,
show
:
!
1
,
goods_id
:
null
},
dialogObj
:{
show
:
!
1
,
title
:
"添加班级"
,
periodsId
:
""
,
type
:
0
,
id
:
0
},
selectedGoods
:[],
secGoods
:[]}},
components
:{
UserList
:
a
.
a
,
classDialog
:
n
.
a
,
page
:
r
.
a
},
filters
:{
classTypeFilter
:
function
(
e
){
var
t
=
parseInt
(
e
);
return
1
===
t
?
"带班班级"
:
2
===
t
?
"观摩班级"
:
""
},
classSourceFilter
:
function
(
e
){
return
s
.
f
[
e
]},
percent
:
function
(
e
){
return
(
100
*
e
).
toFixed
(
2
)
+
"%"
}},
mounted
:
function
(){
this
.
initPage
()},
methods
:{
changeRow
:
function
(
e
,
t
){
t
.
indexOf
(
e
)
>-
1
&&
Object
(
o
.
_31
)(
e
.
periods_id
,
e
.
id
).
then
(
function
(
t
){
e
.
arrive_course_rate
=
t
.
arrive_course_rate
,
e
.
watch_course_rate
=
t
.
watch_course_rate
,
e
.
over_course_rate
=
t
.
over_course_rate
,
e
.
work_rate
=
t
.
work_rate
,
e
.
over_work_rate
=
t
.
over_work_rate
,
e
.
clock_rate
=
t
.
clock_rate
,
e
.
over_clock_rate
=
t
.
over_clock_rate
,
e
.
transform_rate
=
t
.
transform_rate
})},
initQuery
:
function
(){
var
e
=
this
,
t
=
this
.
$route
.
query
;
t
&&
t
.
goods_id
&&
t
.
periods_id
?(
this
.
goods_id
=
t
.
goods_id
,
this
.
selectedGoods
=
[
parseInt
(
t
.
goods_id
),
parseInt
(
t
.
periods_id
)],
Object
(
o
.
_55
)({
goods_id
:
this
.
selectedGoods
[
0
]}).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
e
.
name
=
e
.
title
}),
e
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
.
selectedGoods
[
0
]}).
children
=
t
.
list
;
var
i
=
e
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
.
selectedGoods
[
0
]});
e
.
periods
=
i
.
children
.
find
(
function
(
t
){
return
t
.
id
===
e
.
selectedGoods
[
1
]}),
e
.
teacher_id
=
""
,
e
.
getClassList
()})):
Object
(
o
.
_36
)().
then
(
function
(
t
){
t
&&
(
e
.
goods_id
=
t
.
goods_id
,
e
.
selectedGoods
=
[
parseInt
(
t
.
goods_id
),
parseInt
(
t
.
id
)],
Object
(
o
.
_55
)({
goods_id
:
e
.
selectedGoods
[
0
]}).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
e
.
name
=
e
.
title
}),
e
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
.
selectedGoods
[
0
]}).
children
=
t
.
list
;
var
i
=
e
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
.
selectedGoods
[
0
]});
e
.
periods
=
i
.
children
.
find
(
function
(
t
){
return
t
.
id
===
e
.
selectedGoods
[
1
]}),
e
.
teacher_id
=
""
,
console
.
log
(
e
.
goodsList
),
e
.
getClassList
()}))}),
console
.
log
(
this
.
goodsList
)},
initPage
:
function
(){
var
e
=
this
;
Object
(
o
.
_41
)({
page
:
1
,
limit
:
100
,
goods_type
:
"1,2"
}).
then
(
function
(
t
){
console
.
log
(
t
),
t
.
list
.
forEach
(
function
(
e
){
e
.
name
=
"["
+
e
.
id
+
"]["
+
s
.
h
[
e
.
goods_type
]
+
"]["
+
e
.
current_price
/
100
+
"元]"
+
e
.
name
,
e
.
children
=
[]}),
e
.
goodsList
=
t
.
list
,
e
.
initQuery
()})},
showUser
:
function
(
e
){
this
.
userObj
=
{
classId
:
e
.
id
,
periods_id
:
e
.
periods_id
,
show
:
!
0
,
goods_id
:
this
.
goods_id
,
title
:
e
.
teacher_name
+
"班级用户列表"
,
teacherId
:
e
.
teacher_id
,
class_name
:
e
.
class_name
}},
getTeacher
:
function
(){
var
e
=
this
;
this
.
periods
&&
Object
(
o
.
_58
)(
this
.
periods
.
id
).
then
(
function
(
t
){
var
i
=
{};
t
=
t
.
reduce
(
function
(
e
,
t
){
return
!
i
[
t
.
teacher_id
]
&&
(
i
[
t
.
teacher_id
]
=
e
.
push
(
t
)),
e
},[]),
e
.
teacherList
=
t
})},
changePeriods
:
function
(
e
){
if
(
e
.
length
>
1
){
this
.
goods_id
=
e
[
0
];
var
t
=
this
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
[
0
]});
this
.
periods
=
t
.
children
.
find
(
function
(
t
){
return
t
.
id
===
e
[
1
]}),
this
.
teacher_id
=
""
,
this
.
getTeacher
(),
this
.
getClassList
()}},
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
getClassList
()},
onSizeChange
:
function
(
e
){
this
.
limit
=
e
,
this
.
nowPage
=
1
,
this
.
getClassList
()},
onReflash
:
function
(
e
){
this
.
periods
=
e
,
this
.
selectedGoods
=
[
e
.
goods_id
,
e
.
id
],
this
.
getClassList
()},
getClassList
:
function
(){
var
e
=
this
;
if
(
this
.
periods
){
this
.
getTeacher
();
var
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
teacher_id
&&
(
t
.
teacher_id
=
this
.
teacher_id
),
Object
(
o
.
_30
)(
this
.
periods
.
id
,
t
).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
e
.
arrive_course_rate
=
0
,
e
.
watch_course_rate
=
0
,
e
.
over_course_rate
=
0
,
e
.
work_rate
=
0
,
e
.
over_work_rate
=
0
,
e
.
clock_rate
=
0
,
e
.
over_clock_rate
=
0
,
e
.
transform_rate
=
0
}),
e
.
title
=
t
.
periods
,
e
.
title
.
count_join_num
=
t
.
count
.
count_join_num
?
t
.
count
.
count_join_num
:
"暂无"
,
e
.
title
.
count_max_join_num
=
t
.
count
.
count_max_join_num
?
t
.
count
.
count_max_join_num
:
"暂无"
,
e
.
title
.
count_teacher_num
=
t
.
count
.
count_teacher_num
?
t
.
count
.
count_teacher_num
:
"暂无"
,
e
.
countObj
=
t
.
count
?
t
.
count
:
""
,
e
.
classList
=
t
.
list
,
e
.
total
=
t
.
total
})}},
handleItemChange
:
function
(
e
){
var
t
=
this
;
Object
(
o
.
_55
)({
goods_id
:
e
[
0
]}).
then
(
function
(
i
){
i
.
list
.
forEach
(
function
(
e
){
e
.
name
=
e
.
title
}),
t
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
[
0
]}).
children
=
i
.
list
})},
delClass
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该班级?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
o
.
H
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
}),
t
.
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
(
e
){
this
.
dialogObj
=
{
show
:
!
0
,
title
:
"编辑班级"
,
type
:
1
,
id
:
e
.
id
,
teacherList
:
this
.
teacherList
?
this
.
teacherList
:[]},
this
.
periods
&&
(
this
.
dialogObj
.
periods
=
this
.
periods
,
this
.
dialogObj
.
periodsId
=
this
.
periods
.
id
)}}},
c
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
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
:
e
.
goodsList
,
props
:{
value
:
"id"
,
label
:
"name"
}},
on
:{
"active-item-change"
:
e
.
handleItemChange
,
change
:
e
.
changePeriods
},
model
:{
value
:
e
.
selectedGoods
,
callback
:
function
(
t
){
e
.
selectedGoods
=
t
},
expression
:
"selectedGoods"
}})],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"老师"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
clearable
:
""
},
on
:{
change
:
e
.
getClassList
},
model
:{
value
:
e
.
teacher_id
,
callback
:
function
(
t
){
e
.
teacher_id
=
t
},
expression
:
"teacher_id"
}},
e
.
_l
(
e
.
teacherList
,
function
(
e
,
t
){
return
i
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
teacher_name
,
value
:
e
.
teacher_id
}})}))],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
getClassList
}},[
e
.
_v
(
"
\n
搜索
\n
"
)])],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
staticStyle
:{
float
:
"right"
}},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"success"
},
on
:{
click
:
e
.
onAdd
}},[
e
.
_v
(
"+添加班级"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
e
.
title
&&
e
.
title
.
title
?
i
(
"div"
,{
staticClass
:
"intro"
},[
i
(
"el-table"
,{
staticStyle
:{
display
:
"block"
,
margin
:
"20px auto"
,
background
:
"transparent"
},
attrs
:{
border
:
""
,
size
:
"mini"
,
data
:[
e
.
title
]}},[
i
(
"el-table-column"
,{
attrs
:{
label
:
"期数名称"
,
prop
:
"title"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"可看课包数"
,
prop
:
"watch_num"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"已看课包数"
,
prop
:
"has_watch_num"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"开始时间"
,
prop
:
"start_at"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"老师数量"
,
prop
:
"count_teacher_num"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"预计学员总数"
,
prop
:
"count_max_join_num"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"学员总数"
,
prop
:
"count_join_num"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"结束时间"
,
prop
:
"over_at"
}})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
title
&&
e
.
title
.
title
?
e
.
_e
():
i
(
"div"
,[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"300px"
,
inline
:
""
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"暂无期数信息,请先选择期数"
}})],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"div"
,[
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
classList
},
on
:{
"expand-change"
:
e
.
changeRow
}},[
i
(
"el-table-column"
,{
attrs
:{
type
:
"expand"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:[
t
.
row
]}},[
i
(
"el-table-column"
,{
attrs
:{
label
:
"到课率"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"percent"
)(
t
.
row
.
arrive_course_rate
)))])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"看课率"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"percent"
)(
t
.
row
.
watch_course_rate
)))])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"完课率"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"percent"
)(
t
.
row
.
over_course_rate
)))])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"打卡率"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"percent"
)(
t
.
row
.
clock_rate
)))])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"全勤打卡率"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"percent"
)(
t
.
row
.
over_clock_rate
)))])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"转化率"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"percent"
)(
t
.
row
.
transform_rate
)))])]}}])})],
1
)]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"班级名称"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
class_name
)
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"qr"
,
label
:
"班级二维码"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
t
.
row
.
qr
?
i
(
"a"
,{
attrs
:{
href
:
t
.
row
.
qr
,
target
:
"_blank"
}},[
i
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
t
.
row
.
qr
,
alt
:
"二维码"
}})]):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
row
.
qr
?
e
.
_e
():
i
(
"p"
,[
e
.
_v
(
"--"
)])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"teacher_name"
,
label
:
"班主任"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"老师状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
0
===
t
.
row
.
teacher_status
?
"带班"
:
"不带班"
)
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"班级类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"classTypeFilter"
)(
t
.
row
.
type
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"max_join_num"
,
label
:
"最大人数"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"join_num"
,
label
:
"现有人数"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"source"
,
label
:
"招生来源"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"classSourceFilter"
)(
t
.
row
.
source
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
width
:
"250"
,
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"primary"
},
on
:{
click
:
function
(
i
){
e
.
showUser
(
t
.
row
)}}},[
e
.
_v
(
"班级成员"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
i
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"warning"
},
on
:{
click
:
function
(
i
){
e
.
editClass
(
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
&&!
e
.
$store
.
state
.
readonly
?
i
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"danger"
},
on
:{
click
:
function
(
i
){
e
.
delClass
(
t
.
row
)}}},[
e
.
_v
(
"删除"
)]):
e
.
_e
()]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"page"
,{
attrs
:{
nowPage
:
e
.
nowPage
,
total
:
e
.
total
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
,
sizeChange
:
e
.
onSizeChange
}}),
e
.
_v
(
" "
),
i
(
"class-dialog"
,{
attrs
:{
dialogObj
:
e
.
dialogObj
},
on
:{
reflash
:
e
.
onReflash
}}),
e
.
_v
(
" "
),
i
(
"user-list"
,{
attrs
:{
userObj
:
e
.
userObj
},
on
:{
reflash
:
e
.
getClassList
}})],
1
)};
c
.
_withStripped
=!
0
;
var
d
=
{
render
:
c
,
staticRenderFns
:[]},
u
=
d
;
var
h
=!
1
;
var
_
=
i
(
"VU/8"
)(
l
,
u
,
!
1
,
function
(
e
){
h
||
(
i
(
"rKW7"
),
i
(
"a1h3"
))},
"data-v-426dc2ae"
,
null
);
_
.
options
.
__file
=
"src
\\
components
\\
class
\\
index.vue"
;
t
.
default
=
_
.
exports
},
a1h3
:
function
(
e
,
t
,
i
){
var
o
=
i
(
"1/HN"
);
"string"
==
typeof
o
&&
(
o
=
[[
e
.
i
,
o
,
""
]]),
o
.
locals
&&
(
e
.
exports
=
o
.
locals
);
i
(
"rjj0"
)(
"171dfdde"
,
o
,
!
1
,{})},
g5CC
:
function
(
e
,
t
,
i
){
"use strict"
;
var
o
=
i
(
"CCn6"
),
n
=
i
(
"+TkF"
),
s
=
{
props
:[
"dialogObj"
],
data
:
function
(){
var
e
=
[];
for
(
var
t
in
n
.
f
)
e
.
push
({
label
:
n
.
f
[
t
],
value
:
Number
(
t
)});
return
{
imageList
:[],
form
:{
teacher_id
:
""
,
max_join_num
:
""
,
class_name
:
""
,
source
:
""
,
qr
:
""
},
type
:
0
,
classSource
:
e
,
teacherList
:[],
exitTeacherList
:[],
goodsList
:[],
periods
:{},
uploadShow
:
!
0
}},
methods
:{
beforeAvatarUpload
:
function
(){
this
.
uploadShow
=!
1
},
handleRemove
:
function
(){
this
.
uploadShow
=!
0
},
handleAvatarSuccess
:
function
(
e
){
this
.
imageList
=
[{
name
:
e
.
data
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
data
.
url
}]},
uploadFile
:
function
(
e
){
var
t
=
this
;
this
.
loading
=!
0
,
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
o
.
_129
)({
file
:
e
.
file
,
type
:
"all"
}).
then
(
function
(
e
){
t
.
form
.
media_id
=
e
.
wechat_info
?
e
.
wechat_info
.
media_id
:
""
,
t
.
imageList
=
[{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
}],
t
.
uploadShow
=!
1
,
t
.
loading
=!
1
,
t
.
$message
({
type
:
"success"
,
message
:
"上传成功!"
})}).
catch
(
function
(){
t
.
loading
=!
1
})},
findDifferentArray
:
function
(
e
,
t
){
var
i
=
[];
return
e
.
forEach
(
function
(
e
){
-
1
===
t
.
findIndex
(
function
(
t
){
return
t
.
teacher_id
===
e
.
id
})
&&
i
.
push
(
e
)}),
i
},
getTeacher
:
function
(){
var
e
=
this
;
Object
(
o
.
_75
)({
limit
:
100
,
status
:
0
}).
then
(
function
(
t
){
e
.
teacherList
=
t
.
list
})},
getTeacherByPeriods
:
function
(){
var
e
=
this
;
Object
(
o
.
_75
)({
limit
:
100
,
status
:
0
}).
then
(
function
(
t
){
e
.
teacherList
=
t
.
list
})},
initPage
:
function
(){
var
e
=
this
;
switch
(
this
.
periods
=
this
.
dialogObj
.
periods
,
this
.
dialogObj
.
type
){
case
0
:
this
.
dialogObj
.
periodsId
||
this
.
getPeriodList
(),
this
.
form
=
{
teacher_id
:
""
,
max_join_num
:
""
,
source
:
""
,
qr
:
""
},
this
.
type
=
0
,
this
.
uploadShow
=!
0
,
this
.
getTeacher
();
break
;
case
1
:
this
.
type
=
1
,
Object
(
o
.
_29
)(
this
.
dialogObj
.
id
).
then
(
function
(
t
){
e
.
form
=
{
teacher_id
:
parseInt
(
t
.
teacher_id
),
max_join_num
:
t
.
max_join_num
,
class_name
:
t
.
class_name
,
source
:
t
.
source
},
t
.
qr
&&
(
e
.
form
.
qr
=
t
.
qr
,
e
.
imageList
=
[{
name
:
t
.
qr
,
url
:
t
.
qr
}]),
e
.
form
.
media_id
=
t
.
media_id
?
t
.
media_id
:
""
,
e
.
uploadShow
=!
t
.
qr
,
console
.
log
(
e
.
uploadShow
),
e
.
getTeacher
()})}},
getPeriodList
:
function
(){
var
e
=
this
;
Object
(
o
.
_41
)().
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
e
.
name
=
"["
+
n
.
h
[
e
.
goods_type
]
+
"]["
+
e
.
current_price
/
100
+
"元]"
+
e
.
name
,
e
.
children
=
[]}),
e
.
goodsList
=
t
.
list
,
e
.
periods
||
Object
(
o
.
_55
)({
goods_id
:
e
.
goodsList
[
0
].
id
}).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
e
.
name
=
e
.
title
}),
e
.
goodsList
[
0
].
children
=
t
.
list
,
e
.
periods
=
t
.
list
[
0
]})})},
onSave
:
function
(){
var
e
=
this
;
this
.
imageList
.
length
>
0
&&
(
this
.
form
.
qr
=
this
.
imageList
[
0
].
url
);
var
t
=
{
max_join_num
:
String
(
this
.
form
.
max_join_num
),
teacher_id
:
String
(
this
.
form
.
teacher_id
),
source
:
this
.
form
.
source
,
class_name
:
this
.
form
.
class_name
,
media_id
:
this
.
form
.
media_id
};
switch
(
this
.
form
.
qr
&&
(
t
.
qr
=
this
.
form
.
qr
),
console
.
log
(
t
),
this
.
dialogObj
.
type
){
case
0
:
var
i
=
this
.
dialogObj
.
periodsId
?
this
.
dialogObj
.
periodsId
:
this
.
periods
.
id
;
Object
(
o
.
f
)(
i
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
e
.
$emit
(
"reflash"
,
e
.
periods
),
e
.
dialogObj
.
show
=!
1
});
break
;
case
1
:
Object
(
o
.
_0
)(
this
.
dialogObj
.
id
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
e
.
$emit
(
"reflash"
,
e
.
periods
),
e
.
dialogObj
.
show
=!
1
})}},
handleItemChange
:
function
(
e
){
var
t
=
this
;
Object
(
o
.
_55
)({
goods_id
:
e
[
0
]}).
then
(
function
(
i
){
i
.
list
.
forEach
(
function
(
e
){
e
.
name
=
e
.
title
}),
t
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
[
0
]}).
children
=
i
.
list
})},
changePeriods
:
function
(
e
){
if
(
e
.
length
>
1
){
var
t
=
this
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
[
0
]});
this
.
periods
=
t
.
children
.
find
(
function
(
t
){
return
t
.
id
===
e
[
1
]}),
this
.
getTeacherByPeriods
()}},
selectName
:
function
(
e
,
t
){
var
i
=
e
.
filter
(
function
(
e
,
i
){
return
e
.
id
==
t
});
this
.
form
.
class_name
=
i
[
0
].
name
+
"一班"
}},
watch
:{
"dialogObj.show"
:
function
(
e
){
e
&&
this
.
initPage
()}}},
a
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialogObj
.
title
,
visible
:
e
.
dialogObj
.
show
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
dialogObj
,
"show"
,
t
)}}},[
i
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
e
.
form
,
"label-width"
:
"120px"
}},[
this
.
dialogObj
.
periodsId
?
e
.
_e
():
i
(
"el-form-item"
,{
attrs
:{
label
:
"期数"
}},[
i
(
"el-cascader"
,{
attrs
:{
options
:
e
.
goodsList
,
props
:{
value
:
"id"
,
label
:
"name"
}},
on
:{
"active-item-change"
:
e
.
handleItemChange
,
change
:
e
.
changePeriods
}})],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"老师"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
filterable
:
""
},
on
:{
change
:
function
(
t
){
e
.
selectName
(
e
.
teacherList
,
e
.
form
.
teacher_id
)}},
model
:{
value
:
e
.
form
.
teacher_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"teacher_id"
,
t
)},
expression
:
"form.teacher_id"
}},
e
.
_l
(
e
.
teacherList
,
function
(
e
,
t
){
return
i
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"班级名称"
}},[
i
(
"el-input"
,{
staticStyle
:{
width
:
"220px"
},
model
:{
value
:
e
.
form
.
class_name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"class_name"
,
t
)},
expression
:
"form.class_name"
}})],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"最大学员"
}},[
i
(
"el-input-number"
,{
model
:{
value
:
e
.
form
.
max_join_num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"max_join_num"
,
t
)},
expression
:
"form.max_join_num"
}})],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"招生来源"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
filterable
:
""
},
model
:{
value
:
e
.
form
.
source
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"source"
,
t
)},
expression
:
"form.source"
}},
e
.
_l
(
e
.
classSource
,
function
(
e
,
t
){
return
i
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"班级二维码"
}},[
i
(
"el-upload"
,{
class
:{
disabled
:
!
e
.
uploadShow
},
attrs
:{
action
:
"/api/public/upload/zone"
,
"http-request"
:
e
.
uploadFile
,
"before-upload"
:
e
.
beforeAvatarUpload
,
"list-type"
:
"picture-card"
,
"file-list"
:
e
.
imageList
,
"on-success"
:
e
.
handleAvatarSuccess
,
"on-remove"
:
e
.
handleRemove
}},[
i
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
i
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogObj
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSave
}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)};
a
.
_withStripped
=!
0
;
var
r
=
{
render
:
a
,
staticRenderFns
:[]},
l
=
r
;
var
c
=!
1
;
var
d
=
i
(
"VU/8"
)(
s
,
l
,
!
1
,
function
(
e
){
c
||
i
(
"JP4Q"
)},
"data-v-e25797c8"
,
null
);
d
.
options
.
__file
=
"src
\\
components
\\
class
\\
dialog.vue"
;
t
.
a
=
d
.
exports
},
rKW7
:
function
(
e
,
t
,
i
){
var
o
=
i
(
"NzM9"
);
"string"
==
typeof
o
&&
(
o
=
[[
e
.
i
,
o
,
""
]]),
o
.
locals
&&
(
e
.
exports
=
o
.
locals
);
i
(
"rjj0"
)(
"94e58b82"
,
o
,
!
1
,{})}});
\ No newline at end of file
dev/static/js/53.e655ff2d2f4699d082e6.js
0 → 100644
View file @
0183bd62
webpackJsonp
([
53
],{
TPCG
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
i
(
"CCn6"
),
o
=
i
(
"+TkF"
),
n
=
{
name
:
"entrance"
,
props
:[
"entranceObj"
],
data
:
function
(){
return
{
noticeDialog
:
!
1
,
activeName
:
"1"
,
form
:{
msg
:
""
},
form2
:{
msg
:
""
},
form3
:{
msg
:
""
},
form4
:{
msg
:
""
},
form5
:{
msg
:
""
},
form6
:{
msg
:
""
},
form7
:{
msg
:[]},
form8
:{
msg
:
""
},
thisList
:{},
thisList2
:{},
thisList3
:{},
thisList4
:{},
thisList5
:{},
thisList6
:{},
thisList7
:{},
thisList8
:{},
periodList
:[],
activeNames
:[
1
],
selectedGoods
:[],
secGoods
:[],
periodsId
:
""
}},
mounted
:
function
(){
this
.
second
()},
filters
:{},
methods
:{
handleItemChange
:
function
(
t
){
var
e
=
this
;
Object
(
s
.
_55
)({
goods_id
:
t
[
0
]}).
then
(
function
(
i
){
i
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
e
.
periodList
.
find
(
function
(
e
){
return
e
.
id
===
t
[
0
]}).
children
=
i
.
list
})},
onSend
:
function
(){
var
t
=
this
;
console
.
log
(
this
.
secGoods
),
Object
(
s
.
_95
)(
this
.
secGoods
[
1
]).
then
(
function
(
e
){
t
.
noticeDialog
=!
1
,
t
.
$message
({
type
:
"success"
,
message
:
"发生成功"
})})},
noticeDialogFn
:
function
(){
var
t
=
this
;
this
.
noticeDialog
=!
0
;
Object
(
s
.
_41
)({
page
:
1
,
limit
:
100
,
goods_type
:
"1,2"
}).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
name
=
"["
+
t
.
id
+
"]["
+
o
.
h
[
t
.
goods_type
]
+
"]["
+
t
.
current_price
/
100
+
"元]"
+
t
.
name
,
t
.
children
=
[]}),
t
.
periodList
=
e
.
list
,
t
.
initQuery
()})},
initQuery
:
function
(){
var
t
=
this
,
e
=
this
.
$route
.
query
;
e
&&
e
.
goods_id
&&
e
.
periods_id
?(
this
.
goods_id
=
e
.
goods_id
,
this
.
selectedGoods
=
[
parseInt
(
e
.
goods_id
),
parseInt
(
e
.
periods_id
)],
Object
(
s
.
_55
)({
goods_id
:
this
.
selectedGoods
[
0
]}).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
t
.
periodList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
0
]}).
children
=
e
.
list
;
var
i
=
t
.
periodList
.
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
=
""
})):
Object
(
s
.
_36
)().
then
(
function
(
e
){
e
&&
(
t
.
goods_id
=
e
.
goods_id
,
t
.
selectedGoods
=
[
parseInt
(
e
.
goods_id
),
parseInt
(
e
.
id
)],
Object
(
s
.
_55
)({
goods_id
:
t
.
selectedGoods
[
0
]}).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
t
.
periodList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
0
]}).
children
=
e
.
list
,
console
.
log
(
e
.
list
),
console
.
log
(
t
.
periodList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
0
]}).
children
);
var
i
=
t
.
periodList
.
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
=
""
,
console
.
log
(
t
.
periodList
)}))})},
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
.
_30
)(
this
.
periods
.
id
,
e
).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
arrive_course_rate
=
0
,
t
.
watch_course_rate
=
0
,
t
.
over_course_rate
=
0
,
t
.
work_rate
=
0
,
t
.
over_work_rate
=
0
,
t
.
clock_rate
=
0
,
t
.
over_clock_rate
=
0
,
t
.
transform_rate
=
0
}),
t
.
title
=
e
.
periods
,
t
.
title
.
count_join_num
=
e
.
count
.
count_join_num
?
e
.
count
.
count_join_num
:
"暂无"
,
t
.
title
.
count_max_join_num
=
e
.
count
.
count_max_join_num
?
e
.
count
.
count_max_join_num
:
"暂无"
,
t
.
title
.
count_teacher_num
=
e
.
count
.
count_teacher_num
?
e
.
count
.
count_teacher_num
:
"暂无"
,
t
.
countObj
=
e
.
count
?
e
.
count
:
""
,
t
.
classList
=
e
.
list
,
t
.
total
=
e
.
total
})}},
handleChange
:
function
(
t
){
"1"
===
t
?
this
.
first
():
"4"
===
t
?
this
.
four
():
"5"
===
t
?
this
.
five
():
"7"
===
t
?
this
.
seven
():
"8"
===
t
&&
this
.
eight
()},
first
:
function
(){
var
t
=
this
;
Object
(
s
.
_34
)({
key
:
"new_user_redirect"
}).
then
(
function
(
e
){
console
.
log
(
e
);
var
i
=
e
.
list
[
0
];
t
.
form
.
msg
=
i
.
desc
,
t
.
thisList
=
i
})},
second
:
function
(){
var
t
=
this
;
Object
(
s
.
_41
)({
limit
:
100
}).
then
(
function
(
e
){
t
.
goodsList
=
e
.
list
,
Object
(
s
.
_34
)({
key
:
"share_goods_id"
}).
then
(
function
(
e
){
console
.
log
(
e
);
var
i
=
e
.
list
[
0
];
t
.
form2
.
msg
=
i
.
value
,
t
.
thisList2
=
i
}),
Object
(
s
.
_34
)({
key
:
"mp_ads_goods_id"
}).
then
(
function
(
e
){
if
(
console
.
log
(
e
),
e
.
list
[
0
]){
var
i
=
e
.
list
[
0
];
t
.
form3
.
msg
=
i
.
desc
,
t
.
thisList3
=
i
}}),
Object
(
s
.
_34
)({
key
:
"no_course_goods_id"
}).
then
(
function
(
e
){
if
(
console
.
log
(
e
),
e
.
list
[
0
]){
var
i
=
e
.
list
[
0
];
t
.
form6
.
msg
=
i
.
value
,
t
.
thisList6
=
i
}})})},
four
:
function
(){
var
t
=
this
;
Object
(
s
.
_34
)({
key
:
"success_group_before_hour"
}).
then
(
function
(
e
){
if
(
console
.
log
(
e
),
e
.
list
[
0
]){
var
i
=
e
.
list
[
0
];
t
.
form4
.
msg
=
i
.
desc
,
t
.
thisList4
=
i
}})},
five
:
function
(){
var
t
=
this
;
Object
(
s
.
_34
)({
key
:
"urge_group_share_hour"
}).
then
(
function
(
e
){
if
(
console
.
log
(
e
),
e
.
list
[
0
]){
var
i
=
e
.
list
[
0
];
t
.
form5
.
msg
=
i
.
value
,
t
.
thisList5
=
i
}})},
seven
:
function
(){
var
t
=
this
;
Object
(
s
.
_34
)({
key
:
"automation_goods_ids"
}).
then
(
function
(
e
){
if
(
console
.
log
(
e
),
e
.
list
[
0
]){
var
i
=
e
.
list
[
0
];
t
.
form7
.
msg
=
i
.
value
.
split
(
","
),
t
.
thisList7
=
i
}})},
eight
:
function
(){
var
t
=
this
;
Object
(
s
.
_34
)({
key
:
"automation_conversion_goods_id"
}).
then
(
function
(
e
){
if
(
console
.
log
(
e
),
e
.
list
[
0
]){
var
i
=
e
.
list
[
0
];
t
.
form8
.
msg
=
i
.
value
,
t
.
thisList8
=
i
}})},
submitForm
:
function
(
t
){
var
e
=
this
;
this
.
$refs
[
t
].
validate
(
function
(
i
){
if
(
!
i
)
return
console
.
log
(
"error submit!!"
),
!
1
;
"form"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList
.
key
,
value
:
e
.
thisList
.
value
,
desc
:
e
.
form
.
msg
},
i
=
e
.
thisList
.
id
;
console
.
log
(
i
,
t
),
Object
(
s
.
_117
)(
i
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form2"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList2
.
key
,
value
:
e
.
form2
.
msg
,
desc
:
e
.
thisList2
.
desc
},
i
=
e
.
thisList2
.
id
;
Object
(
s
.
_117
)(
i
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form3"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList3
.
key
,
value
:
e
.
thisList3
.
value
,
desc
:
e
.
form3
.
msg
},
i
=
e
.
thisList3
.
id
;
Object
(
s
.
_117
)(
i
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form4"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList4
.
key
,
value
:
e
.
thisList4
.
value
,
desc
:
e
.
form4
.
msg
},
i
=
e
.
thisList4
.
id
;
Object
(
s
.
_117
)(
i
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form5"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList5
.
key
,
value
:
e
.
thisList5
.
value
,
desc
:
e
.
form5
.
msg
},
i
=
e
.
thisList5
.
id
;
Object
(
s
.
_117
)(
i
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form6"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList6
.
key
,
value
:
e
.
form6
.
msg
,
desc
:
e
.
thisList6
.
desc
},
i
=
e
.
thisList6
.
id
;
Object
(
s
.
_117
)(
i
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form7"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList7
.
key
,
value
:
e
.
form7
.
msg
.
join
(
","
),
desc
:
e
.
thisList7
.
desc
},
i
=
e
.
thisList7
.
id
;
Object
(
s
.
_117
)(
i
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form8"
==
t
&&
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList8
.
key
,
value
:
e
.
form8
.
msg
,
desc
:
e
.
thisList8
.
desc
},
i
=
e
.
thisList8
.
id
;
Object
(
s
.
_117
)(
i
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})})})}}},
r
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"box"
},[
i
(
"div"
,{
staticClass
:
"container"
},[
i
(
"div"
,{
staticClass
:
"item left"
},[
i
(
"div"
,{
staticStyle
:{
"margin-top"
:
"30px"
}},[
t
.
_v
(
"
\n
系统配置
\n
"
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticStyle
:{
"margin-top"
:
"30px"
}}),
t
.
_v
(
" "
),
i
(
"el-collapse"
,{
attrs
:{
accordion
:
""
},
on
:{
change
:
t
.
handleChange
},
model
:{
value
:
t
.
activeNames
,
callback
:
function
(
e
){
t
.
activeNames
=
e
},
expression
:
"activeNames"
}},[
i
(
"el-collapse-item"
,{
attrs
:{
title
:
"设置无课用户点我要上课跳转地址"
,
name
:
"1"
}},[
i
(
"el-form"
,{
ref
:
"form"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form
}},[
i
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
i
(
"el-input"
,{
attrs
:{
type
:
"text"
,
autocomplete
:
"off"
},
model
:{
value
:
t
.
form
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"msg"
,
t
.
_n
(
e
))},
expression
:
"form.msg"
}})],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-collapse-item"
,{
attrs
:{
title
:
"打卡商品"
,
name
:
"2"
}},[
i
(
"el-form"
,{
ref
:
"form2"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form2
}},[
i
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
i
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form2
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form2
,
"msg"
,
e
)},
expression
:
"form2.msg"
}},
t
.
_l
(
t
.
goodsList
,
function
(
t
){
return
i
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
"【"
+
t
.
id
+
"】"
+
t
.
name
,
value
:
t
.
id
.
toString
()}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
center
:
""
}},[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form2"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-collapse-item"
,{
attrs
:{
title
:
"外部投放商品"
,
name
:
"3"
}},[
i
(
"el-form"
,{
ref
:
"form3"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form3
}},[
i
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
i
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form3
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form3
,
"msg"
,
e
)},
expression
:
"form3.msg"
}},
t
.
_l
(
t
.
goodsList
,
function
(
t
){
return
i
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
"【"
+
t
.
id
+
"】"
+
t
.
name
,
value
:
t
.
id
.
toString
()}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form3"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-collapse-item"
,{
attrs
:{
title
:
"默认成团时间(失效前几小时)"
,
name
:
"4"
}},[
i
(
"el-form"
,{
ref
:
"form4"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form4
}},[
i
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
i
(
"el-input"
,{
attrs
:{
type
:
"text"
,
autocomplete
:
"off"
},
model
:{
value
:
t
.
form4
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form4
,
"msg"
,
t
.
_n
(
e
))},
expression
:
"form4.msg"
}})],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form4"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-collapse-item"
,{
attrs
:{
title
:
"未成团催团通知时间(失效前几小时)"
,
name
:
"5"
}},[
i
(
"el-form"
,{
ref
:
"form5"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form5
}},[
i
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
i
(
"el-input"
,{
attrs
:{
type
:
"text"
,
autocomplete
:
"off"
},
model
:{
value
:
t
.
form5
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form5
,
"msg"
,
t
.
_n
(
e
))},
expression
:
"form5.msg"
}})],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form5"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-collapse-item"
,{
attrs
:{
title
:
"无课用户推荐商品"
,
name
:
"6"
}},[
i
(
"el-form"
,{
ref
:
"form6"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form6
}},[
i
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
i
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form6
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form6
,
"msg"
,
e
)},
expression
:
"form6.msg"
}},
t
.
_l
(
t
.
goodsList
,
function
(
t
){
return
i
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
"【"
+
t
.
id
+
"】"
+
t
.
name
,
value
:
t
.
id
.
toString
()}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form6"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-collapse-item"
,{
attrs
:{
title
:
"自动化推荐体验商品"
,
name
:
"7"
}},[
i
(
"el-form"
,{
ref
:
"form7"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form7
}},[
i
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
i
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
multiple
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form7
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form7
,
"msg"
,
e
)},
expression
:
"form7.msg"
}},
t
.
_l
(
t
.
goodsList
,
function
(
t
){
return
i
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
"【"
+
t
.
id
+
"】"
+
t
.
name
,
value
:
t
.
id
.
toString
()}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form7"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-collapse-item"
,{
attrs
:{
title
:
"自动化推荐转化商品ID"
,
name
:
"8"
}},[
i
(
"el-form"
,{
ref
:
"form8"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form8
}},[
i
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
i
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form8
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form8
,
"msg"
,
e
)},
expression
:
"form8.msg"
}},
t
.
_l
(
t
.
goodsList
,
function
(
t
){
return
i
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
"【"
+
t
.
id
+
"】"
+
t
.
name
,
value
:
t
.
id
.
toString
()}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form8"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"item"
},[
i
(
"div"
,{
staticStyle
:{
"margin-top"
:
"30px"
}},[
t
.
_v
(
"
\n
系统功能
\n
"
)]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticStyle
:{
"margin-top"
:
"30px"
}}),
t
.
_v
(
" "
),
i
(
"div"
,[
i
(
"el-button"
,{
on
:{
click
:
t
.
noticeDialogFn
}},[
t
.
_v
(
"
\n
发送活动通知
\n
"
)])],
1
)])]),
t
.
_v
(
" "
),
i
(
"el-dialog"
,{
attrs
:{
title
:
"发生活动通知(限活动期数发送)"
,
visible
:
t
.
noticeDialog
},
on
:{
"update:visible"
:
function
(
e
){
t
.
noticeDialog
=
e
}}},[
i
(
"el-cascader"
,{
attrs
:{
options
:
t
.
periodList
,
props
:{
value
:
"id"
,
label
:
"name"
}},
on
:{
"active-item-change"
:
t
.
handleItemChange
},
model
:{
value
:
t
.
secGoods
,
callback
:
function
(
e
){
t
.
secGoods
=
e
},
expression
:
"secGoods"
}}),
t
.
_v
(
" "
),
i
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
i
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
noticeDialog
=!
1
}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onSend
}},[
t
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)};
r
.
_withStripped
=!
0
;
var
a
=
{
render
:
r
,
staticRenderFns
:[]},
c
=
a
;
var
l
=!
1
;
var
m
=
i
(
"VU/8"
)(
n
,
c
,
!
1
,
function
(
t
){
l
||
i
(
"qJji"
)},
"data-v-0492dcb0"
,
null
);
m
.
options
.
__file
=
"src
\\
components
\\
config
\\
index.vue"
;
e
.
default
=
m
.
exports
},
ZniO
:
function
(
t
,
e
,
i
){(
t
.
exports
=
i
(
"FZ+f"
)(
!
0
)).
push
([
t
.
i
,
"
\n
.box[data-v-0492dcb0] {
\n
padding: 20px;
\n
background: white;
\n
text-indent: 10px;
\n
-webkit-box-sizing: border-box;
\n
box-sizing: border-box;
\n
}
\n
.el-form-item[data-v-0492dcb0] {
\n
display: inline-block;
\n
margin-right: 40px;
\n
}
\n
.container[data-v-0492dcb0] {
\n
display: -webkit-box;
\n
display: -ms-flexbox;
\n
display: flex;
\n
}
\n
.container .left[data-v-0492dcb0] {
\n
width: 60%;
\n
}
\n
"
,
""
,{
version
:
3
,
sources
:[
"C:/Users/Administrator/Desktop/后台/admin/src/components/config/index.vue"
],
names
:[],
mappings
:
";AACA;EACE,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,+BAA+B;UACvB,uBAAuB;CAChC;AACD;EACE,sBAAsB;EACtB,mBAAmB;CACpB;AACD;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;CACf;AACD;EACE,WAAW;CACZ"
,
file
:
"index.vue"
,
sourcesContent
:[
"
\n
.box[data-v-0492dcb0] {
\n
padding: 20px;
\n
background: white;
\n
text-indent: 10px;
\n
-webkit-box-sizing: border-box;
\n
box-sizing: border-box;
\n
}
\n
.el-form-item[data-v-0492dcb0] {
\n
display: inline-block;
\n
margin-right: 40px;
\n
}
\n
.container[data-v-0492dcb0] {
\n
display: -webkit-box;
\n
display: -ms-flexbox;
\n
display: flex;
\n
}
\n
.container .left[data-v-0492dcb0] {
\n
width: 60%;
\n
}
\n
"
],
sourceRoot
:
""
}])},
qJji
:
function
(
t
,
e
,
i
){
var
s
=
i
(
"ZniO"
);
"string"
==
typeof
s
&&
(
s
=
[[
t
.
i
,
s
,
""
]]),
s
.
locals
&&
(
t
.
exports
=
s
.
locals
);
i
(
"rjj0"
)(
"2a27afec"
,
s
,
!
1
,{})}});
\ No newline at end of file
dev/static/js/manifest.d569cc44f3a2d5a9bcfe.js
0 → 100644
View file @
0183bd62
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
f
,
n
,
r
){
for
(
var
t
,
b
,
o
,
i
=
0
,
u
=
[];
i
<
f
.
length
;
i
++
)
b
=
f
[
i
],
c
[
b
]
&&
u
.
push
(
c
[
b
][
0
]),
c
[
b
]
=
0
;
for
(
t
in
n
)
Object
.
prototype
.
hasOwnProperty
.
call
(
n
,
t
)
&&
(
e
[
t
]
=
n
[
t
]);
for
(
a
&&
a
(
f
,
n
,
r
);
u
.
length
;)
u
.
shift
()();
if
(
r
)
for
(
i
=
0
;
i
<
r
.
length
;
i
++
)
o
=
d
(
d
.
s
=
r
[
i
]);
return
o
};
var
f
=
{},
c
=
{
56
:
0
};
function
d
(
a
){
if
(
f
[
a
])
return
f
[
a
].
exports
;
var
c
=
f
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
c
.
exports
,
c
,
c
.
exports
,
d
),
c
.
l
=!
0
,
c
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
c
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
f
=
new
Promise
(
function
(
f
,
d
){
a
=
c
[
e
]
=
[
f
,
d
]});
a
[
2
]
=
f
;
var
n
=
document
.
getElementsByTagName
(
"head"
)[
0
],
r
=
document
.
createElement
(
"script"
);
r
.
type
=
"text/javascript"
,
r
.
charset
=
"utf-8"
,
r
.
async
=!
0
,
r
.
timeout
=
12
e4
,
d
.
nc
&&
r
.
setAttribute
(
"nonce"
,
d
.
nc
),
r
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"d1b22c3db9186b7c591b"
,
1
:
"f80382f5a602a9ab12c9"
,
2
:
"4d7dc4414edb0fe44584"
,
3
:
"0b2a631522fdc8850c19"
,
4
:
"8bbb720e89d91b306c2f"
,
5
:
"480fa42628b53851540a"
,
6
:
"06f9a9002ecc2d88f0de"
,
7
:
"997aae4e7209f11a9a4e"
,
8
:
"7580ee3104bfc883058a"
,
9
:
"c39634001e6cec8c8376"
,
10
:
"dd4b833f566b23148559"
,
11
:
"d558ef31a978ba38a492"
,
12
:
"bfe17d6c1f960736da32"
,
13
:
"52f1cc98a321d6cfce38"
,
14
:
"e8e2428513e1e902ea61"
,
15
:
"9323683336815bbc383f"
,
16
:
"bc763973217519eba9c0"
,
17
:
"d1f78960a0dbc64a6dd3"
,
18
:
"5c924a4578d6a44ce72f"
,
19
:
"fddbefbcbbb9921ce25c"
,
20
:
"ebdfb3b715206a4eba1a"
,
21
:
"cc6dfa69d779f30dd8ae"
,
22
:
"e62ee3852d56e995e338"
,
23
:
"36fdd705d17f7550c0d5"
,
24
:
"de47a09908df52e8f882"
,
25
:
"e11959101a255e068538"
,
26
:
"1316e225fc66a1ad35c5"
,
27
:
"7098a71a5d6987b5b7f4"
,
28
:
"944298fe3faf78a6258f"
,
29
:
"1f39218bc73353b2f869"
,
30
:
"ce6a174f79bf4be5cc2e"
,
31
:
"9f21fbe9433dff4ba9b5"
,
32
:
"6d8898ebf52b7a1f7a2c"
,
33
:
"1728faf5dfe4d43032ec"
,
34
:
"2aa1802ec9a32d3f8cee"
,
35
:
"3840e9f192a494a902b6"
,
36
:
"cc76b3e1f5f236f76436"
,
37
:
"636e23eefd9f2e6e3784"
,
38
:
"693dfaca431a17ff53cd"
,
39
:
"ba021ae90243ecca3b85"
,
40
:
"cb4a0d6f95f47c6e8137"
,
41
:
"9f5f1ebf49de9138a770"
,
42
:
"f4232be198ef303ca233"
,
43
:
"790e9555b1ee2e9221d3"
,
44
:
"14c48ffa27f02abc828e"
,
45
:
"232211b2a1861ed3626c"
,
46
:
"2b6bd996d5e1d9b81baf"
,
47
:
"67a5e1801c83df2ed651"
,
48
:
"88e7f40cf9be8a2498c7"
,
49
:
"62c6218ca11c61e08d2e"
,
50
:
"6939e694580c3394adaa"
,
51
:
"64e68edb4270ecca9f16"
,
52
:
"fadcb1e389fde30a6504"
,
53
:
"e655ff2d2f4699d082e6"
}[
e
]
+
".js"
;
var
t
=
setTimeout
(
b
,
12
e4
);
function
b
(){
r
.
onerror
=
r
.
onload
=
null
,
clearTimeout
(
t
);
var
a
=
c
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
c
[
e
]
=
void
0
)}
return
r
.
onerror
=
r
.
onload
=
b
,
n
.
appendChild
(
r
),
f
},
d
.
m
=
e
,
d
.
c
=
f
,
d
.
d
=
function
(
e
,
a
,
f
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
f
})},
d
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
a
,
"a"
,
a
),
a
},
d
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
d
.
p
=
"/"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
dist/index.html
View file @
0183bd62
<!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_x1rivf5f5.css
><link
rel=
stylesheet
href=
https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css
><title>
唱唱启蒙-后台
</title><link
href=
/static/css/app.
8b5e4deb2d2f3c880afb4793cbe5e9a1.css
rel=
stylesheet
></head><body><script
src=
https://cdn.bootcss.com/vue/2.5.17/vue.min.js
></script><script
src=
https://unpkg.com/vuex@3.0.1
></script><script
src=
https://cdn.bootcss.com/axios/0.18.0/axios.min.js
></script><script
src=
https://lib.baomitu.com/element-ui/2.7.2/index.js
></script><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.988dff3038ccabe92111.js
></script><script
type=
text/javascript
src=
/static/js/vendor.1989ff930c83bbe25dc0.js
></script><script
type=
text/javascript
src=
/static/js/app.30fea8fa9c634750b0e6
.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
<!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_x1rivf5f5.css
><link
rel=
stylesheet
href=
https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css
><title>
唱唱启蒙-后台
</title><link
href=
/static/css/app.
b0d776f76d19ac44e23b5c6a340f8a78.css
rel=
stylesheet
></head><body><script
src=
https://cdn.bootcss.com/vue/2.5.17/vue.min.js
></script><script
src=
https://unpkg.com/vuex@3.0.1
></script><script
src=
https://cdn.bootcss.com/axios/0.18.0/axios.min.js
></script><script
src=
https://lib.baomitu.com/element-ui/2.7.2/index.js
></script><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.ed07b7179249fdc53c6d.js
></script><script
type=
text/javascript
src=
/static/js/vendor.1989ff930c83bbe25dc0.js
></script><script
type=
text/javascript
src=
/static/js/app.d2a18b8f8f90e251ef7f
.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
el
.
onerror
=
function
(
a
,
b
,
c
){
console
.
log
(
'error:'
,
a
,
b
,
c
);
};
...
...
dist/static/css/app.b0d776f76d19ac44e23b5c6a340f8a78.css
0 → 100644
View file @
0183bd62
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/14.1c1389cd180e64a2062d.js
0 → 100644
View file @
0183bd62
webpackJsonp
([
14
],{
"+FG1"
:
function
(
e
,
t
){},
OX9A
:
function
(
e
,
t
,
i
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
i
(
"CCn6"
),
s
=
i
(
"g5CC"
),
a
=
i
(
"+TkF"
),
n
=
i
(
"0qGg"
),
r
=
i
(
"kmJW"
),
l
=
{
data
:
function
(){
return
{
noticeDialog
:
!
1
,
nowPage
:
1
,
total
:
0
,
limit
:
10
,
periodsId
:
null
,
goods_id
:
null
,
goodsList
:[],
teacher_id
:
""
,
classList
:[],
title
:
""
,
countObj
:
""
,
teacherList
:[],
userObj
:{
classId
:
""
,
title
:
""
,
show
:
!
1
,
goods_id
:
null
},
dialogObj
:{
show
:
!
1
,
title
:
"添加班级"
,
periodsId
:
""
,
type
:
0
,
id
:
0
},
selectedGoods
:[],
secGoods
:[]}},
components
:{
UserList
:
n
.
a
,
classDialog
:
s
.
a
,
page
:
r
.
a
},
filters
:{
classTypeFilter
:
function
(
e
){
var
t
=
parseInt
(
e
);
return
1
===
t
?
"带班班级"
:
2
===
t
?
"观摩班级"
:
""
},
classSourceFilter
:
function
(
e
){
return
a
.
f
[
e
]},
percent
:
function
(
e
){
return
(
100
*
e
).
toFixed
(
2
)
+
"%"
}},
mounted
:
function
(){
this
.
initPage
()},
methods
:{
changeRow
:
function
(
e
,
t
){
t
.
indexOf
(
e
)
>-
1
&&
Object
(
o
.
_31
)(
e
.
periods_id
,
e
.
id
).
then
(
function
(
t
){
e
.
arrive_course_rate
=
t
.
arrive_course_rate
,
e
.
watch_course_rate
=
t
.
watch_course_rate
,
e
.
over_course_rate
=
t
.
over_course_rate
,
e
.
work_rate
=
t
.
work_rate
,
e
.
over_work_rate
=
t
.
over_work_rate
,
e
.
clock_rate
=
t
.
clock_rate
,
e
.
over_clock_rate
=
t
.
over_clock_rate
,
e
.
transform_rate
=
t
.
transform_rate
})},
initQuery
:
function
(){
var
e
=
this
,
t
=
this
.
$route
.
query
;
t
&&
t
.
goods_id
&&
t
.
periods_id
?(
this
.
goods_id
=
t
.
goods_id
,
this
.
selectedGoods
=
[
parseInt
(
t
.
goods_id
),
parseInt
(
t
.
periods_id
)],
Object
(
o
.
_55
)({
goods_id
:
this
.
selectedGoods
[
0
]}).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
e
.
name
=
e
.
title
}),
e
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
.
selectedGoods
[
0
]}).
children
=
t
.
list
;
var
i
=
e
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
.
selectedGoods
[
0
]});
e
.
periods
=
i
.
children
.
find
(
function
(
t
){
return
t
.
id
===
e
.
selectedGoods
[
1
]}),
e
.
teacher_id
=
""
,
e
.
getClassList
()})):
Object
(
o
.
_36
)().
then
(
function
(
t
){
t
&&
(
e
.
goods_id
=
t
.
goods_id
,
e
.
selectedGoods
=
[
parseInt
(
t
.
goods_id
),
parseInt
(
t
.
id
)],
Object
(
o
.
_55
)({
goods_id
:
e
.
selectedGoods
[
0
]}).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
e
.
name
=
e
.
title
}),
e
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
.
selectedGoods
[
0
]}).
children
=
t
.
list
;
var
i
=
e
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
.
selectedGoods
[
0
]});
e
.
periods
=
i
.
children
.
find
(
function
(
t
){
return
t
.
id
===
e
.
selectedGoods
[
1
]}),
e
.
teacher_id
=
""
,
console
.
log
(
e
.
goodsList
),
e
.
getClassList
()}))}),
console
.
log
(
this
.
goodsList
)},
initPage
:
function
(){
var
e
=
this
;
Object
(
o
.
_41
)({
page
:
1
,
limit
:
100
,
goods_type
:
"1,2"
}).
then
(
function
(
t
){
console
.
log
(
t
),
t
.
list
.
forEach
(
function
(
e
){
e
.
name
=
"["
+
e
.
id
+
"]["
+
a
.
h
[
e
.
goods_type
]
+
"]["
+
e
.
current_price
/
100
+
"元]"
+
e
.
name
,
e
.
children
=
[]}),
e
.
goodsList
=
t
.
list
,
e
.
initQuery
()})},
showUser
:
function
(
e
){
this
.
userObj
=
{
classId
:
e
.
id
,
periods_id
:
e
.
periods_id
,
show
:
!
0
,
goods_id
:
this
.
goods_id
,
title
:
e
.
teacher_name
+
"班级用户列表"
,
teacherId
:
e
.
teacher_id
,
class_name
:
e
.
class_name
}},
getTeacher
:
function
(){
var
e
=
this
;
this
.
periods
&&
Object
(
o
.
_58
)(
this
.
periods
.
id
).
then
(
function
(
t
){
var
i
=
{};
t
=
t
.
reduce
(
function
(
e
,
t
){
return
!
i
[
t
.
teacher_id
]
&&
(
i
[
t
.
teacher_id
]
=
e
.
push
(
t
)),
e
},[]),
e
.
teacherList
=
t
})},
changePeriods
:
function
(
e
){
if
(
e
.
length
>
1
){
this
.
goods_id
=
e
[
0
];
var
t
=
this
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
[
0
]});
this
.
periods
=
t
.
children
.
find
(
function
(
t
){
return
t
.
id
===
e
[
1
]}),
this
.
teacher_id
=
""
,
this
.
getTeacher
(),
this
.
getClassList
()}},
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
getClassList
()},
onSizeChange
:
function
(
e
){
this
.
limit
=
e
,
this
.
nowPage
=
1
,
this
.
getClassList
()},
onReflash
:
function
(
e
){
this
.
periods
=
e
,
this
.
selectedGoods
=
[
e
.
goods_id
,
e
.
id
],
this
.
getClassList
()},
getClassList
:
function
(){
var
e
=
this
;
if
(
this
.
periods
){
this
.
getTeacher
();
var
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
teacher_id
&&
(
t
.
teacher_id
=
this
.
teacher_id
),
Object
(
o
.
_30
)(
this
.
periods
.
id
,
t
).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
e
.
arrive_course_rate
=
0
,
e
.
watch_course_rate
=
0
,
e
.
over_course_rate
=
0
,
e
.
work_rate
=
0
,
e
.
over_work_rate
=
0
,
e
.
clock_rate
=
0
,
e
.
over_clock_rate
=
0
,
e
.
transform_rate
=
0
}),
e
.
title
=
t
.
periods
,
e
.
title
.
count_join_num
=
t
.
count
.
count_join_num
?
t
.
count
.
count_join_num
:
"暂无"
,
e
.
title
.
count_max_join_num
=
t
.
count
.
count_max_join_num
?
t
.
count
.
count_max_join_num
:
"暂无"
,
e
.
title
.
count_teacher_num
=
t
.
count
.
count_teacher_num
?
t
.
count
.
count_teacher_num
:
"暂无"
,
e
.
countObj
=
t
.
count
?
t
.
count
:
""
,
e
.
classList
=
t
.
list
,
e
.
total
=
t
.
total
})}},
handleItemChange
:
function
(
e
){
var
t
=
this
;
Object
(
o
.
_55
)({
goods_id
:
e
[
0
]}).
then
(
function
(
i
){
i
.
list
.
forEach
(
function
(
e
){
e
.
name
=
e
.
title
}),
t
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
[
0
]}).
children
=
i
.
list
})},
delClass
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该班级?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
o
.
H
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
}),
t
.
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
(
e
){
this
.
dialogObj
=
{
show
:
!
0
,
title
:
"编辑班级"
,
type
:
1
,
id
:
e
.
id
,
teacherList
:
this
.
teacherList
?
this
.
teacherList
:[]},
this
.
periods
&&
(
this
.
dialogObj
.
periods
=
this
.
periods
,
this
.
dialogObj
.
periodsId
=
this
.
periods
.
id
)}}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
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
:
e
.
goodsList
,
props
:{
value
:
"id"
,
label
:
"name"
}},
on
:{
"active-item-change"
:
e
.
handleItemChange
,
change
:
e
.
changePeriods
},
model
:{
value
:
e
.
selectedGoods
,
callback
:
function
(
t
){
e
.
selectedGoods
=
t
},
expression
:
"selectedGoods"
}})],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"老师"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
clearable
:
""
},
on
:{
change
:
e
.
getClassList
},
model
:{
value
:
e
.
teacher_id
,
callback
:
function
(
t
){
e
.
teacher_id
=
t
},
expression
:
"teacher_id"
}},
e
.
_l
(
e
.
teacherList
,
function
(
e
,
t
){
return
i
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
teacher_name
,
value
:
e
.
teacher_id
}})}))],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
getClassList
}},[
e
.
_v
(
"
\n
搜索
\n
"
)])],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
staticStyle
:{
float
:
"right"
}},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"success"
},
on
:{
click
:
e
.
onAdd
}},[
e
.
_v
(
"+添加班级"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
e
.
title
&&
e
.
title
.
title
?
i
(
"div"
,{
staticClass
:
"intro"
},[
i
(
"el-table"
,{
staticStyle
:{
display
:
"block"
,
margin
:
"20px auto"
,
background
:
"transparent"
},
attrs
:{
border
:
""
,
size
:
"mini"
,
data
:[
e
.
title
]}},[
i
(
"el-table-column"
,{
attrs
:{
label
:
"期数名称"
,
prop
:
"title"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"可看课包数"
,
prop
:
"watch_num"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"已看课包数"
,
prop
:
"has_watch_num"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"开始时间"
,
prop
:
"start_at"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"老师数量"
,
prop
:
"count_teacher_num"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"预计学员总数"
,
prop
:
"count_max_join_num"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"学员总数"
,
prop
:
"count_join_num"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"结束时间"
,
prop
:
"over_at"
}})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
title
&&
e
.
title
.
title
?
e
.
_e
():
i
(
"div"
,[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"300px"
,
inline
:
""
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"暂无期数信息,请先选择期数"
}})],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"div"
,[
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
classList
},
on
:{
"expand-change"
:
e
.
changeRow
}},[
i
(
"el-table-column"
,{
attrs
:{
type
:
"expand"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:[
t
.
row
]}},[
i
(
"el-table-column"
,{
attrs
:{
label
:
"到课率"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"percent"
)(
t
.
row
.
arrive_course_rate
)))])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"看课率"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"percent"
)(
t
.
row
.
watch_course_rate
)))])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"完课率"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"percent"
)(
t
.
row
.
over_course_rate
)))])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"打卡率"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"percent"
)(
t
.
row
.
clock_rate
)))])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"全勤打卡率"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"percent"
)(
t
.
row
.
over_clock_rate
)))])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"转化率"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"span"
,[
e
.
_v
(
e
.
_s
(
e
.
_f
(
"percent"
)(
t
.
row
.
transform_rate
)))])]}}])})],
1
)]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"班级名称"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
row
.
class_name
)
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"qr"
,
label
:
"班级二维码"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
t
.
row
.
qr
?
i
(
"a"
,{
attrs
:{
href
:
t
.
row
.
qr
,
target
:
"_blank"
}},[
i
(
"img"
,{
staticClass
:
"avatar"
,
attrs
:{
src
:
t
.
row
.
qr
,
alt
:
"二维码"
}})]):
e
.
_e
(),
e
.
_v
(
" "
),
t
.
row
.
qr
?
e
.
_e
():
i
(
"p"
,[
e
.
_v
(
"--"
)])]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"teacher_name"
,
label
:
"班主任"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"老师状态"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
0
===
t
.
row
.
teacher_status
?
"带班"
:
"不带班"
)
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"班级类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"classTypeFilter"
)(
t
.
row
.
type
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"max_join_num"
,
label
:
"最大人数"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"join_num"
,
label
:
"现有人数"
}}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"source"
,
label
:
"招生来源"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"classSourceFilter"
)(
t
.
row
.
source
))
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
width
:
"250"
,
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"primary"
},
on
:{
click
:
function
(
i
){
e
.
showUser
(
t
.
row
)}}},[
e
.
_v
(
"班级成员"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
i
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"warning"
},
on
:{
click
:
function
(
i
){
e
.
editClass
(
t
.
row
)}}},[
e
.
_v
(
"编辑"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
&&!
e
.
$store
.
state
.
readonly
?
i
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"danger"
},
on
:{
click
:
function
(
i
){
e
.
delClass
(
t
.
row
)}}},[
e
.
_v
(
"删除"
)]):
e
.
_e
()]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"page"
,{
attrs
:{
nowPage
:
e
.
nowPage
,
total
:
e
.
total
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
,
sizeChange
:
e
.
onSizeChange
}}),
e
.
_v
(
" "
),
i
(
"class-dialog"
,{
attrs
:{
dialogObj
:
e
.
dialogObj
},
on
:{
reflash
:
e
.
onReflash
}}),
e
.
_v
(
" "
),
i
(
"user-list"
,{
attrs
:{
userObj
:
e
.
userObj
},
on
:{
reflash
:
e
.
getClassList
}})],
1
)},
staticRenderFns
:[]};
var
d
=
i
(
"VU/8"
)(
l
,
c
,
!
1
,
function
(
e
){
i
(
"dhbx"
),
i
(
"+FG1"
)},
"data-v-15baa048"
,
null
);
t
.
default
=
d
.
exports
},
dhbx
:
function
(
e
,
t
){},
g5CC
:
function
(
e
,
t
,
i
){
"use strict"
;
var
o
=
i
(
"CCn6"
),
s
=
i
(
"+TkF"
),
a
=
{
props
:[
"dialogObj"
],
data
:
function
(){
var
e
=
[];
for
(
var
t
in
s
.
f
)
e
.
push
({
label
:
s
.
f
[
t
],
value
:
Number
(
t
)});
return
{
imageList
:[],
form
:{
teacher_id
:
""
,
max_join_num
:
""
,
class_name
:
""
,
source
:
""
,
qr
:
""
},
type
:
0
,
classSource
:
e
,
teacherList
:[],
exitTeacherList
:[],
goodsList
:[],
periods
:{},
uploadShow
:
!
0
}},
methods
:{
beforeAvatarUpload
:
function
(){
this
.
uploadShow
=!
1
},
handleRemove
:
function
(){
this
.
uploadShow
=!
0
},
handleAvatarSuccess
:
function
(
e
){
this
.
imageList
=
[{
name
:
e
.
data
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
data
.
url
}]},
uploadFile
:
function
(
e
){
var
t
=
this
;
this
.
loading
=!
0
,
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
o
.
_129
)({
file
:
e
.
file
,
type
:
"all"
}).
then
(
function
(
e
){
t
.
form
.
media_id
=
e
.
wechat_info
?
e
.
wechat_info
.
media_id
:
""
,
t
.
imageList
=
[{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
}],
t
.
uploadShow
=!
1
,
t
.
loading
=!
1
,
t
.
$message
({
type
:
"success"
,
message
:
"上传成功!"
})}).
catch
(
function
(){
t
.
loading
=!
1
})},
findDifferentArray
:
function
(
e
,
t
){
var
i
=
[];
return
e
.
forEach
(
function
(
e
){
-
1
===
t
.
findIndex
(
function
(
t
){
return
t
.
teacher_id
===
e
.
id
})
&&
i
.
push
(
e
)}),
i
},
getTeacher
:
function
(){
var
e
=
this
;
Object
(
o
.
_75
)({
limit
:
100
,
status
:
0
}).
then
(
function
(
t
){
e
.
teacherList
=
t
.
list
})},
getTeacherByPeriods
:
function
(){
var
e
=
this
;
Object
(
o
.
_75
)({
limit
:
100
,
status
:
0
}).
then
(
function
(
t
){
e
.
teacherList
=
t
.
list
})},
initPage
:
function
(){
var
e
=
this
;
switch
(
this
.
periods
=
this
.
dialogObj
.
periods
,
this
.
dialogObj
.
type
){
case
0
:
this
.
dialogObj
.
periodsId
||
this
.
getPeriodList
(),
this
.
form
=
{
teacher_id
:
""
,
max_join_num
:
""
,
source
:
""
,
qr
:
""
},
this
.
type
=
0
,
this
.
uploadShow
=!
0
,
this
.
getTeacher
();
break
;
case
1
:
this
.
type
=
1
,
Object
(
o
.
_29
)(
this
.
dialogObj
.
id
).
then
(
function
(
t
){
e
.
form
=
{
teacher_id
:
parseInt
(
t
.
teacher_id
),
max_join_num
:
t
.
max_join_num
,
class_name
:
t
.
class_name
,
source
:
t
.
source
},
t
.
qr
&&
(
e
.
form
.
qr
=
t
.
qr
,
e
.
imageList
=
[{
name
:
t
.
qr
,
url
:
t
.
qr
}]),
e
.
form
.
media_id
=
t
.
media_id
?
t
.
media_id
:
""
,
e
.
uploadShow
=!
t
.
qr
,
console
.
log
(
e
.
uploadShow
),
e
.
getTeacher
()})}},
getPeriodList
:
function
(){
var
e
=
this
;
Object
(
o
.
_41
)().
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
e
.
name
=
"["
+
s
.
h
[
e
.
goods_type
]
+
"]["
+
e
.
current_price
/
100
+
"元]"
+
e
.
name
,
e
.
children
=
[]}),
e
.
goodsList
=
t
.
list
,
e
.
periods
||
Object
(
o
.
_55
)({
goods_id
:
e
.
goodsList
[
0
].
id
}).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
e
.
name
=
e
.
title
}),
e
.
goodsList
[
0
].
children
=
t
.
list
,
e
.
periods
=
t
.
list
[
0
]})})},
onSave
:
function
(){
var
e
=
this
;
this
.
imageList
.
length
>
0
&&
(
this
.
form
.
qr
=
this
.
imageList
[
0
].
url
);
var
t
=
{
max_join_num
:
String
(
this
.
form
.
max_join_num
),
teacher_id
:
String
(
this
.
form
.
teacher_id
),
source
:
this
.
form
.
source
,
class_name
:
this
.
form
.
class_name
,
media_id
:
this
.
form
.
media_id
};
switch
(
this
.
form
.
qr
&&
(
t
.
qr
=
this
.
form
.
qr
),
console
.
log
(
t
),
this
.
dialogObj
.
type
){
case
0
:
var
i
=
this
.
dialogObj
.
periodsId
?
this
.
dialogObj
.
periodsId
:
this
.
periods
.
id
;
Object
(
o
.
f
)(
i
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
e
.
$emit
(
"reflash"
,
e
.
periods
),
e
.
dialogObj
.
show
=!
1
});
break
;
case
1
:
Object
(
o
.
_0
)(
this
.
dialogObj
.
id
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
e
.
$emit
(
"reflash"
,
e
.
periods
),
e
.
dialogObj
.
show
=!
1
})}},
handleItemChange
:
function
(
e
){
var
t
=
this
;
Object
(
o
.
_55
)({
goods_id
:
e
[
0
]}).
then
(
function
(
i
){
i
.
list
.
forEach
(
function
(
e
){
e
.
name
=
e
.
title
}),
t
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
[
0
]}).
children
=
i
.
list
})},
changePeriods
:
function
(
e
){
if
(
e
.
length
>
1
){
var
t
=
this
.
goodsList
.
find
(
function
(
t
){
return
t
.
id
===
e
[
0
]});
this
.
periods
=
t
.
children
.
find
(
function
(
t
){
return
t
.
id
===
e
[
1
]}),
this
.
getTeacherByPeriods
()}},
selectName
:
function
(
e
,
t
){
var
i
=
e
.
filter
(
function
(
e
,
i
){
return
e
.
id
==
t
});
this
.
form
.
class_name
=
i
[
0
].
name
+
"一班"
}},
watch
:{
"dialogObj.show"
:
function
(
e
){
e
&&
this
.
initPage
()}}},
n
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialogObj
.
title
,
visible
:
e
.
dialogObj
.
show
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
dialogObj
,
"show"
,
t
)}}},[
i
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
e
.
form
,
"label-width"
:
"120px"
}},[
this
.
dialogObj
.
periodsId
?
e
.
_e
():
i
(
"el-form-item"
,{
attrs
:{
label
:
"期数"
}},[
i
(
"el-cascader"
,{
attrs
:{
options
:
e
.
goodsList
,
props
:{
value
:
"id"
,
label
:
"name"
}},
on
:{
"active-item-change"
:
e
.
handleItemChange
,
change
:
e
.
changePeriods
}})],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"老师"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
filterable
:
""
},
on
:{
change
:
function
(
t
){
e
.
selectName
(
e
.
teacherList
,
e
.
form
.
teacher_id
)}},
model
:{
value
:
e
.
form
.
teacher_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"teacher_id"
,
t
)},
expression
:
"form.teacher_id"
}},
e
.
_l
(
e
.
teacherList
,
function
(
e
,
t
){
return
i
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"班级名称"
}},[
i
(
"el-input"
,{
staticStyle
:{
width
:
"220px"
},
model
:{
value
:
e
.
form
.
class_name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"class_name"
,
t
)},
expression
:
"form.class_name"
}})],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"最大学员"
}},[
i
(
"el-input-number"
,{
model
:{
value
:
e
.
form
.
max_join_num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"max_join_num"
,
t
)},
expression
:
"form.max_join_num"
}})],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"招生来源"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
filterable
:
""
},
model
:{
value
:
e
.
form
.
source
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"source"
,
t
)},
expression
:
"form.source"
}},
e
.
_l
(
e
.
classSource
,
function
(
e
,
t
){
return
i
(
"el-option"
,{
key
:
t
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
),
e
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"班级二维码"
}},[
i
(
"el-upload"
,{
class
:{
disabled
:
!
e
.
uploadShow
},
attrs
:{
action
:
"/api/public/upload/zone"
,
"http-request"
:
e
.
uploadFile
,
"before-upload"
:
e
.
beforeAvatarUpload
,
"list-type"
:
"picture-card"
,
"file-list"
:
e
.
imageList
,
"on-success"
:
e
.
handleAvatarSuccess
,
"on-remove"
:
e
.
handleRemove
}},[
i
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
i
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogObj
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onSave
}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)},
staticRenderFns
:[]};
var
r
=
i
(
"VU/8"
)(
a
,
n
,
!
1
,
function
(
e
){
i
(
"gdey"
)},
"data-v-27bd0c65"
,
null
);
t
.
a
=
r
.
exports
},
gdey
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/15.03ca213ca5a3f48944d9.js
0 → 100644
View file @
0183bd62
webpackJsonp
([
15
],{
"5C8T"
:
function
(
t
,
e
){},
IxHi
:
function
(
t
,
e
){},
dyNO
:
function
(
t
,
e
){},
h9Vb
:
function
(
t
,
e
){},
lNiQ
:
function
(
t
,
e
,
i
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
s
=
i
(
"CCn6"
),
n
=
i
(
"kmJW"
),
a
=
i
(
"C+jy"
),
o
=
{
name
:
"focusReplyDialog"
,
props
:[
"dialogObj"
],
data
:
function
(){
return
{
show
:
!
1
,
loading
:
!
1
,
showEmotion
:
!
1
,
total
:
0
,
nowPage
:
1
,
limit
:
3
,
id
:
null
,
form
:{
index
:
-
1
,
desc
:{}},
content
:
""
,
imageContent
:
""
,
newsContent
:
""
,
videoContent
:
""
,
voiceContent
:
""
,
type
:
"news"
,
mediaList
:[],
mediaListMock
:[],
showMedia
:
!
1
,
pickerOptions1
:{
disabledDate
:
function
(
t
){
return
!
(
t
.
getTime
()
>
Date
.
now
())}},
rules
:{
value
:[{
required
:
!
0
,
message
:
"请输入规则名称"
,
trigger
:
"change"
}],
desc
:[{
required
:
!
0
,
message
:
"请输入回复内容"
,
trigger
:
"change"
}],
qr
:[{
required
:
!
0
,
message
:
"请输入二维码"
,
trigger
:
"change"
}]},
imageList
:[],
uploadShow
:
!
0
,
uploadLinkShow
:
!
0
,
linkContent
:{
title
:
""
,
description
:
""
,
url
:
""
,
thumb_url
:
""
},
imageLinkList
:[]}},
components
:{
page
:
n
.
a
,
page2
:
n
.
a
,
page3
:
n
.
a
,
page4
:
n
.
a
,
emotion
:
a
.
a
},
mounted
:
function
(){
this
.
initDialog
()},
watch
:{},
filters
:{},
methods
:{
handleEmotion
:
function
(
t
){
this
.
content
+=
t
},
onChangeType
:
function
(
t
){
this
.
type
=
t
,
this
.
mediaList
=
[],
this
.
showMedia
=!
1
,
this
.
nowPage
=
1
},
initDialog
:
function
(){
if
(
this
.
form
.
index
=
this
.
dialogObj
.
index
,
this
.
form
.
desc
=
this
.
dialogObj
.
desc
,
-
1
===
this
.
form
.
index
)
this
.
type
=
"news"
,
this
.
newsContent
=
""
;
else
if
(
this
.
type
=
this
.
form
.
desc
.
type
,
"text"
===
this
.
type
)
this
.
content
=
this
.
form
.
desc
.
content
;
else
{
var
t
=
{
type
:
this
.
type
};
this
.
form
.
desc
.
content
&&
(
t
.
content
=
this
.
form
.
desc
.
content
),
this
.
form
.
desc
.
media_id
&&
(
t
.
media_id
=
this
.
form
.
desc
.
media_id
),
"image"
===
this
.
type
?
this
.
imageContent
=
t
:
"news"
===
this
.
type
?
this
.
newsContent
=
t
:
"voice"
===
this
.
type
?
this
.
voiceContent
=
t
:
"video"
===
this
.
type
?
this
.
videoContent
=
t
:
"link"
!==
this
.
type
&&
"news-item"
!==
this
.
type
||
(
this
.
linkContent
=
{
title
:
this
.
form
.
desc
.
title
,
description
:
this
.
form
.
desc
.
description
,
url
:
this
.
form
.
desc
.
url
,
thumb_url
:
this
.
form
.
desc
.
thumb_url
},
this
.
imageLinkList
=
[{
name
:
this
.
form
.
desc
.
thumb_url
,
url
:
this
.
form
.
desc
.
thumb_url
}])}},
close
:
function
(){
this
.
$emit
(
"changeShow"
,
!
1
)},
save
:
function
(){
var
t
=
this
.
form
;
if
(
"text"
===
this
.
type
){
if
(
!
this
.
content
)
return
void
this
.
$message
({
showClose
:
!
0
,
message
:
"请输入文本内容"
});
var
e
=
{
type
:
this
.
type
,
content
:
this
.
content
};
t
.
desc
=
e
}
else
if
(
"image"
===
this
.
type
){
if
(
!
this
.
imageContent
)
return
void
this
.
$message
({
showClose
:
!
0
,
message
:
"请选择图片"
});
t
.
desc
=
this
.
imageContent
}
else
if
(
"news"
===
this
.
type
){
if
(
!
this
.
newsContent
)
return
void
this
.
$message
({
showClose
:
!
0
,
message
:
"请选择图文"
});
t
.
desc
=
this
.
newsContent
}
else
if
(
"video"
===
this
.
type
){
if
(
!
this
.
videoContent
)
return
void
this
.
$message
({
showClose
:
!
0
,
message
:
"请选择视频"
});
t
.
desc
=
this
.
videoContent
}
else
if
(
"voice"
===
this
.
type
){
if
(
!
this
.
voiceContent
)
return
void
this
.
$message
({
showClose
:
!
0
,
message
:
"请选择视频"
});
t
.
desc
=
this
.
voiceContent
}
else
if
(
"news-item"
===
this
.
type
||
"link"
===
this
.
type
){
if
(
this
.
linkContent
.
type
=
this
.
type
,
!
this
.
linkContent
.
title
)
return
void
this
.
$message
({
showClose
:
!
0
,
message
:
"请输入标题"
});
if
(
!
this
.
linkContent
.
description
)
return
void
this
.
$message
({
showClose
:
!
0
,
message
:
"请输入描述"
});
if
(
!
this
.
linkContent
.
url
)
return
void
this
.
$message
({
showClose
:
!
0
,
message
:
"请输入跳转链接"
});
if
(
!
this
.
linkContent
.
thumb_url
)
return
void
this
.
$message
({
showClose
:
!
0
,
message
:
"请上传缩略图"
});
t
.
desc
=
this
.
linkContent
}
this
.
$emit
(
"changeShow"
,
!
1
),
this
.
$emit
(
"reflash"
,
t
)},
onPageChange
:
function
(
t
){
this
.
nowPage
=
t
,
this
.
getMediaList
(
this
.
type
)},
getMediaList
:
function
(
t
){
var
e
=
this
,
i
=
{
type
:
t
,
page
:
this
.
nowPage
,
limit
:
this
.
limit
};
this
.
loading
=!
0
,
Object
(
s
.
_48
)(
i
).
then
(
function
(
i
){
e
.
loading
=!
1
,
e
.
type
=
t
,
e
.
total
=
i
.
total_count
,
0
===
i
.
item
.
length
?(
e
.
$message
({
showClose
:
!
0
,
message
:
"暂无数据"
}),
e
.
showMedia
=!
1
):(
e
.
showMedia
=!
0
,
e
.
mediaList
=
i
.
item
)}).
catch
(
function
(){
e
.
loading
=!
1
,
e
.
showMedia
=!
1
})},
onChooseMedia
:
function
(
t
){
"news"
===
this
.
type
?
this
.
addContent
(
this
.
type
,
t
.
content
,
t
.
media_id
):
"video"
===
this
.
type
?
this
.
addContent
(
this
.
type
,
t
.
info
,
t
.
media_id
):
"voice"
===
this
.
type
?
this
.
addContent
(
this
.
type
,
t
,
t
.
media_id
):
this
.
addContent
(
this
.
type
,
t
.
url
,
t
.
media_id
),
this
.
showMedia
=!
1
},
addContent
:
function
(
t
,
e
,
i
){
var
s
=
{};
e
&&
(
s
=
{
type
:
t
,
content
:
e
}),
i
&&
(
s
.
media_id
=
i
),
"news"
===
t
?
this
.
newsContent
=
s
:
"video"
===
t
?
this
.
videoContent
=
s
:
"voice"
===
t
?
this
.
voiceContent
=
s
:
this
.
imageContent
=
s
},
uploadFile
:
function
(
t
){
var
e
=
this
;
this
.
loading
=!
0
,
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
t
.
file
.
uid
}),
"link"
!==
this
.
type
&&
"news-item"
!==
this
.
type
||
Object
(
s
.
_129
)({
file
:
t
.
file
,
type
:
"local"
}).
then
(
function
(
t
){
e
.
imageLinkList
=
[{
name
:
t
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
t
.
url
}],
e
.
loading
=!
1
,
e
.
$message
({
type
:
"success"
,
message
:
"上传成功!"
}),
e
.
linkContent
.
thumb_url
=
"https://cdn.singsingenglish.com/"
+
t
.
url
}).
catch
(
function
(){
e
.
loading
=!
1
})},
handleAvatarSuccess
:
function
(
t
){
"link"
!==
this
.
type
&&
"news-item"
!==
this
.
type
||
(
this
.
imageLinkList
=
[{
name
:
t
.
data
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
t
.
data
.
url
}])},
beforeAvatarUpload
:
function
(){
"link"
!==
this
.
type
&&
"news-item"
!==
this
.
type
||
(
this
.
uploadLinkShow
=!
1
)},
handleRemove
:
function
(){
"link"
!==
this
.
type
&&
"news-item"
!==
this
.
type
||
(
this
.
uploadLinkShow
=!
0
)}}},
l
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"el-dialog"
,{
attrs
:{
title
:
"自动回复"
,
center
:
""
,
visible
:
t
.
dialogObj
.
show
,
width
:
"900px"
,
"append-to-body"
:
""
},
on
:{
"update:visible"
:
function
(
e
){
t
.
$set
(
t
.
dialogObj
,
"show"
,
e
)}}},[
i
(
"div"
,{
staticClass
:
"focus-reply"
},[
i
(
"div"
,{
staticClass
:
"content"
},[
i
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
loading
,
expression
:
"loading"
}],
staticClass
:
"inner"
},[
i
(
"ul"
,{
staticClass
:
"weui-desktop-msg-sender__tabs"
},[
i
(
"li"
,{
staticClass
:
"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_appmsg"
,
class
:
"news"
===
t
.
type
?
"weui-desktop-msg-sender__tab_selected"
:
""
,
on
:{
click
:
function
(
e
){
t
.
onChangeType
(
"news"
)}}},[
t
.
_v
(
"图文"
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_appmsg"
,
class
:
"news-item"
===
t
.
type
?
"weui-desktop-msg-sender__tab_selected"
:
""
,
on
:{
click
:
function
(
e
){
t
.
onChangeType
(
"news-item"
)}}},[
t
.
_v
(
"图文链接"
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_appmsg"
,
class
:
"link"
===
t
.
type
?
"weui-desktop-msg-sender__tab_selected"
:
""
,
on
:{
click
:
function
(
e
){
t
.
onChangeType
(
"link"
)}}},[
t
.
_v
(
"链接"
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_text"
,
class
:
"text"
===
t
.
type
?
"weui-desktop-msg-sender__tab_selected"
:
""
,
on
:{
click
:
function
(
e
){
t
.
onChangeType
(
"text"
)}}},[
t
.
_v
(
"文字"
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_img"
,
class
:
"image"
===
t
.
type
?
"weui-desktop-msg-sender__tab_selected"
:
""
,
on
:{
click
:
function
(
e
){
t
.
onChangeType
(
"image"
)}}},[
t
.
_v
(
"图片"
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_audio"
,
class
:
"voice"
===
t
.
type
?
"weui-desktop-msg-sender__tab_selected"
:
""
,
on
:{
click
:
function
(
e
){
t
.
onChangeType
(
"voice"
)}}},[
t
.
_v
(
"语音"
)]),
t
.
_v
(
" "
),
i
(
"li"
,{
staticClass
:
"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_video"
,
class
:
"video"
===
t
.
type
?
"weui-desktop-msg-sender__tab_selected"
:
""
,
on
:{
click
:
function
(
e
){
t
.
onChangeType
(
"video"
)}}},[
t
.
_v
(
"视频"
)])]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"inner-bottom"
},[
"image"
===
t
.
type
?
i
(
"div"
,{
staticClass
:
"img-action"
},[
t
.
imageContent
?[
t
.
imageContent
.
content
?
i
(
"img"
,{
staticStyle
:{
"max-width"
:
"60%"
,
"margin-bottom"
:
"20px"
},
attrs
:{
src
:
t
.
imageContent
.
content
}}):
t
.
_e
()]:
t
.
_e
(),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"display-b"
,
staticStyle
:{
display
:
"flex"
,
"justify-content"
:
"center"
}},[
t
.
showMedia
?
t
.
_e
():
i
(
"div"
,{
staticClass
:
"img-create-access"
},[
i
(
"a"
,{
staticClass
:
"img-create-access__link"
,
attrs
:{
href
:
"javascript:;"
},
on
:{
click
:
function
(
e
){
t
.
getMediaList
(
"image"
)}}},[
t
.
_v
(
"从素材库中选择"
)])])]),
t
.
_v
(
" "
),
t
.
showMedia
&&
t
.
mediaList
.
length
>
0
?
i
(
"div"
,[
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
mediaList
},
on
:{
"row-click"
:
t
.
onChooseMedia
}},[
i
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"media_id"
,
label
:
"mediaId"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"URL"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"a"
,{
attrs
:{
href
:
t
.
row
.
url
,
target
:
"_blank"
}},[
i
(
"img"
,{
staticStyle
:{
width
:
"60px"
},
attrs
:{
src
:
t
.
row
.
url
}})])]}}])})],
1
),
t
.
_v
(
" "
),
i
(
"page"
,{
attrs
:{
total
:
t
.
total
,
limit
:
t
.
limit
},
on
:{
pageChange
:
t
.
onPageChange
},
model
:{
value
:
t
.
nowPage
,
callback
:
function
(
e
){
t
.
nowPage
=
e
},
expression
:
"nowPage"
}})],
1
):
t
.
_e
()],
2
):
t
.
_e
(),
t
.
_v
(
" "
),
"link"
===
t
.
type
||
"news-item"
===
t
.
type
?
i
(
"div"
,{
staticClass
:
"img-action"
},[
i
(
"el-form"
,{
ref
:
"form"
},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"标题"
}},[
i
(
"el-input"
,{
model
:{
value
:
t
.
linkContent
.
title
,
callback
:
function
(
e
){
t
.
$set
(
t
.
linkContent
,
"title"
,
e
)},
expression
:
"linkContent.title"
}})],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"描述"
}},[
i
(
"el-input"
,{
model
:{
value
:
t
.
linkContent
.
description
,
callback
:
function
(
e
){
t
.
$set
(
t
.
linkContent
,
"description"
,
e
)},
expression
:
"linkContent.description"
}})],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"跳转链接"
}},[
i
(
"el-input"
,{
model
:{
value
:
t
.
linkContent
.
url
,
callback
:
function
(
e
){
t
.
$set
(
t
.
linkContent
,
"url"
,
e
)},
expression
:
"linkContent.url"
}})],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"缩略图"
}},[
i
(
"el-upload"
,{
class
:{
disabled
:
!
t
.
uploadLinkShow
},
attrs
:{
action
:
"/api/public/upload/zone"
,
"http-request"
:
t
.
uploadFile
,
"before-upload"
:
t
.
beforeAvatarUpload
,
"list-type"
:
"picture-card"
,
"file-list"
:
t
.
imageLinkList
,
"on-success"
:
t
.
handleAvatarSuccess
,
"on-remove"
:
t
.
handleRemove
,
limit
:
1
}},[
i
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
)],
1
)],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
"news"
===
t
.
type
?
i
(
"div"
,{
staticClass
:
"img-action"
},[
t
.
newsContent
&&
t
.
newsContent
.
content
?[
i
(
"div"
,{
staticClass
:
"news-media"
},
t
.
_l
(
t
.
newsContent
.
content
.
news_item
,
function
(
e
,
s
){
return
i
(
"div"
,{
staticStyle
:{
position
:
"relative"
}},[
1
===
t
.
newsContent
.
content
.
news_item
.
length
?
i
(
"div"
,{
staticClass
:
"single-cover"
},[
i
(
"div"
,{
staticClass
:
"title"
},[
t
.
_v
(
t
.
_s
(
e
.
title
))]),
t
.
_v
(
" "
),
i
(
"img"
,{
staticStyle
:{
width
:
"100%"
,
"margin-top"
:
"20px"
},
attrs
:{
src
:
e
.
thumb_url
}}),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"digest"
},[
t
.
_v
(
t
.
_s
(
e
.
digest
))]),
t
.
_v
(
" "
),
i
(
"a"
,{
staticClass
:
"preview"
,
attrs
:{
href
:
e
.
url
,
target
:
"_blank"
}},[
t
.
_v
(
"
\n
预览文章
\n
"
)])]):
t
.
newsContent
.
content
.
news_item
.
length
>
1
?
i
(
"div"
,{
staticClass
:
"clear-both bottomCover"
,
staticStyle
:{
position
:
"relative"
}},[
0
===
s
?
i
(
"div"
,{
staticClass
:
"muti-cover"
},[
i
(
"img"
,{
staticStyle
:{
width
:
"100%"
,
"margin-top"
:
"20px"
},
attrs
:{
src
:
e
.
thumb_url
}}),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"bottom-title"
},[
t
.
_v
(
t
.
_s
(
e
.
title
))])]):
i
(
"div"
,{
staticClass
:
"next-cover clear-both"
},[
i
(
"span"
,{
staticClass
:
"next-title"
},[
t
.
_v
(
t
.
_s
(
e
.
title
))]),
t
.
_v
(
" "
),
i
(
"img"
,{
staticClass
:
"next-img"
,
attrs
:{
src
:
e
.
thumb_url
}})]),
t
.
_v
(
" "
),
i
(
"a"
,{
staticClass
:
"preview"
,
attrs
:{
href
:
e
.
url
,
target
:
"_blank"
}},[
t
.
_v
(
"
\n
预览文章
\n
"
)])]):
t
.
_e
()])}))]:
t
.
_e
(),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"display-b"
},[
t
.
showMedia
?
t
.
_e
():
i
(
"div"
,{
staticClass
:
"img-create-access"
},[
i
(
"a"
,{
staticClass
:
"img-create-access__link"
,
attrs
:{
href
:
"javascript:;"
},
on
:{
click
:
function
(
e
){
t
.
getMediaList
(
t
.
type
)}}},[
t
.
_v
(
"从素材库中选择"
)])])]),
t
.
_v
(
" "
),
t
.
showMedia
&&
t
.
mediaList
.
length
>
0
?
i
(
"div"
,[
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
mediaList
},
on
:{
"row-click"
:
t
.
onChooseMedia
}},[
i
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"media_id"
,
label
:
"mediaId"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"图文"
,
className
:
"news-media"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
t
.
_l
(
e
.
row
.
content
.
news_item
,
function
(
s
,
n
){
return
i
(
"div"
,{
staticStyle
:{
position
:
"relative"
}},[
1
===
e
.
row
.
content
.
news_item
.
length
?
i
(
"div"
,{
staticClass
:
"single-cover"
},[
i
(
"div"
,{
staticClass
:
"title"
},[
t
.
_v
(
t
.
_s
(
s
.
title
))]),
t
.
_v
(
" "
),
i
(
"img"
,{
staticStyle
:{
width
:
"100%"
,
"margin-top"
:
"20px"
},
attrs
:{
src
:
s
.
thumb_url
}}),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"digest"
},[
t
.
_v
(
t
.
_s
(
s
.
digest
))]),
t
.
_v
(
" "
),
i
(
"a"
,{
staticClass
:
"preview"
,
attrs
:{
href
:
s
.
url
,
target
:
"_blank"
}},[
t
.
_v
(
"
\n
预览文章
\n
"
)])]):
e
.
row
.
content
.
news_item
.
length
>
1
?
i
(
"div"
,{
staticClass
:
"clear-both bottomCover"
,
staticStyle
:{
position
:
"relative"
}},[
0
===
n
?
i
(
"div"
,{
staticClass
:
"muti-cover"
},[
i
(
"img"
,{
staticStyle
:{
width
:
"100%"
,
"margin-top"
:
"20px"
},
attrs
:{
src
:
s
.
thumb_url
}}),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"bottom-title"
},[
t
.
_v
(
t
.
_s
(
s
.
title
))])]):
i
(
"div"
,{
staticClass
:
"next-cover clear-both"
},[
i
(
"span"
,{
staticClass
:
"next-title"
},[
t
.
_v
(
t
.
_s
(
s
.
title
))]),
t
.
_v
(
" "
),
i
(
"img"
,{
staticClass
:
"next-img"
,
attrs
:{
src
:
s
.
thumb_url
}})]),
t
.
_v
(
" "
),
i
(
"a"
,{
staticClass
:
"preview"
,
attrs
:{
href
:
s
.
url
,
target
:
"_blank"
}},[
t
.
_v
(
"
\n
预览文章
\n
"
)])]):
t
.
_e
()])})}}])})],
1
),
t
.
_v
(
" "
),
i
(
"page2"
,{
attrs
:{
total
:
t
.
total
,
limit
:
t
.
limit
},
on
:{
pageChange
:
t
.
onPageChange
},
model
:{
value
:
t
.
nowPage
,
callback
:
function
(
e
){
t
.
nowPage
=
e
},
expression
:
"nowPage"
}})],
1
):
t
.
_e
()],
2
):
t
.
_e
(),
t
.
_v
(
" "
),
"video"
===
t
.
type
?
i
(
"div"
,{
staticClass
:
"img-action"
,
staticStyle
:{
"text-align"
:
"left"
}},[
t
.
videoContent
&&
t
.
videoContent
.
content
?[
t
.
videoContent
.
content
&&
t
.
videoContent
.
content
.
down_url
?
i
(
"a"
,{
attrs
:{
href
:
t
.
videoContent
.
content
.
down_url
,
target
:
"_blank"
}},[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
videoContent
.
content
.
title
)
+
"
\n
"
)]):
t
.
_e
()]:
t
.
_e
(),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"display-b"
},[
t
.
showMedia
?
t
.
_e
():
i
(
"div"
,{
staticClass
:
"img-create-access"
},[
i
(
"a"
,{
staticClass
:
"img-create-access__link"
,
attrs
:{
href
:
"javascript:;"
},
on
:{
click
:
function
(
e
){
t
.
getMediaList
(
t
.
type
)}}},[
t
.
_v
(
"从素材库中选择"
)])])]),
t
.
_v
(
" "
),
t
.
showMedia
&&
t
.
mediaList
.
length
>
0
?
i
(
"div"
,[
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
mediaList
},
on
:{
"row-click"
:
t
.
onChooseMedia
}},[
i
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"media_id"
,
label
:
"mediaId"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"URL"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
e
.
row
.
info
&&
e
.
row
.
info
.
down_url
?
i
(
"a"
,{
attrs
:{
href
:
e
.
row
.
info
.
down_url
,
target
:
"_blank"
}},[
t
.
_v
(
"
\n
"
+
t
.
_s
(
e
.
row
.
info
.
title
)
+
"
\n
"
)]):
t
.
_e
()]}}])})],
1
),
t
.
_v
(
" "
),
i
(
"page3"
,{
attrs
:{
total
:
t
.
total
,
limit
:
t
.
limit
},
on
:{
pageChange
:
t
.
onPageChange
},
model
:{
value
:
t
.
nowPage
,
callback
:
function
(
e
){
t
.
nowPage
=
e
},
expression
:
"nowPage"
}})],
1
):
t
.
_e
()],
2
):
t
.
_e
(),
t
.
_v
(
" "
),
"voice"
===
t
.
type
?
i
(
"div"
,{
staticClass
:
"img-action"
,
staticStyle
:{
"text-align"
:
"left"
}},[
t
.
voiceContent
&&
t
.
voiceContent
.
content
?[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
voiceContent
.
content
.
name
)
+
"
\n
"
)]:
t
.
_e
(),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"display-b"
},[
t
.
showMedia
?
t
.
_e
():
i
(
"div"
,{
staticClass
:
"img-create-access"
},[
i
(
"a"
,{
staticClass
:
"img-create-access__link"
,
attrs
:{
href
:
"javascript:;"
},
on
:{
click
:
function
(
e
){
t
.
getMediaList
(
t
.
type
)}}},[
t
.
_v
(
"从素材库中选择"
)])])]),
t
.
_v
(
" "
),
t
.
showMedia
&&
t
.
mediaList
.
length
>
0
?
i
(
"div"
,[
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
mediaList
},
on
:{
"row-click"
:
t
.
onChooseMedia
}},[
i
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"media_id"
,
label
:
"mediaId"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"URL"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
e
.
row
.
info
&&
e
.
row
.
info
.
down_url
?
i
(
"a"
,{
attrs
:{
href
:
e
.
row
.
info
.
down_url
,
target
:
"_blank"
}},[
t
.
_v
(
"
\n
"
+
t
.
_s
(
e
.
row
.
info
.
title
)
+
"
\n
"
)]):
t
.
_e
()]}}])})],
1
),
t
.
_v
(
" "
),
i
(
"page4"
,{
attrs
:{
total
:
t
.
total
,
limit
:
t
.
limit
},
on
:{
pageChange
:
t
.
onPageChange
},
model
:{
value
:
t
.
nowPage
,
callback
:
function
(
e
){
t
.
nowPage
=
e
},
expression
:
"nowPage"
}})],
1
):
t
.
_e
()],
2
):
"text"
===
t
.
type
?
i
(
"div"
,{
staticClass
:
"inner-emotion_editor"
},[
i
(
"div"
,{
staticClass
:
"inner-edit_area"
},[
i
(
"el-input"
,{
attrs
:{
type
:
"textarea"
,
autosize
:{
minRows
:
4
,
maxRows
:
8
},
placeholder
:
"请输入内容"
},
model
:{
value
:
t
.
content
,
callback
:
function
(
e
){
t
.
content
=
e
},
expression
:
"content"
}})],
1
),
t
.
_v
(
" "
),
i
(
"div"
,{
staticStyle
:{
float
:
"right"
}},[
i
(
"el-popover"
,{
attrs
:{
placement
:
"bottom-end"
,
width
:
"400"
,
offset
:
10
,
trigger
:
"hover"
},
model
:{
value
:
t
.
showEmotion
,
callback
:
function
(
e
){
t
.
showEmotion
=
e
},
expression
:
"showEmotion"
}},[
i
(
"div"
,[
i
(
"emotion"
,{
attrs
:{
height
:
200
},
on
:{
emotion
:
t
.
handleEmotion
}})],
1
),
t
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
slot
:
"reference"
,
type
:
"text"
},
on
:{
click
:
function
(
e
){
t
.
showEmotion
=!
t
.
showEmotion
}},
slot
:
"reference"
},[
i
(
"span"
,{
staticClass
:
"icon_emotion emotion_switch"
})])],
1
)],
1
)]):
t
.
_e
()]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"tool_bar"
},[
i
(
"el-button"
,{
on
:{
click
:
t
.
close
}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
i
(
"el-button"
,{
staticClass
:
"weui-desktop-btn weui-desktop-btn_primary"
,
on
:{
click
:
t
.
save
}},[
t
.
_v
(
"保存"
)])],
1
)])])])])},
staticRenderFns
:[]};
var
r
=
{
props
:[
"newObj"
],
components
:{
dialogCom
:
i
(
"VU/8"
)(
o
,
l
,
!
1
,
function
(
t
){
i
(
"5C8T"
),
i
(
"IxHi"
)},
"data-v-086a2a2e"
,
null
).
exports
},
filters
:{
typeFilter
:
function
(
t
){
return
t
?
"text"
===
t
?
"文字"
:
"image"
===
t
?
"图片"
:
"news"
===
t
?
"图文"
:
"video"
===
t
?
"视频"
:
"voice"
===
t
?
"语音"
:
"link"
===
t
?
"链接"
:
"news-item"
===
t
?
"图文链接"
:
val
:
""
}},
data
:
function
(){
return
{
title
:
"新建二维码"
,
activeName
:
"autoReply"
,
form
:{
title
:
null
,
type
:
2
,
invite_code
:
null
,
status
:
0
,
end_at
:
null
,
id
:
null
},
dialogObj
:{
show
:
!
1
,
index
:
-
1
,
list
:[]},
list
:[],
pickerOptions1
:{
disabledDate
:
function
(
t
){
var
e
=
new
Date
,
i
=
new
Date
(
e
.
getFullYear
(),
e
.
getMonth
()
+
1
,
e
.
getDate
());
return
!
(
t
.
getTime
()
>
e
.
getTime
()
&&
t
.
getTime
()
<
i
.
getTime
())}},
typeOption
:[{
label
:
"临时"
,
value
:
2
},{
label
:
"永久"
,
value
:
1
}],
statusOption
:[{
label
:
"正常"
,
value
:
0
},{
label
:
"禁用"
,
value
:
1
}]}},
watch
:{
"newObj.show"
:
function
(
t
){
t
&&
this
.
initDialog
()}},
methods
:{
allowEdit
:
function
(){},
initDialog
:
function
(){
var
t
=
this
.
newObj
;
this
.
form
=
{
title
:
t
.
title
,
type
:
t
.
type
,
invite_code
:
t
.
invite_code
,
status
:
t
.
status
,
end_at
:
t
.
end_at
,
id
:
t
.
id
},
this
.
list
=
t
.
list
?
t
.
list
:[],
t
.
readFlag
&&
(
this
.
title
=
"查看二维码详情"
),
t
.
editFlag
&&
(
this
.
title
=
"编辑二维码详情"
),
t
.
readFlag
||
t
.
editFlag
||
(
this
.
title
=
"新建二维码"
)},
emotion
:
function
(
t
){
var
e
=
t
.
replace
(
/
\/
/gi
,
""
);
return
'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'
+
[
"微笑"
,
"撇嘴"
,
"色"
,
"发呆"
,
"得意"
,
"流泪"
,
"害羞"
,
"闭嘴"
,
"睡"
,
"大哭"
,
"尴尬"
,
"发怒"
,
"调皮"
,
"呲牙"
,
"惊讶"
,
"难过"
,
"酷"
,
"冷汗"
,
"抓狂"
,
"吐"
,
"偷笑"
,
"可爱"
,
"白眼"
,
"傲慢"
,
"饥饿"
,
"困"
,
"惊恐"
,
"流汗"
,
"憨笑"
,
"大兵"
,
"奋斗"
,
"咒骂"
,
"疑问"
,
"嘘"
,
"晕"
,
"折磨"
,
"衰"
,
"骷髅"
,
"敲打"
,
"再见"
,
"擦汗"
,
"抠鼻"
,
"鼓掌"
,
"糗大了"
,
"坏笑"
,
"左哼哼"
,
"右哼哼"
,
"哈欠"
,
"鄙视"
,
"委屈"
,
"快哭了"
,
"阴险"
,
"亲亲"
,
"吓"
,
"可怜"
,
"菜刀"
,
"西瓜"
,
"啤酒"
,
"篮球"
,
"乒乓"
,
"咖啡"
,
"饭"
,
"猪头"
,
"玫瑰"
,
"凋谢"
,
"示爱"
,
"爱心"
,
"心碎"
,
"蛋糕"
,
"闪电"
,
"炸弹"
,
"刀"
,
"足球"
,
"瓢虫"
,
"便便"
,
"月亮"
,
"太阳"
,
"礼物"
,
"拥抱"
,
"强"
,
"弱"
,
"握手"
,
"胜利"
,
"抱拳"
,
"勾引"
,
"拳头"
,
"差劲"
,
"爱你"
,
"NO"
,
"OK"
,
"爱情"
,
"飞吻"
,
"跳跳"
,
"发抖"
,
"怄火"
,
"转圈"
,
"磕头"
,
"回头"
,
"跳绳"
,
"挥手"
,
"激动"
,
"街舞"
,
"献吻"
,
"左太极"
,
"右太极"
].
indexOf
(
e
)
+
'.gif" align="middle">'
},
onSave
:
function
(){
var
t
=
this
,
e
=
{
title
:
this
.
form
.
title
,
type
:
this
.
form
.
type
,
invite_code
:
"CC-SOURCE-"
+
this
.
form
.
invite_code
,
status
:
this
.
form
.
status
,
end_at
:
this
.
form
.
end_at
};
this
.
list
.
length
>
0
&&
(
e
.
auto_reply
=
JSON
.
stringify
(
this
.
list
)),
this
.
form
.
id
?
Object
(
s
.
_124
)(
this
.
form
.
id
,
e
).
then
(
function
(
e
){
t
.
$message
(
"修改成功"
),
t
.
$emit
(
"initPage"
),
t
.
form
=
{
title
:
null
,
type
:
2
,
invite_code
:
null
,
status
:
0
,
end_at
:
null
},
t
.
newObj
.
show
=!
1
,
t
.
$emit
(
"changeShow"
,
!
1
)}):
Object
(
s
.
C
)(
e
).
then
(
function
(
e
){
t
.
$message
(
"创建成功"
),
t
.
$emit
(
"initPage"
),
t
.
form
=
{
title
:
null
,
type
:
2
,
invite_code
:
null
,
status
:
0
,
end_at
:
null
},
t
.
newObj
.
show
=!
1
,
t
.
$emit
(
"changeShow"
,
!
1
)})},
changeShow
:
function
(
t
){
this
.
dialogObj
.
show
=
t
},
getReplyList
:
function
(
t
){
if
(
-
1
===
t
.
index
){
var
e
=
0
===
this
.
list
.
length
?
-
1
:
this
.
list
.
length
-
1
;
this
.
list
.
splice
(
e
+
1
,
0
,
t
.
desc
)}
else
this
.
list
.
splice
(
t
.
index
,
1
,
t
.
desc
)},
editRow
:
function
(
t
,
e
){
this
.
dialogObj
=
{
show
:
!
0
,
index
:
t
,
desc
:
this
.
list
[
t
]}},
addNew
:
function
(){
this
.
dialogObj
=
{
show
:
!
0
,
index
:
-
1
,
desc
:{}}},
onCancel
:
function
(){
this
.
newObj
.
show
=!
1
,
this
.
$emit
(
"changeShow"
,
!
1
)},
deleteRow
:
function
(
t
,
e
){
var
i
=
this
;
this
.
$confirm
(
"此操作将删除该文件, 是否继续?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
i
.
list
.
splice
(
t
,
1
)}).
catch
(
function
(){
i
.
$message
({
type
:
"success"
,
message
:
"已取消删除!"
})})},
upIndex
:
function
(
t
,
e
){
if
(
t
>
0
){
var
i
=
e
[
t
-
1
];
Vue
.
set
(
e
,
t
-
1
,
e
[
t
]),
Vue
.
set
(
e
,
t
,
i
),
this
.
$message
({
type
:
"success"
,
message
:
"操作成功!"
})}},
downIndex
:
function
(
t
,
e
){
if
(
t
<
e
.
length
-
1
){
var
i
=
e
[
t
+
1
];
Vue
.
set
(
e
,
t
+
1
,
e
[
t
]),
Vue
.
set
(
e
,
t
,
i
),
this
.
$message
({
type
:
"success"
,
message
:
"操作成功!"
})}}}},
c
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"el-dialog"
,{
attrs
:{
title
:
t
.
title
,
width
:
"800px"
,
"close-on-press-escape"
:
!
1
,
"close-on-click-modal"
:
!
1
,
"show-close"
:
!
1
,
visible
:
t
.
newObj
.
show
},
on
:{
"update:visible"
:
function
(
e
){
t
.
$set
(
t
.
newObj
,
"show"
,
e
)}}},[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"100px"
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"名称"
}},[
i
(
"el-input"
,{
attrs
:{
disabled
:
t
.
newObj
.
readFlag
},
model
:{
value
:
t
.
form
.
title
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"title"
,
e
)},
expression
:
"form.title"
}})],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"推广码"
}},[
i
(
"el-input"
,{
attrs
:{
disabled
:
t
.
newObj
.
readFlag
||
t
.
newObj
.
editFlag
},
model
:{
value
:
t
.
form
.
invite_code
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"invite_code"
,
e
)},
expression
:
"form.invite_code"
}},[
i
(
"template"
,{
slot
:
"prepend"
},[
t
.
_v
(
"CC-SOURCE-"
)])],
2
)],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"状态"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
disabled
:
t
.
newObj
.
readFlag
},
model
:{
value
:
t
.
form
.
status
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"status"
,
e
)},
expression
:
"form.status"
}},
t
.
_l
(
t
.
statusOption
,
function
(
t
){
return
i
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
value
}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"二维码类型"
}},[
i
(
"el-switch"
,{
attrs
:{
disabled
:
t
.
newObj
.
readFlag
||
t
.
newObj
.
editFlag
,
"active-value"
:
1
,
"inactive-value"
:
2
,
"active-text"
:
"永久"
,
"inactive-text"
:
"临时"
},
model
:{
value
:
t
.
form
.
type
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"type"
,
e
)},
expression
:
"form.type"
}}),
t
.
_v
(
" "
),
2
===
t
.
form
.
type
?
i
(
"span"
,{
staticStyle
:{
"font-size"
:
"12px"
,
color
:
"#888"
}},[
t
.
_v
(
"
\n
(最多持续一个月)
\n
"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
1
===
t
.
form
.
type
?
i
(
"span"
,{
staticStyle
:{
"font-size"
:
"12px"
,
color
:
"#888"
}},[
t
.
_v
(
"
\n
(永久二维码最多10万个)
\n
"
)]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
2
===
t
.
form
.
type
?
i
(
"el-form-item"
,{
attrs
:{
label
:
"结束时间"
}},[
i
(
"el-date-picker"
,{
attrs
:{
disabled
:
t
.
newObj
.
readFlag
||
t
.
newObj
.
editFlag
,
type
:
"datetime"
,
"picker-options"
:
t
.
pickerOptions1
,
format
:
"yyyy-MM-dd HH:mm:ss"
,
"value-format"
:
"yyyy-MM-dd HH:mm:ss"
,
placeholder
:
"选择日期"
},
model
:{
value
:
t
.
form
.
end_at
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"end_at"
,
e
)},
expression
:
"form.end_at"
}})],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
i
(
"el-tabs"
,{
attrs
:{
type
:
"card"
},
model
:{
value
:
t
.
activeName
,
callback
:
function
(
e
){
t
.
activeName
=
e
},
expression
:
"activeName"
}},[
i
(
"el-tab-pane"
,{
attrs
:{
label
:
"自动回复"
,
name
:
"autoReply"
}},[
t
.
newObj
.
readFlag
?
t
.
_e
():
i
(
"el-button"
,{
staticStyle
:{
float
:
"right"
},
on
:{
click
:
t
.
addNew
}},[
t
.
_v
(
"添加+"
)]),
t
.
_v
(
" "
),
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
list
,
"max-height"
:
"800"
}},[
i
(
"el-table-column"
,{
attrs
:{
fixed
:
""
,
label
:
"类型"
,
width
:
"150"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"typeFilter"
)(
e
.
row
.
type
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"内容"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
"text"
===
e
.
row
.
type
?
i
(
"div"
,{
domProps
:{
innerHTML
:
t
.
_s
(
e
.
row
.
content
.
replace
(
/
\/[\u
4E00-
\u
9FA5
]{1,3}
/gi
,
t
.
emotion
))}}):
"image"
===
e
.
row
.
type
&&
e
.
row
.
content
?
i
(
"a"
,{
attrs
:{
href
:
e
.
row
.
content
,
target
:
"_blank"
}},[
i
(
"img"
,{
staticClass
:
"shotcut"
,
attrs
:{
src
:
e
.
row
.
content
}})]):
"video"
===
e
.
row
.
type
?
i
(
"div"
,[
i
(
"a"
,{
attrs
:{
href
:
e
.
row
.
content
.
down_url
,
target
:
"_blank"
}},[
t
.
_v
(
t
.
_s
(
e
.
row
.
content
.
title
))])]):
"voice"
===
e
.
row
.
type
?
i
(
"div"
,[
t
.
_v
(
"
\n
"
+
t
.
_s
(
e
.
row
.
content
.
name
)
+
"
\n
"
)]):
"voice"
===
e
.
row
.
type
?
i
(
"div"
,[
i
(
"a"
,{
attrs
:{
href
:
e
.
row
.
content
.
down_url
,
target
:
"_blank"
}},[
t
.
_v
(
t
.
_s
(
e
.
row
.
content
.
title
))])]):
"news"
===
e
.
row
.
type
?
i
(
"div"
,[
i
(
"div"
,{
staticClass
:
"news-media"
},
t
.
_l
(
e
.
row
.
content
.
news_item
,
function
(
s
,
n
){
return
i
(
"div"
,{
staticStyle
:{
position
:
"relative"
}},[
1
===
e
.
row
.
content
.
news_item
.
length
?
i
(
"div"
,{
staticClass
:
"single-cover"
},[
i
(
"div"
,{
staticClass
:
"title"
},[
t
.
_v
(
t
.
_s
(
s
.
title
))]),
t
.
_v
(
" "
),
i
(
"img"
,{
staticStyle
:{
width
:
"100%"
,
"margin-top"
:
"20px"
},
attrs
:{
src
:
s
.
thumb_url
}}),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"digest"
},[
t
.
_v
(
t
.
_s
(
s
.
digest
))]),
t
.
_v
(
" "
),
i
(
"a"
,{
staticClass
:
"preview"
,
attrs
:{
href
:
s
.
url
,
target
:
"_blank"
}},[
t
.
_v
(
"
\n
预览文章
\n
"
)])]):
e
.
row
.
content
.
news_item
.
length
>
1
?
i
(
"div"
,{
staticClass
:
"clear-both bottomCover"
,
staticStyle
:{
position
:
"relative"
}},[
0
===
n
?
i
(
"div"
,{
staticClass
:
"muti-cover"
},[
i
(
"img"
,{
staticStyle
:{
width
:
"100%"
,
"margin-top"
:
"20px"
},
attrs
:{
src
:
s
.
thumb_url
}}),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"bottom-title"
},[
t
.
_v
(
t
.
_s
(
s
.
title
))])]):
i
(
"div"
,{
staticClass
:
"next-cover clear-both"
},[
i
(
"span"
,{
staticClass
:
"next-title"
},[
t
.
_v
(
t
.
_s
(
s
.
title
))]),
t
.
_v
(
" "
),
i
(
"img"
,{
staticClass
:
"next-img"
,
attrs
:{
src
:
s
.
thumb_url
}})]),
t
.
_v
(
" "
),
i
(
"a"
,{
staticClass
:
"preview"
,
attrs
:{
href
:
s
.
url
,
target
:
"_blank"
}},[
t
.
_v
(
"
\n
预览文章
\n
"
)])]):
t
.
_e
()])}))]):
"link"
===
e
.
row
.
type
?
i
(
"div"
,{
staticClass
:
"news-media"
,
staticStyle
:{
display
:
"inline-block"
,
width
:
"150px"
}},[
i
(
"el-card"
,{
attrs
:{
"body-style"
:{
padding
:
"0px"
}}},[
i
(
"a"
,{
staticStyle
:{
position
:
"relative"
,
color
:
"#333"
,
"text-decoration"
:
"none"
},
attrs
:{
href
:
e
.
row
.
url
,
target
:
"_blank"
}},[
i
(
"div"
,{
staticClass
:
"ellip"
,
staticStyle
:{
margin
:
"3px"
,
"line-height"
:
"2"
}},[
t
.
_v
(
t
.
_s
(
e
.
row
.
title
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"f-bt"
,
staticStyle
:{
position
:
"relative"
}},[
i
(
"div"
,{
staticStyle
:{
color
:
"#666"
,
"margin-left"
:
"3px"
,
"word-wrap"
:
"break-word"
,
"word-break"
:
"break-all"
,
width
:
"60%"
}},[
t
.
_v
(
t
.
_s
(
e
.
row
.
description
))]),
t
.
_v
(
" "
),
i
(
"img"
,{
staticStyle
:{
width
:
"35%"
,
height
:
"auto"
},
attrs
:{
src
:
e
.
row
.
thumb_url
}})])])])],
1
):
"news-item"
===
e
.
row
.
type
?
i
(
"div"
,{
staticClass
:
"news-media"
,
staticStyle
:{
width
:
"150px"
}},[
i
(
"el-card"
,{
attrs
:{
"body-style"
:{
padding
:
"0px"
}}},[
i
(
"a"
,{
staticStyle
:{
position
:
"relative"
,
color
:
"#333"
,
"text-decoration"
:
"none"
},
attrs
:{
href
:
e
.
row
.
url
,
target
:
"_blank"
}},[
i
(
"img"
,{
staticStyle
:{
width
:
"100%"
,
height
:
"auto"
},
attrs
:{
src
:
e
.
row
.
thumb_url
}}),
t
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"ellip"
,
staticStyle
:{
margin
:
"3px"
,
"line-height"
:
"2"
}},[
t
.
_v
(
t
.
_s
(
e
.
row
.
title
))]),
t
.
_v
(
" "
),
i
(
"div"
,{
staticStyle
:{
color
:
"#666"
,
width
:
"63%"
,
"word-break"
:
"break-all"
,
"word-wrap"
:
"break-word"
,
"line-height"
:
"1"
}},[
t
.
_v
(
t
.
_s
(
e
.
row
.
description
))])])])],
1
):
t
.
_e
()]}}])}),
t
.
_v
(
" "
),
t
.
newObj
.
readFlag
||
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-table-column"
,{
attrs
:{
fixed
:
"right"
,
label
:
"操作"
,
width
:
"200"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
i
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
nativeOn
:{
click
:
function
(
i
){
i
.
preventDefault
(),
t
.
editRow
(
e
.
$index
,
t
.
list
)}}},[
t
.
_v
(
"
\n
编辑
\n
"
)]),
t
.
_v
(
" "
),
t
.
$store
.
state
.
deletePermission
?
i
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
nativeOn
:{
click
:
function
(
i
){
i
.
preventDefault
(),
t
.
deleteRow
(
e
.
$index
,
t
.
list
)}}},[
t
.
_v
(
"
\n
移除
\n
"
)]):
t
.
_e
(),
t
.
_v
(
" "
),
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"i"
,{
staticClass
:
"iconfont icon-shangyi"
,
staticStyle
:{
cursor
:
"pointer"
,
color
:
"#409EFF"
,
"margin-left"
:
"10px"
},
on
:{
click
:
function
(
i
){
t
.
upIndex
(
e
.
$index
,
t
.
list
)}}}),
t
.
_v
(
" "
),
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"i"
,{
staticClass
:
"iconfont icon-xiayi"
,
staticStyle
:{
cursor
:
"pointer"
,
color
:
"#409EFF"
},
on
:{
click
:
function
(
i
){
t
.
downIndex
(
e
.
$index
,
t
.
list
)}}})]}}])})],
1
)],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
t
.
newObj
.
readFlag
?
t
.
_e
():
i
(
"el-button"
,{
on
:{
click
:
t
.
onCancel
}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
t
.
newObj
.
readFlag
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onSave
}},[
t
.
_v
(
"确 定"
)]),
t
.
_v
(
" "
),
t
.
newObj
.
readFlag
?
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onCancel
}},[
t
.
_v
(
"确 定"
)]):
t
.
_e
()],
1
),
t
.
_v
(
" "
),
t
.
dialogObj
.
show
?
i
(
"dialog-com"
,{
attrs
:{
dialogObj
:
t
.
dialogObj
},
on
:{
changeShow
:
t
.
changeShow
,
reflash
:
t
.
getReplyList
}}):
t
.
_e
()],
1
)},
staticRenderFns
:[]};
var
d
=
i
(
"VU/8"
)(
r
,
c
,
!
1
,
function
(
t
){
i
(
"dyNO"
)},
"data-v-b3aeffb8"
,
null
).
exports
,
u
=
i
(
"+TkF"
),
m
=
{
name
:
"index"
,
filters
:{
qrType
:
function
(
t
){
return
u
.
u
[
t
]},
qrStatus
:
function
(
t
){
return
u
.
t
[
t
]},
qrCodeType
:
function
(
t
){
return
u
.
s
[
t
]}},
data
:
function
(){
return
{
newObj
:{
show
:
!
1
},
list
:[],
limit
:
10
,
nowPage
:
1
,
typeOption
:[{
label
:
"请选择"
,
value
:
""
},{
label
:
"永久"
,
value
:
1
},{
label
:
"临时"
,
value
:
2
}],
code_typeOption
:[{
label
:
"请选择"
,
value
:
""
},{
label
:
"渠道"
,
value
:
1
},{
label
:
"用户"
,
value
:
2
}],
statusOption
:[{
label
:
"请选择"
,
value
:
""
},{
label
:
"正常"
,
value
:
0
},{
label
:
"禁用"
,
value
:
1
}],
total
:
0
,
searchFrom
:{
title
:
""
,
type
:
""
,
code_type
:
""
,
status
:
""
}}},
components
:{
dialogDiv
:
d
,
page
:
n
.
a
},
mounted
:
function
(){
this
.
initPage
()},
methods
:{
onPageChange
:
function
(
t
){
this
.
nowPage
=
t
,
this
.
initPage
()},
onSizeChange
:
function
(
t
){
this
.
nowPage
=
1
,
this
.
limit
=
t
,
this
.
initPage
()},
initPage
:
function
(){
var
t
=
this
,
e
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
searchFrom
.
title
&&
(
e
.
title
=
this
.
searchFrom
.
title
),
this
.
searchFrom
.
type
&&
(
e
.
type
=
this
.
searchFrom
.
type
),
this
.
searchFrom
.
code_type
&&
(
e
.
code_type
=
this
.
searchFrom
.
code_type
),
this
.
searchFrom
.
status
&&
(
e
.
status
=
this
.
searchFrom
.
status
),
Object
(
s
.
_61
)(
e
).
then
(
function
(
e
){
t
.
list
=
e
?
e
.
list
:[],
t
.
total
=
e
?
e
.
total
:
0
})},
newQrcode
:
function
(){
this
.
newObj
=
{
show
:
!
0
,
title
:
null
,
type
:
2
,
invite_code
:
null
,
status
:
0
,
end_at
:
null
}},
editRow
:
function
(
t
,
e
){
var
i
=
this
,
n
=
e
[
t
];
Object
(
s
.
_60
)(
n
.
id
).
then
(
function
(
t
){
i
.
newObj
=
{
title
:
t
.
title
,
type
:
t
.
type
,
invite_code
:
t
.
invite_code
?
t
.
invite_code
.
split
(
"-"
)[
2
]:
""
,
status
:
t
.
status
,
end_at
:
t
.
end_at
,
id
:
n
.
id
},
t
.
auto_reply
&&
(
i
.
newObj
.
list
=
JSON
.
parse
(
t
.
auto_reply
)),
i
.
newObj
.
editFlag
=!
0
,
i
.
newObj
.
show
=!
0
})},
editComment
:
function
(
t
,
e
){
var
i
=
this
;
this
.
$prompt
(
""
,
"编辑备注"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
inputType
:
"textarea"
,
inputValue
:
e
[
t
].
desc
?
e
[
t
].
desc
:
""
}).
then
(
function
(
n
){
var
a
=
n
.
value
;
Object
(
s
.
_125
)(
e
[
t
].
id
,{
desc
:
a
}).
then
(
function
(
t
){
i
.
$message
({
type
:
"success"
,
message
:
"编辑备注成功"
}),
i
.
initPage
()})})},
detail
:
function
(
t
,
e
){
var
i
=
this
,
n
=
e
[
t
];
Object
(
s
.
_60
)(
n
.
id
).
then
(
function
(
t
){
i
.
newObj
=
{
title
:
t
.
title
,
type
:
t
.
type
,
invite_code
:
t
.
invite_code
?
t
.
invite_code
.
split
(
"-"
)[
2
]:
""
,
status
:
t
.
status
,
end_at
:
t
.
end_at
,
id
:
n
.
id
},
t
.
auto_reply
&&
(
i
.
newObj
.
list
=
JSON
.
parse
(
t
.
auto_reply
)),
i
.
newObj
.
readFlag
=!
0
,
i
.
newObj
.
show
=!
0
})},
changeShow
:
function
(
t
){
this
.
newObj
=
{
show
:
!
1
,
title
:
null
,
type
:
2
,
invite_code
:
null
,
status
:
0
,
end_at
:
null
}},
getQrCodeDetail
:
function
(
t
){
Object
(
s
.
_60
)(
t
).
then
(
function
(
t
){})}}},
h
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
i
=
t
.
_self
.
_c
||
e
;
return
i
(
"div"
,{
staticClass
:
"qrcode"
},[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"100px"
,
inline
:
""
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"标题"
}},[
i
(
"el-input"
)],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"二维码类型"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
function
(
e
){
t
.
nowPage
=
1
,
t
.
initPage
()}},
model
:{
value
:
t
.
searchFrom
.
type
,
callback
:
function
(
e
){
t
.
$set
(
t
.
searchFrom
,
"type"
,
e
)},
expression
:
"searchFrom.type"
}},
t
.
_l
(
t
.
typeOption
,
function
(
t
){
return
i
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
value
}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"渠道类型"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
function
(
e
){
t
.
nowPage
=
1
,
t
.
initPage
()}},
model
:{
value
:
t
.
searchFrom
.
code_type
,
callback
:
function
(
e
){
t
.
$set
(
t
.
searchFrom
,
"code_type"
,
e
)},
expression
:
"searchFrom.code_type"
}},
t
.
_l
(
t
.
code_typeOption
,
function
(
t
){
return
i
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
value
}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
"状态"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
function
(
e
){
t
.
nowPage
=
1
,
t
.
initPage
()}},
model
:{
value
:
t
.
searchFrom
.
status
,
callback
:
function
(
e
){
t
.
$set
(
t
.
searchFrom
,
"status"
,
e
)},
expression
:
"searchFrom.status"
}},
t
.
_l
(
t
.
statusOption
,
function
(
t
){
return
i
(
"el-option"
,{
key
:
t
.
value
,
attrs
:{
label
:
t
.
label
,
value
:
t
.
value
}})}))],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
t
.
initPage
}},[
t
.
_v
(
"
\n
搜索
\n
"
)])],
1
),
t
.
_v
(
" "
),
i
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
i
(
"el-button"
,{
attrs
:{
type
:
"success"
,
plain
:
""
},
on
:{
click
:
function
(
e
){
t
.
newObj
.
show
=!
0
}}},[
t
.
_v
(
"
\n
创建二维码
\n
"
)])],
1
)],
1
),
t
.
_v
(
" "
),
i
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
list
}},[
i
(
"el-table-column"
,{
attrs
:{
prop
:
"title"
,
label
:
"标题"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"title"
,
label
:
"二维码类型"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
t
.
_f
(
"qrType"
)(
e
.
row
.
type
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"invite_code"
,
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
(
"qrCodeType"
)(
e
.
row
.
code_type
))
+
"
\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
(
"qrStatus"
)(
e
.
row
.
status
))
+
"
\n
"
)]}}])}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
label
:
"二维码"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
i
(
"a"
,{
attrs
:{
target
:
"_blank"
,
download
:
"二维码"
,
href
:
t
.
row
.
open_url
}},[
i
(
"img"
,{
staticClass
:
"img"
,
attrs
:{
src
:
t
.
row
.
open_url
}})])]}}])}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
prop
:
"desc"
,
label
:
"备注"
}}),
t
.
_v
(
" "
),
i
(
"el-table-column"
,{
attrs
:{
fixed
:
"right"
,
label
:
"操作"
,
width
:
"200"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
on
:{
click
:
function
(
i
){
t
.
editComment
(
e
.
$index
,
t
.
list
)}}},[
t
.
_v
(
"
\n
备注
\n
"
)]),
t
.
_v
(
" "
),
t
.
$store
.
state
.
readonly
?
t
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
nativeOn
:{
click
:
function
(
i
){
i
.
preventDefault
(),
t
.
editRow
(
e
.
$index
,
t
.
list
)}}},[
t
.
_v
(
"
\n
编辑
\n
"
)]),
t
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
type
:
"text"
,
size
:
"small"
},
nativeOn
:{
click
:
function
(
i
){
i
.
preventDefault
(),
t
.
detail
(
e
.
$index
,
t
.
list
)}}},[
t
.
_v
(
"
\n
查看详情
\n
"
)])]}}])})],
1
),
t
.
_v
(
" "
),
i
(
"page"
,{
attrs
:{
nowPage
:
t
.
nowPage
,
total
:
t
.
total
,
limit
:
t
.
limit
},
on
:{
pageChange
:
t
.
onPageChange
,
sizeChange
:
t
.
onSizeChange
}}),
t
.
_v
(
" "
),
i
(
"dialog-div"
,{
attrs
:{
newObj
:
t
.
newObj
},
on
:{
initPage
:
t
.
initPage
,
changeShow
:
t
.
changeShow
}})],
1
)},
staticRenderFns
:[]};
var
p
=
i
(
"VU/8"
)(
m
,
h
,
!
1
,
function
(
t
){
i
(
"h9Vb"
)},
"data-v-79e26758"
,
null
);
e
.
default
=
p
.
exports
}});
\ No newline at end of file
dist/static/js/16.39e0963902d2c482e169.js
0 → 100644
View file @
0183bd62
webpackJsonp
([
16
],{
"+vCD"
:
function
(
e
,
t
,
i
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
i
(
"CCn6"
),
o
=
{
name
:
"boxTypeList"
,
data
:
function
(){
return
{
list
:[],
nowId
:
""
,
form
:{
name
:
""
,
pid
:
0
,
cover
:
""
},
dialogVisible
:
!
1
,
close
:
!
1
}},
components
:{},
mounted
:
function
(){
this
.
getBoxTypeList
()},
methods
:{
getBoxTypeList
:
function
(){
var
e
=
this
;
Object
(
a
.
_25
)().
then
(
function
(
t
){
e
.
list
=
t
||
[],
""
===
e
.
nowId
&&
t
&&
e
.
changeCateGory
(
t
[
0
].
id
)})},
onAddType
:
function
(){
this
.
dialogVisible
=!
0
,
this
.
form
=
{
name
:
""
,
pid
:
0
,
cover
:
""
}},
saveBoxType
:
function
(){
var
e
=
this
;
Object
(
a
.
d
)(
this
.
form
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
e
.
dialogVisible
=!
1
,
e
.
getBoxTypeList
()})},
changeCateGory
:
function
(
e
){
this
.
nowId
=
e
,
this
.
$emit
(
"changeCategoryId"
,
e
)}}},
s
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
class
:{
"box-type-list"
:
!
0
,
closed
:
e
.
close
}},[
i
(
"div"
,{
staticClass
:
"close-btn"
,
on
:{
click
:
function
(
t
){
e
.
close
=!
e
.
close
}}},[
e
.
close
?
e
.
_e
():
i
(
"i"
,{
staticClass
:
"el-icon-arrow-right"
}),
e
.
_v
(
" "
),
e
.
close
?
i
(
"i"
,{
staticClass
:
"el-icon-arrow-left"
}):
e
.
_e
()]),
e
.
_v
(
" "
),
i
(
"el-card"
,{
staticClass
:
"box-card"
},[
i
(
"div"
,{
attrs
:{
slot
:
"header"
},
slot
:
"header"
},[
i
(
"span"
,[
e
.
_v
(
"主题类别"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
i
(
"el-button"
,{
staticStyle
:{
float
:
"right"
,
padding
:
"3px 0"
},
attrs
:{
type
:
"text"
},
on
:{
click
:
e
.
onAddType
}},[
e
.
_v
(
"新增"
)])],
1
),
e
.
_v
(
" "
),
e
.
_l
(
e
.
list
,
function
(
t
){
return
i
(
"el-card"
,{
key
:
t
.
id
,
class
:{
text
:
!
0
,
"now-card"
:
t
.
id
===
e
.
nowId
},
attrs
:{
shadow
:
"hover"
}},[
i
(
"div"
,{
staticClass
:
"name"
,
on
:{
click
:
function
(
i
){
e
.
changeCateGory
(
t
.
id
)}}},[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
name
)
+
"
\n
"
)]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"btn-block"
},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
,
circle
:
""
,
plain
:
""
,
size
:
"mini"
}}),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"warning"
,
icon
:
"el-icon-edit"
,
circle
:
""
,
plain
:
""
,
size
:
"mini"
}}),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
&&!
e
.
$store
.
state
.
readonly
?
i
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
icon
:
"el-icon-delete"
,
circle
:
""
,
plain
:
""
,
size
:
"mini"
}}):
e
.
_e
()],
1
)])})],
2
),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
i
(
"el-dialog"
,{
attrs
:{
title
:
"主题类别"
,
visible
:
e
.
dialogVisible
,
modal
:
!
1
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
}}},[
i
(
"el-form"
,{
attrs
:{
"label-width"
:
"100px"
}},[
i
(
"el-form-item"
,{
attrs
:{
label
:
"名称"
}},[
i
(
"el-input"
,{
attrs
:{
placeholder
:
"规则:课程类别-主题-教具"
},
model
:{
value
:
e
.
form
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"name"
,
t
)},
expression
:
"form.name"
}})],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
i
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialogVisible
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveBoxType
}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
n
=
{
name
:
"boxDialog"
,
props
:[
"boxDialogObj"
],
data
:
function
(){
return
{
loading
:
!
1
,
rules
:{},
data2
:[],
singleList
:[],
uploadShow
:
!
0
,
imageList
:[],
form
:{
title
:
""
,
item_stock_arr
:[],
cover
:
""
,
min_age
:
0
,
max_age
:
0
,
min_level
:
0
,
max_level
:
0
},
levelOption
:[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
]}},
mounted
:
function
(){},
methods
:{
initPage
:
function
(){
var
e
=
this
;
switch
(
Object
(
a
.
_67
)().
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
e
){
e
.
checkNum
=
1
}),
e
.
data2
=
t
.
list
}),
this
.
boxDialogObj
.
type
){
case
0
:
this
.
form
=
{
title
:
""
,
item_stock_arr
:[],
cover
:
""
,
min_age
:
0
,
max_age
:
0
,
min_level
:
0
,
max_level
:
0
},
this
.
imageList
=
[],
this
.
singleList
=
[];
break
;
case
1
:
Object
(
a
.
_23
)(
this
.
boxDialogObj
.
id
).
then
(
function
(
t
){
e
.
form
=
{
title
:
t
.
title
,
item_stock_arr
:[],
cover
:
""
,
min_age
:
t
.
min_age
,
max_age
:
t
.
max_age
,
min_level
:
t
.
min_level
,
max_level
:
t
.
max_level
},
e
.
singleList
=
[],
e
.
imageList
=
[{
name
:
t
.
cover
,
url
:
"https://cdn.singsingenglish.com/"
+
t
.
cover
}],
t
.
detail
.
forEach
(
function
(
t
){
e
.
singleList
.
push
(
t
.
id
),
e
.
data2
.
find
(
function
(
e
){
return
e
.
id
===
t
.
id
})
&&
(
e
.
data2
.
find
(
function
(
e
){
return
e
.
id
===
t
.
id
}).
checkNum
=
t
.
num
)})})}},
sub
:
function
(){
var
e
=
this
;
this
.
singleList
.
forEach
(
function
(
t
){
var
i
=
e
.
data2
.
find
(
function
(
e
){
return
e
.
id
===
t
});
e
.
form
.
item_stock_arr
.
push
({
stock_id
:
i
.
id
,
num
:
i
.
checkNum
})}),
this
.
imageList
.
length
>
0
&&
(
this
.
form
.
cover
=
this
.
imageList
[
0
].
name
);
var
t
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
));
switch
(
t
.
item_stock_arr
=
JSON
.
stringify
(
t
.
item_stock_arr
),
this
.
boxDialogObj
.
type
){
case
0
:
Object
(
a
.
c
)(
this
.
boxDialogObj
.
category_id
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
e
.
boxDialogObj
.
show
=!
1
,
e
.
$emit
(
"reflash"
,
e
.
boxDialogObj
.
category_id
)});
break
;
case
1
:
Object
(
a
.
Z
)(
this
.
boxDialogObj
.
id
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
e
.
boxDialogObj
.
show
=!
1
,
e
.
$emit
(
"reflash"
,
e
.
boxDialogObj
.
category_id
)})}},
changeTrans
:
function
(
e
,
t
,
i
){},
beforeAvatarUpload
:
function
(){
this
.
uploadShow
=!
1
},
handleRemove
:
function
(){
this
.
uploadShow
=!
0
},
handleAvatarSuccess
:
function
(
e
){
this
.
imageList
=
[{
name
:
e
.
data
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
data
.
url
}]},
uploadFile
:
function
(
e
){
var
t
=
this
;
this
.
loading
=!
0
,
this
.
$store
.
dispatch
(
"setProgress"
,{
type
:
"new"
,
id
:
e
.
file
.
uid
}),
this
.
fileUid
=
e
.
file
.
uid
,
Object
(
a
.
_129
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
t
.
imageList
=
[{
name
:
e
.
url
,
url
:
"https://cdn.singsingenglish.com/"
+
e
.
url
}],
t
.
loading
=!
1
,
t
.
$message
({
type
:
"success"
,
message
:
"上传成功!"
})}).
catch
(
function
(){
t
.
loading
=!
1
})}},
watch
:{
boxDialogObj
:
function
(
e
){
this
.
initPage
()}}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"el-dialog"
,{
attrs
:{
title
:
e
.
boxDialogObj
.
title
,
visible
:
e
.
boxDialogObj
.
show
,
width
:
"80%"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
boxDialogObj
,
"show"
,
t
)}}},[
i
(
"div"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
e
.
loading
,
expression
:
"loading"
}]},[
i
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
model
:
e
.
form
,
rules
:
e
.
rules
,
"label-width"
:
"80px"
}},[
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
24
}},[
i
(
"el-form-item"
,{
attrs
:{
prop
:
"title"
,
label
:
"盒子名称"
}},[
i
(
"el-input"
,{
model
:{
value
:
e
.
form
.
title
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"title"
,
t
)},
expression
:
"form.title"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
24
}},[
i
(
"el-form-item"
,{
attrs
:{
prop
:
"title"
,
label
:
"盒子首图"
}},[
i
(
"el-upload"
,{
class
:{
disabled
:
!
e
.
uploadShow
},
attrs
:{
action
:
"/api/public/upload/zone"
,
"http-request"
:
e
.
uploadFile
,
"before-upload"
:
e
.
beforeAvatarUpload
,
"list-type"
:
"picture-card"
,
"file-list"
:
e
.
imageList
,
"on-success"
:
e
.
handleAvatarSuccess
,
"on-remove"
:
e
.
handleRemove
}},[
i
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
12
}},[
i
(
"el-form-item"
,{
attrs
:{
prop
:
"title"
,
label
:
"最小年龄"
}},[
i
(
"el-input-number"
,{
model
:{
value
:
e
.
form
.
min_age
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"min_age"
,
t
)},
expression
:
"form.min_age"
}})],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
12
}},[
i
(
"el-form-item"
,{
attrs
:{
prop
:
"title"
,
label
:
"最大年龄"
}},[
i
(
"el-input-number"
,{
model
:{
value
:
e
.
form
.
max_age
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"max_age"
,
t
)},
expression
:
"form.max_age"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
12
}},[
i
(
"el-form-item"
,{
attrs
:{
prop
:
"title"
,
label
:
"最小等级"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
clearable
:
""
},
model
:{
value
:
e
.
form
.
min_level
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"min_level"
,
t
)},
expression
:
"form.min_level"
}},
e
.
_l
(
e
.
levelOption
,
function
(
e
){
return
i
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
e
,
value
:
e
}})}))],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"el-col"
,{
attrs
:{
span
:
12
}},[
i
(
"el-form-item"
,{
attrs
:{
prop
:
"title"
,
label
:
"最大等级"
}},[
i
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
,
clearable
:
""
},
model
:{
value
:
e
.
form
.
max_level
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"max_level"
,
t
)},
expression
:
"form.max_level"
}},
e
.
_l
(
e
.
levelOption
,
function
(
e
){
return
i
(
"el-option"
,{
key
:
e
,
attrs
:{
label
:
e
,
value
:
e
}})}))],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"el-row"
,[
i
(
"el-col"
,{
attrs
:{
span
:
24
}},[
i
(
"el-transfer"
,{
attrs
:{
titles
:[
"单品列表"
,
"盒子内容"
],
filterable
:
!
0
,
props
:{
key
:
"id"
,
label
:
"name"
},
data
:
e
.
data2
},
on
:{
change
:
e
.
changeTrans
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
a
=
t
.
option
;
return
i
(
"span"
,{
staticStyle
:{
display
:
"block"
}},[
e
.
_v
(
"
\n
"
+
e
.
_s
(
a
.
name
)
+
"【库存"
+
e
.
_s
(
a
.
num
)
+
"】
\n
"
),
i
(
"el-input-number"
,{
staticStyle
:{
float
:
"right"
},
attrs
:{
size
:
"mini"
},
model
:{
value
:
a
.
checkNum
,
callback
:
function
(
t
){
e
.
$set
(
a
,
"checkNum"
,
t
)},
expression
:
"option.checkNum"
}})],
1
)}}]),
model
:{
value
:
e
.
singleList
,
callback
:
function
(
t
){
e
.
singleList
=
t
},
expression
:
"singleList"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
i
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
i
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
boxDialogObj
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
i
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)])},
staticRenderFns
:[]};
var
c
=
{
name
:
"index"
,
components
:{
BoxTypeList
:
i
(
"VU/8"
)(
o
,
s
,
!
1
,
function
(
e
){
i
(
"w51p"
)},
"data-v-08309cc0"
,
null
).
exports
,
boxDialog
:
i
(
"VU/8"
)(
n
,
l
,
!
1
,
function
(
e
){
i
(
"GwVg"
),
i
(
"FB1p"
)},
"data-v-28cda8ea"
,
null
).
exports
},
data
:
function
(){
return
{
category_id
:
""
,
defaultImgPath
:
"https://cdn.singsingenglish.com/"
,
list
:[],
boxDialogObj
:{
show
:
!
1
,
id
:
""
,
category_id
:
""
,
title
:
""
,
type
:
0
}}},
mounted
:
function
(){},
methods
:{
initPage
:
function
(
e
){
var
t
=
this
;
Object
(
a
.
_24
)(
e
).
then
(
function
(
e
){
t
.
list
=
e
.
list
})},
onEdit
:
function
(
e
){
this
.
boxDialogObj
=
{
show
:
!
0
,
type
:
1
,
title
:
"修改盒子"
,
id
:
e
,
category_id
:
this
.
category_id
}},
onAdd
:
function
(){
this
.
boxDialogObj
=
{
show
:
!
0
,
type
:
0
,
title
:
"添加盒子"
,
category_id
:
this
.
category_id
}},
changeCategoryId
:
function
(
e
){
this
.
category_id
=
e
},
delBox
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该盒子?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
a
.
F
)(
e
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
})}),
t
.
initPage
(
t
.
category_id
)})}},
watch
:{
category_id
:
function
(
e
){
this
.
initPage
(
e
)}}},
r
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,{
staticClass
:
"box-index"
},[
i
(
"box-type-list"
,{
on
:{
changeCategoryId
:
e
.
changeCategoryId
}}),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"add-block"
},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
i
(
"el-button"
,{
staticClass
:
"add-btn"
,
attrs
:{
type
:
"success"
},
on
:{
click
:
function
(
t
){
e
.
onAdd
()}}},[
e
.
_v
(
"+新增盒子"
)])],
1
),
e
.
_v
(
" "
),
i
(
"el-row"
,
e
.
_l
(
e
.
list
,
function
(
t
,
a
){
return
i
(
"el-col"
,{
key
:
a
,
staticClass
:
"card-col"
,
attrs
:{
span
:
5
}},[
i
(
"el-card"
,{
staticClass
:
"card"
,
attrs
:{
"body-style"
:{
padding
:
"0px"
},
shadow
:
"hover"
}},[
""
!==
t
.
cover
?
i
(
"img"
,{
staticClass
:
"image"
,
attrs
:{
src
:
e
.
defaultImgPath
+
t
.
cover
}}):
e
.
_e
(),
e
.
_v
(
" "
),
""
===
t
.
cover
?
i
(
"img"
,{
staticClass
:
"image"
,
attrs
:{
src
:
e
.
defaultImgPath
+
t
.
cover
}}):
e
.
_e
(),
e
.
_v
(
" "
),
i
(
"div"
,{
staticStyle
:{
padding
:
"14px"
}},[
i
(
"span"
,[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
title
)
+
"
\n
"
)]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"bottom clearfix"
},[
i
(
"el-tag"
,{
attrs
:{
size
:
"mini"
}},[
e
.
_v
(
"level"
+
e
.
_s
(
t
.
min_level
)
+
"-level"
+
e
.
_s
(
t
.
max_level
))]),
e
.
_v
(
" "
),
i
(
"el-tag"
,{
attrs
:{
type
:
"success"
,
size
:
"mini"
}},[
e
.
_v
(
e
.
_s
(
t
.
min_age
)
+
"-"
+
e
.
_s
(
t
.
max_age
)
+
"岁"
)]),
e
.
_v
(
" "
),
i
(
"div"
,{
staticClass
:
"btn-block"
},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
i
(
"el-button"
,{
attrs
:{
type
:
"warning"
,
icon
:
"el-icon-edit"
,
circle
:
""
,
plain
:
""
,
size
:
"mini"
},
on
:{
click
:
function
(
i
){
e
.
onEdit
(
t
.
id
)}}}),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
&&!
e
.
$store
.
state
.
readonly
?
i
(
"el-button"
,{
attrs
:{
type
:
"danger"
,
icon
:
"el-icon-delete"
,
circle
:
""
,
plain
:
""
,
size
:
"mini"
},
on
:{
click
:
function
(
i
){
e
.
delBox
(
t
.
id
)}}}):
e
.
_e
()],
1
)],
1
)])])],
1
)})),
e
.
_v
(
" "
),
e
.
boxDialogObj
.
show
?
i
(
"box-dialog"
,{
attrs
:{
boxDialogObj
:
e
.
boxDialogObj
},
on
:{
reflash
:
e
.
initPage
}}):
e
.
_e
()],
1
)},
staticRenderFns
:[]};
var
d
=
i
(
"VU/8"
)(
c
,
r
,
!
1
,
function
(
e
){
i
(
"ynGh"
)},
"data-v-0819ba6a"
,
null
);
t
.
default
=
d
.
exports
},
FB1p
:
function
(
e
,
t
){},
GwVg
:
function
(
e
,
t
){},
w51p
:
function
(
e
,
t
){},
ynGh
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/17.eb1744ffcd2565bc88c1.js
0 → 100644
View file @
0183bd62
webpackJsonp
([
17
],{
"0YKM"
:
function
(
e
,
t
){},
"9itO"
:
function
(
e
,
t
){},
AxXo
:
function
(
e
,
t
){},
CvLZ
:
function
(
e
,
t
,
n
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
n
(
"CCn6"
),
a
=
n
(
"+TkF"
),
s
=
n
(
"kmJW"
),
o
=
{
name
:
"add"
,
data
:
function
(){
return
{
pickerOptions0
:{
disabledDate
:
function
(
e
){
return
e
.
getTime
()
<
Date
.
now
()
-
864
e5
}}}},
props
:[
"newIntegral"
,
"goodsList"
],
methods
:{
reSetForm
:
function
(){
this
.
$refs
.
newIntegral
.
resetFields
()},
onAdd
:
function
(){
var
e
=
this
;
this
.
$refs
.
newIntegral
.
validate
(
function
(
t
){
t
&&
(
e
.
newIntegral
.
id
?
e
.
$emit
(
"subEdit"
):
e
.
$emit
(
"subAdd"
))})}},
watch
:{
"newIntegral.show"
:
function
(
e
){
var
t
=
this
;
e
&&!
this
.
newIntegral
.
id
&&
this
.
$nextTick
(
function
(){
t
.
reSetForm
()})}}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-dialog"
,{
attrs
:{
visible
:
e
.
newIntegral
.
show
,
width
:
"800px"
,
center
:
""
,
title
:
e
.
newIntegral
.
id
?
"修改兑换码"
:
"生成兑换码"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
newIntegral
,
"show"
,
t
)}}},[
n
(
"el-form"
,{
ref
:
"newIntegral"
,
attrs
:{
"label-width"
:
"150px"
,
model
:
e
.
newIntegral
}},[
n
(
"el-form-item"
,{
attrs
:{
label
:
"名称"
,
prop
:
"name"
,
rules
:[{
required
:
!
0
,
message
:
"请输入名称"
,
trigger
:
"blur"
}]}},[
n
(
"el-row"
,{
attrs
:{
gutter
:
20
}},[
n
(
"el-col"
,{
attrs
:{
span
:
20
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
newIntegral
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
newIntegral
,
"name"
,
t
)},
expression
:
"newIntegral.name"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"商品"
,
prop
:
"goods_id"
,
rules
:[{
required
:
!
0
,
message
:
"请选择商品"
,
trigger
:
"change"
}]}},[
n
(
"el-row"
,{
attrs
:{
gutter
:
20
}},[
n
(
"el-col"
,{
attrs
:{
span
:
20
}},[
n
(
"el-select"
,{
model
:{
value
:
e
.
newIntegral
.
goods_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
newIntegral
,
"goods_id"
,
t
)},
expression
:
"newIntegral.goods_id"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
"【"
+
e
.
id
+
"】"
+
e
.
name
,
value
:
e
.
id
}})}))],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"数量"
,
prop
:
"num"
,
rules
:[{
required
:
!
0
,
message
:
"请输入数量"
,
trigger
:
"blur"
}]}},[
n
(
"el-row"
,{
attrs
:{
gutter
:
20
}},[
n
(
"el-col"
,{
attrs
:{
span
:
20
}},[
n
(
"el-input-number"
,{
model
:{
value
:
e
.
newIntegral
.
num
,
callback
:
function
(
t
){
e
.
$set
(
e
.
newIntegral
,
"num"
,
t
)},
expression
:
"newIntegral.num"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"失效时间"
,
prop
:
"expire_at"
,
rules
:[{
required
:
!
0
,
message
:
"请选择失效时间"
,
trigger
:
"change"
}]}},[
n
(
"el-row"
,{
attrs
:{
gutter
:
20
}},[
n
(
"el-col"
,{
attrs
:{
span
:
20
}},[
n
(
"el-date-picker"
,{
attrs
:{
type
:
"datetime"
,
format
:
"yyyy-MM-dd HH:mm:ss"
,
"value-format"
:
"yyyy-MM-dd HH:mm:ss"
,
"picker-options"
:
e
.
pickerOptions0
,
placeholder
:
"选择日期"
},
model
:{
value
:
e
.
newIntegral
.
expire_at
,
callback
:
function
(
t
){
e
.
$set
(
e
.
newIntegral
,
"expire_at"
,
t
)},
expression
:
"newIntegral.expire_at"
}})],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"备注"
,
prop
:
"desc"
,
rules
:[{
required
:
!
0
,
message
:
"请填写备注信息"
,
trigger
:
"blur"
}]}},[
n
(
"el-row"
,{
attrs
:{
gutter
:
20
}},[
n
(
"el-col"
,{
attrs
:{
span
:
20
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
newIntegral
.
desc
,
callback
:
function
(
t
){
e
.
$set
(
e
.
newIntegral
,
"desc"
,
t
)},
expression
:
"newIntegral.desc"
}})],
1
)],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
n
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
newIntegral
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
onAdd
}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)},
staticRenderFns
:[]};
var
r
=
n
(
"VU/8"
)(
o
,
l
,
!
1
,
function
(
e
){
n
(
"Z3Vg"
)},
"data-v-64f19c4a"
,
null
).
exports
,
d
=
{
name
:
"list"
,
components
:{
page
:
s
.
a
},
props
:[
"detailList"
],
data
:
function
(){
return
{
limit
:
10
,
list
:[],
form
:{
user_id
:
""
,
exchange_code
:
""
,
is_exchange
:
""
},
totalPage
:
0
,
nowPage
:
1
}},
methods
:{
initPage
:
function
(){
this
.
form
=
{
user_id
:
""
,
exchange_code
:
""
,
is_exchange
:
""
},
this
.
getList
()},
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
getList
()},
onSizeChange
:
function
(
e
){
this
.
limit
=
e
,
this
.
nowPage
=
1
,
this
.
getList
()},
exprotList
:
function
(){
var
e
=
{};
""
!==
this
.
form
.
is_exchange
&&
(
e
.
is_exchange
=
this
.
form
.
is_exchange
),
""
!==
this
.
form
.
user_id
&&
(
e
.
user_id
=
this
.
form
.
user_id
),
Object
(
i
.
_15
)(
"/api/admin/exchange/export/"
+
this
.
detailList
.
id
,
e
)},
getList
:
function
(){
var
e
=
this
,
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
""
!==
this
.
form
.
is_exchange
&&
(
t
.
is_exchange
=
this
.
form
.
is_exchange
),
""
!==
this
.
form
.
user_id
&&
(
t
.
user_id
=
this
.
form
.
user_id
),
""
!==
this
.
form
.
exchange_code
&&
(
t
.
exchange_code
=
this
.
form
.
exchange_code
),
Object
(
i
.
_14
)(
this
.
detailList
.
id
,
t
).
then
(
function
(
t
){
e
.
list
=
t
.
list
,
e
.
totalPage
=
t
.
total
})}},
watch
:{
"detailList.show"
:
function
(
e
){
e
&&
this
.
initPage
()}}},
c
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"el-dialog"
,{
attrs
:{
visible
:
e
.
detailList
.
show
,
width
:
"1200px"
,
center
:
""
,
title
:
"详细纪录"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
detailList
,
"show"
,
t
)}}},[
n
(
"el-form"
,{
attrs
:{
"label-width"
:
"80px"
,
inline
:
""
}},[
n
(
"el-form-item"
,{
attrs
:{
label
:
"用户ID"
}},[
n
(
"el-input"
,{
attrs
:{
size
:
"small"
},
model
:{
value
:
e
.
form
.
user_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"user_id"
,
t
)},
expression
:
"form.user_id"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"激活码"
}},[
n
(
"el-input"
,{
attrs
:{
size
:
"small"
},
model
:{
value
:
e
.
form
.
exchange_code
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"exchange_code"
,
t
)},
expression
:
"form.exchange_code"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"是否激活"
}},[
n
(
"el-select"
,{
attrs
:{
size
:
"small"
},
model
:{
value
:
e
.
form
.
is_exchange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"is_exchange"
,
t
)},
expression
:
"form.is_exchange"
}},[
n
(
"el-option"
,{
attrs
:{
label
:
"是"
,
value
:
1
}}),
e
.
_v
(
" "
),
n
(
"el-option"
,{
attrs
:{
label
:
"否"
,
value
:
0
}})],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
size
:
"small"
,
type
:
"primary"
},
on
:{
click
:
e
.
getList
}},[
e
.
_v
(
"搜索"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
attrs
:{
size
:
"small"
,
type
:
"success"
},
on
:{
click
:
e
.
exprotList
}},[
e
.
_v
(
"导出"
)])],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
list
}},[
n
(
"el-table-column"
,{
attrs
:{
label
:
"用户信息"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
===
t
.
row
.
user_id
?
n
(
"div"
,[
e
.
_v
(
"暂无"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
0
!==
t
.
row
.
user_id
?
n
(
"div"
,{
staticStyle
:{
display
:
"flex"
}},[
n
(
"img"
,{
staticStyle
:{
width
:
"40px"
,
"margin-right"
:
"5px"
,
"min-width"
:
"40px"
,
height
:
"40px"
,
"border-radius"
:
"50px"
},
attrs
:{
src
:
t
.
row
.
user_avatar
}}),
e
.
_v
(
" "
+
e
.
_s
(
t
.
row
.
user_nickname
)
+
"(ID:"
+
e
.
_s
(
t
.
row
.
user_id
)
+
")
\n
"
),
n
(
"br"
),
e
.
_v
(
" Tel:"
+
e
.
_s
(
t
.
row
.
user_mobile
)
+
"
\n
"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"exchange_no"
,
label
:
"兑换码"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"商品"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
【"
+
e
.
_s
(
t
.
row
.
goods_id
)
+
"】"
+
e
.
_s
(
t
.
row
.
goods_name
)
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"expire_at"
,
label
:
"失效时间"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"exchange_at"
,
label
:
"兑换时间"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
"0000-00-00 00:00:00"
!==
t
.
row
.
exchange_at
?
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
t
.
row
.
exchange_at
))]):
e
.
_e
(),
e
.
_v
(
" "
),
"0000-00-00 00:00:00"
===
t
.
row
.
exchange_at
?
n
(
"span"
,{
staticStyle
:{
color
:
"red"
}},[
e
.
_v
(
"尚未兑换"
)]):
e
.
_e
()]}}])})],
1
),
e
.
_v
(
" "
),
n
(
"page"
,{
attrs
:{
nowPage
:
e
.
nowPage
,
total
:
e
.
totalPage
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
,
sizeChange
:
e
.
onSizeChange
}})],
1
)},
staticRenderFns
:[]};
var
u
=
n
(
"VU/8"
)(
d
,
c
,
!
1
,
function
(
e
){
n
(
"AxXo"
)},
"data-v-3a94b73e"
,
null
).
exports
,
g
=
{
name
:
"index"
,
components
:{
page
:
s
.
a
,
addExchange
:
r
,
listDetail
:
u
},
data
:
function
(){
var
e
=
[];
for
(
var
t
in
a
.
j
)
e
.
push
({
id
:
t
,
value
:
a
.
j
[
t
]});
var
n
=
[];
for
(
var
i
in
a
.
i
)
n
.
push
({
id
:
i
,
value
:
a
.
i
[
i
]});
return
{
list
:[],
total
:
0
,
detailList
:{
show
:
!
1
,
user_id
:
""
,
is_exchange
:
""
,
id
:
null
},
newIntegral
:{
show
:
!
1
,
goods_id
:
""
,
num
:
""
,
expire_at
:
""
,
desc
:
""
,
id
:
null
},
goodsList
:[],
is_addOption
:
e
,
sourceOption
:
n
,
limit
:
10
,
userListShow
:{
show
:
!
1
},
nowPage
:
1
,
form
:{
name
:
""
,
goods_id
:
""
}}},
mounted
:
function
(){
this
.
initPage
()},
methods
:{
onDetail
:
function
(
e
){
this
.
detailList
=
{
show
:
!
0
,
user_id
:
""
,
is_exchange
:
""
,
id
:
e
.
id
}},
onEdit
:
function
(
e
){
this
.
newIntegral
=
{
show
:
!
0
,
goods_id
:
e
.
goods_id
,
num
:
e
.
num
,
expire_at
:
e
.
expire_at
,
desc
:
e
.
desc
,
name
:
e
.
name
,
id
:
e
.
id
}},
subEdit
:
function
(){
var
e
=
this
,
t
=
{
goods_id
:
this
.
newIntegral
.
goods_id
,
num
:
this
.
newIntegral
.
num
,
expire_at
:
this
.
newIntegral
.
expire_at
,
desc
:
this
.
newIntegral
.
desc
,
name
:
this
.
newIntegral
.
name
};
Object
(
i
.
_2
)(
this
.
newIntegral
.
id
,
t
).
then
(
function
(
t
){
e
.
$message
({
message
:
"数据修改成功"
,
type
:
"success"
}),
e
.
getList
(),
e
.
newIntegral
.
show
=!
1
})},
subAdd
:
function
(){
var
e
=
this
,
t
=
{
goods_id
:
this
.
newIntegral
.
goods_id
,
num
:
this
.
newIntegral
.
num
,
expire_at
:
this
.
newIntegral
.
expire_at
,
desc
:
this
.
newIntegral
.
desc
,
name
:
this
.
newIntegral
.
name
};
Object
(
i
.
i
)(
t
).
then
(
function
(
t
){
e
.
$message
({
message
:
"数据添加成功"
,
type
:
"success"
}),
e
.
getList
(),
e
.
newIntegral
.
show
=!
1
})},
showUserList
:
function
(){
this
.
userListShow
.
show
=!
0
},
addUser
:
function
(
e
){
this
.
userListShow
.
show
=!
1
,
this
.
newIntegral
.
user_id
=
e
},
changeUserList
:
function
(){},
addIntegral
:
function
(){
this
.
newIntegral
=
{
show
:
!
0
,
goods_id
:
""
,
num
:
""
,
expire_at
:
""
,
name
:
""
,
id
:
null
,
desc
:
""
}},
initPage
:
function
(){
this
.
form
=
{
name
:
""
,
goods_id
:
""
},
this
.
getGood
(),
this
.
getList
()},
getGood
:
function
(){
var
e
=
this
;
Object
(
i
.
_41
)({
limit
:
1
e3
}).
then
(
function
(
t
){
e
.
goodsList
=
t
.
list
})},
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
getList
()},
onSizeChange
:
function
(
e
){
this
.
limit
=
e
,
this
.
nowPage
=
1
,
this
.
getList
()},
getList
:
function
(){
var
e
=
this
,
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
""
!==
this
.
form
.
name
&&
(
t
.
name
=
this
.
form
.
name
),
""
!==
this
.
form
.
goods_id
&&
(
t
.
goods_id
=
this
.
form
.
goods_id
),
Object
(
i
.
_39
)(
t
).
then
(
function
(
t
){
e
.
list
=
t
.
list
,
e
.
total
=
t
.
total
})}}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"integral-page"
},[
n
(
"el-form"
,{
ref
:
"searchFrom"
,
staticStyle
:{
"padding-top"
:
"20px"
,
background
:
"white"
},
attrs
:{
model
:
e
.
form
,
"label-width"
:
"100px"
,
size
:
"small"
,
inline
:
""
}},[
n
(
"el-form-item"
,{
attrs
:{
label
:
"标题"
}},[
n
(
"el-input"
,{
model
:{
value
:
e
.
form
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"name"
,
t
)},
expression
:
"form.name"
}})],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"商品"
}},[
n
(
"el-select"
,{
model
:{
value
:
e
.
form
.
goods_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
form
,
"goods_id"
,
t
)},
expression
:
"form.goods_id"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
n
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
"【"
+
e
.
id
+
"】"
+
e
.
name
,
value
:
e
.
id
}})}))],
1
),
e
.
_v
(
" "
),
n
(
"el-form-item"
,[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
},
on
:{
click
:
e
.
getList
}},[
e
.
_v
(
"搜索"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
n
(
"el-button"
,{
attrs
:{
type
:
"success"
,
plain
:
""
},
on
:{
click
:
e
.
addIntegral
}},[
e
.
_v
(
"生成兑换码"
)])],
1
)],
1
),
e
.
_v
(
" "
),
n
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
list
,
size
:
"small"
}},[
n
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"名称"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"goods_name"
,
label
:
"商品"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\n
【"
+
e
.
_s
(
t
.
row
.
goods_id
)
+
"】"
+
e
.
_s
(
t
.
row
.
goods_name
)
+
"
\n
"
)]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"num"
,
label
:
"数量"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"desc"
,
label
:
"备注"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"expire_at"
,
label
:
"失效时间"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"created_at"
,
label
:
"创建时间"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
width
:
"180"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
n
){
e
.
onDetail
(
t
.
row
)}}},[
e
.
_v
(
"查看详情"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
n
(
"el-button"
,{
attrs
:{
type
:
"warning"
,
size
:
"mini"
},
on
:{
click
:
function
(
n
){
e
.
onEdit
(
t
.
row
)}}},[
e
.
_v
(
"编辑"
)])]}}])})],
1
),
e
.
_v
(
" "
),
n
(
"page"
,{
attrs
:{
nowPage
:
e
.
nowPage
,
total
:
e
.
total
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
,
sizeChange
:
e
.
onSizeChange
}}),
e
.
_v
(
" "
),
n
(
"add-exchange"
,{
ref
:
"add_page"
,
attrs
:{
newIntegral
:
e
.
newIntegral
,
goodsList
:
e
.
goodsList
},
on
:{
subAdd
:
e
.
subAdd
,
subEdit
:
e
.
subEdit
}}),
e
.
_v
(
" "
),
n
(
"list-detail"
,{
attrs
:{
detailList
:
e
.
detailList
}})],
1
)},
staticRenderFns
:[]};
var
_
=
n
(
"VU/8"
)(
g
,
m
,
!
1
,
function
(
e
){
n
(
"9itO"
),
n
(
"0YKM"
)},
"data-v-079f663c"
,
null
);
t
.
default
=
_
.
exports
},
Z3Vg
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/42.9deb0b4c322248e7c116.js
0 → 100644
View file @
0183bd62
webpackJsonp
([
42
],{
SauM
:
function
(
e
,
t
){},
Vt1u
:
function
(
e
,
t
,
o
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
o
(
"CCn6"
),
i
=
{
components
:{
page
:
o
(
"kmJW"
).
a
},
data
:
function
(){
return
{
nowPage
:
1
,
total
:
0
,
limit
:
10
,
roleList
:[],
exportMenuList
:[
"2-3"
,
"5-10"
,
"5-2"
,
"5-1"
,
"5-3"
,
"5-8"
,
"5-9"
,
"3-1"
,
"7-9"
],
dialog
:{
title
:
"新增角色"
,
show
:
!
1
,
select
:[],
chooseed
:[],
rules
:{
name
:[{
required
:
!
0
,
message
:
"请填写角色名称"
,
trigger
:
"change"
}]},
form
:{
name
:
""
,
menu_ids
:[],
id
:
""
}}}},
created
:
function
(){
this
.
getList
(),
this
.
getMenuList
()},
methods
:{
distribution
:
function
(
e
){},
rowClick
:
function
(
e
){
this
.
$router
.
push
({
name
:
"admin"
,
query
:{
roleId
:
e
.
id
}})},
getMenuList
:
function
(){
var
e
=
this
;
Object
(
n
.
_49
)().
then
(
function
(
t
){
t
&&
(
t
.
forEach
(
function
(
t
){
t
.
children
&&
t
.
children
.
forEach
(
function
(
t
){
t
.
readonly
=!
1
,
t
.
delete
=!
1
,
e
.
exportMenuList
.
indexOf
(
t
.
cover
)
>-
1
&&
(
t
.
export
=!
1
),
"5-9"
!==
t
.
cover
&&
"7-9"
!==
t
.
cover
||
(
t
.
distribution
=!
1
),
"月课订单列表"
!==
t
.
name
&&
"日课订单列表"
!==
t
.
name
&&
"来源码管理"
!==
t
.
name
&&
"5-9"
!==
t
.
cover
&&
"2-3"
!==
t
.
cover
&&
"3-1"
!==
t
.
cover
||
(
t
.
refund
=!
1
)})}),
e
.
dialog
.
select
=
t
)})},
onPageChange
:
function
(
e
){
this
.
nowPage
=
e
,
this
.
getList
()},
onSizeChange
:
function
(
e
){
this
.
nowPage
=
1
,
this
.
limit
=
e
,
this
.
getList
()},
getList
:
function
(){
var
e
=
this
,
t
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
Object
(
n
.
_65
)(
t
).
then
(
function
(
t
){
t
&&
(
e
.
roleList
=
t
.
list
,
e
.
total
=
t
.
total
)})},
edit
:
function
(
e
){
var
t
=
this
;
this
.
dialog
.
form
.
id
=
e
.
id
,
this
.
dialog
.
title
=
"编辑角色"
,
Object
(
n
.
_49
)().
then
(
function
(
o
){
o
&&
(
o
.
forEach
(
function
(
e
){
e
.
children
&&
e
.
children
.
forEach
(
function
(
e
){
e
.
readonly
=!
1
,
e
.
delete
=!
1
,
t
.
exportMenuList
.
indexOf
(
e
.
cover
)
>-
1
&&
(
e
.
export
=!
1
),
"5-9"
!==
e
.
cover
&&
"7-9"
!==
e
.
cover
||
(
e
.
distribution
=!
1
),
"月课订单列表"
!==
e
.
name
&&
"日课订单列表"
!==
e
.
name
&&
"来源码管理"
!==
e
.
name
&&
"5-9"
!==
e
.
cover
&&
"2-3"
!==
e
.
cover
&&
"3-1"
!==
e
.
cover
||
(
e
.
refund
=!
1
)})}),
t
.
dialog
.
select
=
o
,
Object
(
n
.
_64
)(
e
.
id
).
then
(
function
(
e
){
console
.
log
(
e
),
t
.
dialog
.
form
.
name
=
e
.
name
,
t
.
dialog
.
form
.
menu_ids
=
JSON
.
parse
(
e
.
menu_ids
),
t
.
dialog
.
chooseed
=
[],
t
.
dialog
.
form
.
menu_ids
.
forEach
(
function
(
e
){
t
.
dialog
.
chooseed
.
push
(
e
.
id
),
t
.
dialog
.
select
.
forEach
(
function
(
o
){
o
.
children
&&
o
.
children
.
forEach
(
function
(
o
){
o
.
id
===
e
.
id
&&
(
o
.
readonly
=!!
e
.
readonly
,
o
.
delete
=!!
e
.
delete
,
t
.
exportMenuList
.
indexOf
(
e
.
cover
)
>-
1
&&
(
o
.
export
=!!
e
.
export
),
"5-1"
!==
e
.
cover
&&
"5-10"
!==
e
.
cover
&&
"10-1"
!==
e
.
cover
&&
"5-9"
!==
e
.
cover
&&
"2-3"
!==
e
.
cover
&&
"3-1"
!==
e
.
cover
||
(
o
.
refund
=!!
e
.
refund
),
"5-9"
!==
e
.
cover
&&
"7-9"
!==
e
.
cover
||
(
o
.
distribution
=!!
e
.
distribution
))})})}),
t
.
dialog
.
show
=!
0
,
t
.
$nextTick
(
function
(){
this
.
$refs
.
tree
.
setCheckedKeys
(
this
.
dialog
.
chooseed
)})}))})},
add
:
function
(){
this
.
dialog
.
show
=!
0
,
this
.
dialog
.
form
.
id
=
""
,
this
.
dialog
.
title
=
"新增菜单"
,
this
.
dialog
.
form
.
name
=
""
,
this
.
dialog
.
form
.
menu_ids
=
[],
this
.
getMenuList
()},
del
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该角色?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
n
.
N
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
}),
t
.
getList
()})})},
sub
:
function
(){
var
e
=
this
;
this
.
$refs
.
form
.
validate
(
function
(
t
){
if
(
t
){
var
o
=
[];
e
.
$refs
.
tree
.
getCheckedNodes
().
forEach
(
function
(
e
){
var
t
=
void
0
;
!
1
!==
e
.
readonly
&&!
0
!==
e
.
readonly
||
(
t
=
{
id
:
e
.
id
,
cover
:
e
.
cover
,
readonly
:
e
.
readonly
}),
!
1
!==
e
.
delete
&&!
0
!==
e
.
delete
||
(
t
.
delete
=
e
.
delete
),
!
1
!==
e
.
refund
&&!
0
!==
e
.
refund
||
(
t
.
refund
=
e
.
refund
),
!
1
!==
e
.
export
&&!
0
!==
e
.
export
||
(
t
.
export
=
e
.
export
),
!
1
!==
e
.
distribution
&&!
0
!==
e
.
distribution
||
(
t
.
distribution
=
e
.
distribution
),
t
&&
o
.
push
(
t
)});
var
i
=
e
.
dialog
;
if
(
i
.
form
.
id
){
var
a
=
{
name
:
i
.
form
.
name
,
menu_ids
:
JSON
.
stringify
(
o
)};
e
.
$confirm
(
"此操作将修改该角色?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
n
.
_126
)(
i
.
form
.
id
,
a
).
then
(
function
(){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
i
.
show
=!
1
,
e
.
getList
()})})}
else
{
var
r
=
{
name
:
i
.
form
.
name
,
menu_ids
:
JSON
.
stringify
(
o
)};
e
.
$confirm
(
"此操作将添加新角色?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
n
.
_101
)(
r
).
then
(
function
(){
e
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
i
.
show
=!
1
,
e
.
getList
()})})}}})}}},
a
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
staticClass
:
"role"
},[
o
(
"div"
,{
staticClass
:
"head clear-both"
},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
o
(
"el-button"
,{
staticStyle
:{
float
:
"right"
},
attrs
:{
plain
:
""
,
type
:
"success"
},
on
:{
click
:
e
.
add
}},[
e
.
_v
(
"新增角色"
)])],
1
),
e
.
_v
(
" "
),
o
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
roleList
}},[
o
(
"el-table-column"
,{
attrs
:{
prop
:
"id"
,
label
:
"角色ID"
}}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
label
:
"角色名称"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
o
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
o
){
e
.
rowClick
(
t
.
row
)}}},[
e
.
_v
(
" "
+
e
.
_s
(
t
.
row
.
name
))])]}}])}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"created_at"
,
label
:
"创建时间"
,
sortable
:
""
}}),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
o
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"
\n
编辑
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
&&!
e
.
$store
.
state
.
readonly
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"danger"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
e
.
del
(
t
.
row
)}}},[
e
.
_v
(
"
\n
删除
\n
"
)]):
e
.
_e
()]}}])})],
1
),
e
.
_v
(
" "
),
o
(
"page"
,{
attrs
:{
nowPage
:
e
.
nowPage
,
total
:
e
.
total
,
limit
:
e
.
limit
},
on
:{
pageChange
:
e
.
onPageChange
,
sizeChange
:
e
.
onSizeChange
}}),
e
.
_v
(
" "
),
o
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialog
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
e
.
dialog
.
show
,
width
:
"800px"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
dialog
,
"show"
,
t
)}}},[
o
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
rules
:
e
.
dialog
.
rules
,
model
:
e
.
dialog
.
form
,
"label-width"
:
"100px"
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"角色名称"
,
prop
:
"name"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
dialog
.
form
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dialog
.
form
,
"name"
,
t
)},
expression
:
"dialog.form.name"
}})],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"菜单选项"
}},[
o
(
"div"
,{
staticClass
:
"custom-tree-container"
},[
o
(
"el-tree"
,{
ref
:
"tree"
,
attrs
:{
data
:
e
.
dialog
.
select
,
"show-checkbox"
:
""
,
"node-key"
:
"id"
,
"default-checked-keys"
:
e
.
dialog
.
chooseed
,
"default-expand-all"
:
""
,
"expand-on-click-node"
:
!
1
,
props
:{
children
:
"children"
,
label
:
"name"
,
value
:
!
1
}},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
n
=
t
.
node
,
i
=
t
.
data
;
return
o
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
o
(
"span"
,[
e
.
_v
(
e
.
_s
(
n
.
label
))]),
e
.
_v
(
" "
),
0
!==
i
.
pid
?
o
(
"span"
,[
"5-1"
===
i
.
cover
||
"5-10"
===
i
.
cover
||
"5-9"
===
i
.
cover
?
o
(
"el-checkbox"
,{
model
:{
value
:
i
.
refund
,
callback
:
function
(
t
){
e
.
$set
(
i
,
"refund"
,
t
)},
expression
:
"data.refund"
}},[
e
.
_v
(
"退款"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"10-1"
===
i
.
cover
?
o
(
"el-checkbox"
,{
model
:{
value
:
i
.
refund
,
callback
:
function
(
t
){
e
.
$set
(
i
,
"refund"
,
t
)},
expression
:
"data.refund"
}},[
e
.
_v
(
"类别管理"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"2-3"
===
i
.
cover
||
"3-1"
===
i
.
cover
?
o
(
"el-checkbox"
,{
model
:{
value
:
i
.
refund
,
callback
:
function
(
t
){
e
.
$set
(
i
,
"refund"
,
t
)},
expression
:
"data.refund"
}},[
e
.
_v
(
"添加用户"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"5-9"
===
i
.
cover
||
"7-9"
===
i
.
cover
?
o
(
"el-checkbox"
,{
on
:{
change
:
e
.
distribution
},
model
:{
value
:
i
.
distribution
,
callback
:
function
(
t
){
e
.
$set
(
i
,
"distribution"
,
t
)},
expression
:
"data.distribution"
}},[
e
.
_v
(
"批量分配"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
exportMenuList
.
indexOf
(
i
.
cover
)
>-
1
?
o
(
"el-checkbox"
,{
model
:{
value
:
i
.
export
,
callback
:
function
(
t
){
e
.
$set
(
i
,
"export"
,
t
)},
expression
:
"data.export"
}},[
e
.
_v
(
"导出"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
o
(
"el-checkbox"
,{
model
:{
value
:
i
.
readonly
,
callback
:
function
(
t
){
e
.
$set
(
i
,
"readonly"
,
t
)},
expression
:
"data.readonly"
}},[
e
.
_v
(
"只读"
)]),
e
.
_v
(
" "
),
o
(
"el-checkbox"
,{
model
:{
value
:
i
.
delete
,
callback
:
function
(
t
){
e
.
$set
(
i
,
"delete"
,
t
)},
expression
:
"data.delete"
}},[
e
.
_v
(
"删除"
)])],
1
):
e
.
_e
()])}}])})],
1
)])],
1
),
e
.
_v
(
" "
),
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialog
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
r
=
o
(
"VU/8"
)(
i
,
a
,
!
1
,
function
(
e
){
o
(
"SauM"
)},
"data-v-4ae8afce"
,
null
);
t
.
default
=
r
.
exports
}});
\ No newline at end of file
dist/static/js/43.a501ec1ed9e3ba0afca1.js
0 → 100644
View file @
0183bd62
webpackJsonp
([
43
],{
iPJD
:
function
(
e
,
t
,
i
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
i
(
"CCn6"
),
l
=
{
name
:
"upload"
,
data
:
function
(){
return
{
fileList
:[]}},
methods
:{
uploadFileVideo1Banner
:
function
(
e
){
var
t
=
this
;
Object
(
n
.
_129
)({
file
:
e
.
file
,
type
:
"local"
}).
then
(
function
(
e
){
e
.
url
=
"https://cdn.singsingenglish.com/"
+
e
.
url
,
t
.
fileList
.
push
(
e
)})}}},
a
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
i
=
e
.
_self
.
_c
||
t
;
return
i
(
"div"
,[
i
(
"el-upload"
,{
staticClass
:
"upload-demo"
,
attrs
:{
action
:
"/api/public/upload"
,
"http-request"
:
e
.
uploadFileVideo1Banner
,
"list-type"
:
"picture-card"
,
multiple
:
""
}}),
e
.
_v
(
" "
),
i
(
"pre"
,[
e
.
_v
(
" <p>
\n
"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
fileList
,
function
(
t
){
return
i
(
"pre"
,[
e
.
_v
(
' <img src="'
+
e
.
_s
(
t
.
url
)
+
'" style="display:block">
\
n '
)])}),
e
.
_v
(
" "
),
i
(
"pre"
,[
e
.
_v
(
" </p>
\n
"
)])],
2
)},
staticRenderFns
:[]};
var
r
=
i
(
"VU/8"
)(
l
,
a
,
!
1
,
function
(
e
){
i
(
"wi9J"
)},
"data-v-3a2ff3b1"
,
null
);
t
.
default
=
r
.
exports
},
wi9J
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/44.19bbaca27d596e8feedb.js
0 → 100644
View file @
0183bd62
webpackJsonp
([
44
],{
GnXX
:
function
(
e
,
t
){},
aTXs
:
function
(
e
,
t
,
o
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
i
=
o
(
"CCn6"
),
n
=
{
data
:
function
(){
return
{
nowPage
:
1
,
total
:
0
,
menuList
:[],
plist
:[],
dialog
:{
title
:
"新增菜单"
,
show
:
!
1
,
rules
:{
name
:[{
required
:
!
0
,
message
:
"请填写菜单名称"
,
trigger
:
"change"
}],
cover
:[{
required
:
!
0
,
message
:
"请填写菜单code"
,
trigger
:
"change"
}]},
form
:{
id
:
""
,
name
:
""
,
cover
:
""
,
pid
:
0
,
type
:
2
}}}},
created
:
function
(){
this
.
getList
()},
methods
:{
getList
:
function
(){
var
e
=
this
;
Object
(
i
.
_49
)({
limit
:
100
}).
then
(
function
(
t
){
t
&&
(
e
.
menuList
=
[],
e
.
plist
=
[],
t
.
forEach
(
function
(
t
){
e
.
menuList
.
push
(
t
),
e
.
plist
.
push
(
t
),
t
.
children
&&
t
.
children
.
forEach
(
function
(
t
){
e
.
menuList
.
push
(
t
)})}))})},
edit
:
function
(
e
){
this
.
dialog
.
show
=!
0
,
this
.
dialog
.
form
.
id
=
e
.
id
,
this
.
dialog
.
title
=
"编辑菜单"
,
this
.
dialog
.
form
.
name
=
e
.
name
,
this
.
dialog
.
form
.
cover
=
e
.
cover
,
this
.
dialog
.
form
.
pid
=
e
.
pid
},
add
:
function
(){
this
.
dialog
.
show
=!
0
,
this
.
dialog
.
form
.
id
=
""
,
this
.
dialog
.
title
=
"新增菜单"
,
this
.
dialog
.
form
.
name
=
""
,
this
.
dialog
.
form
.
pid
=
0
,
this
.
dialog
.
form
.
cover
=
""
},
del
:
function
(
e
){
var
t
=
this
;
this
.
$confirm
(
"此操作将删除该菜单?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
i
.
K
)(
e
.
id
).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
}),
t
.
getList
()})})},
sub
:
function
(){
var
e
=
this
;
this
.
$refs
.
form
.
validate
(
function
(
t
){
if
(
t
){
var
o
=
e
.
dialog
;
if
(
o
.
form
.
id
){
var
n
=
{
name
:
o
.
form
.
name
,
cover
:
o
.
form
.
cover
,
pid
:
o
.
form
.
pid
};
e
.
$confirm
(
"此操作将修改该菜单?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
i
.
_122
)(
o
.
form
.
id
,
n
).
then
(
function
(){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
o
.
show
=!
1
,
e
.
getList
()})})}
else
{
var
a
=
{
name
:
o
.
form
.
name
,
cover
:
o
.
form
.
cover
,
pid
:
o
.
form
.
pid
};
e
.
$confirm
(
"此操作将添加新菜单?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
i
.
_99
)(
a
).
then
(
function
(){
e
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
o
.
show
=!
1
,
e
.
getList
()})})}}})}}},
a
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
o
=
e
.
_self
.
_c
||
t
;
return
o
(
"div"
,{
staticClass
:
"menu"
},[
o
(
"div"
,{
staticClass
:
"head clear-both"
},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
o
(
"el-button"
,{
staticStyle
:{
float
:
"right"
},
attrs
:{
plain
:
""
,
type
:
"success"
},
on
:{
click
:
e
.
add
}},[
e
.
_v
(
"新增菜单"
)])],
1
),
e
.
_v
(
" "
),
o
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
menuList
}},[
o
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"菜单名称"
}}),
e
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"cover"
,
label
:
"菜单Code"
}}),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
o
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
o
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"
\n
编辑
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
?
o
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"danger"
,
plain
:
""
},
on
:{
click
:
function
(
o
){
e
.
del
(
t
.
row
)}}},[
e
.
_v
(
"
\n
删除
\n
"
)]):
e
.
_e
()]}}])})],
1
),
e
.
_v
(
" "
),
o
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialog
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
e
.
dialog
.
show
,
width
:
"30%"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
dialog
,
"show"
,
t
)}}},[
o
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
rules
:
e
.
dialog
.
rules
,
model
:
e
.
dialog
.
form
,
"label-width"
:
"100px"
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"菜单名称"
,
prop
:
"name"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
dialog
.
form
.
name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dialog
.
form
,
"name"
,
t
)},
expression
:
"dialog.form.name"
}})],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"菜单Code"
,
prop
:
"cover"
}},[
o
(
"el-input"
,{
model
:{
value
:
e
.
dialog
.
form
.
cover
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dialog
.
form
,
"cover"
,
t
)},
expression
:
"dialog.form.cover"
}})],
1
),
e
.
_v
(
" "
),
o
(
"el-form-item"
,{
attrs
:{
label
:
"上级菜单"
,
prop
:
"cover"
}},[
o
(
"el-select"
,{
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
e
.
dialog
.
form
.
pid
,
callback
:
function
(
t
){
e
.
$set
(
e
.
dialog
.
form
,
"pid"
,
t
)},
expression
:
"dialog.form.pid"
}},[
o
(
"el-option"
,{
attrs
:{
label
:
"无"
,
value
:
0
}}),
e
.
_v
(
" "
),
e
.
_l
(
e
.
plist
,
function
(
e
){
return
o
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})})],
2
)],
1
)],
1
),
e
.
_v
(
" "
),
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialog
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
l
=
o
(
"VU/8"
)(
n
,
a
,
!
1
,
function
(
e
){
o
(
"GnXX"
)},
"data-v-34667903"
,
null
);
t
.
default
=
l
.
exports
}});
\ No newline at end of file
dist/static/js/45.cc440faa844aed89202f.js
0 → 100644
View file @
0183bd62
webpackJsonp
([
45
],{
"0HId"
:
function
(
e
,
t
,
s
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
s
(
"CCn6"
),
n
=
s
(
"NC6I"
),
o
=
s
.
n
(
n
),
i
=
{
data
:
function
(){
return
{
login
:{
username
:
""
,
password
:
""
},
loginRules
:{
username
:[{
required
:
!
0
,
message
:
"请输入您的用户名"
,
trigger
:
"blur"
}],
password
:[{
required
:
!
0
,
message
:
"请输入您的密码"
,
trigger
:
"blur"
}]}}},
mounted
:
function
(){
var
e
=
this
;
document
.
onkeydown
=
function
(
t
){
var
s
=
t
||
window
.
event
;
if
(
13
===
(
s
.
keyCode
||
s
.
which
||
s
.
charCode
)
&&
"login"
===
e
.
$route
.
name
)
return
e
.
submitForm
(),
!
1
;
return
!
0
}},
methods
:{
submitForm
:
function
(){
var
e
=
this
;
this
.
$refs
.
loginForm
.
validate
(
function
(
t
){
if
(
t
){
var
s
=
{
username
:
e
.
login
.
username
,
password
:
o
()(
e
.
login
.
password
)};
Object
(
r
.
_88
)(
s
).
then
(
function
(
t
){
if
(
t
.
teacher_info
){
var
s
=
JSON
.
stringify
(
t
.
teacher_info
);
localStorage
.
setItem
(
"phoneNum"
,
s
)}
else
localStorage
.
setItem
(
"phoneNum"
,
""
);
e
.
$store
.
dispatch
(
"setToken"
,
t
.
token
),
e
.
$store
.
dispatch
(
"setUserName"
,
t
.
desc
),
e
.
$store
.
dispatch
(
"setPermission"
,
JSON
.
parse
(
t
.
roles
.
menu_ids
)),
window
.
location
.
href
=
"/"
})}})}}},
a
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
s
=
e
.
_self
.
_c
||
t
;
return
s
(
"div"
,{
staticClass
:
"login"
},[
s
(
"div"
,{
staticClass
:
"wrap-main"
},[
s
(
"h1"
,{
staticClass
:
"title"
},[
e
.
_v
(
"唱唱启蒙——后台管理系统"
)]),
e
.
_v
(
" "
),
s
(
"el-form"
,{
ref
:
"loginForm"
,
attrs
:{
model
:
e
.
login
,
rules
:
e
.
loginRules
}},[
s
(
"el-form-item"
,{
attrs
:{
prop
:
"username"
}},[
s
(
"el-input"
,{
attrs
:{
placeholder
:
"用户名"
},
model
:{
value
:
e
.
login
.
username
,
callback
:
function
(
t
){
e
.
$set
(
e
.
login
,
"username"
,
t
)},
expression
:
"login.username"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
prop
:
"password"
}},[
s
(
"el-input"
,{
attrs
:{
type
:
"password"
,
placeholder
:
"密码"
},
model
:{
value
:
e
.
login
.
password
,
callback
:
function
(
t
){
e
.
$set
(
e
.
login
,
"password"
,
t
)},
expression
:
"login.password"
}})],
1
),
e
.
_v
(
" "
),
s
(
"el-form-item"
,[
s
(
"el-button"
,{
staticClass
:
"btn"
,
attrs
:{
size
:
"medium"
,
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"登陆"
)])],
1
)],
1
)],
1
)])},
staticRenderFns
:[]};
var
l
=
s
(
"VU/8"
)(
i
,
a
,
!
1
,
function
(
e
){
s
(
"eumS"
)},
"data-v-2dac99f0"
,
null
);
t
.
default
=
l
.
exports
},
eumS
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/46.274ce7653f003af7ef42.js
0 → 100644
View file @
0183bd62
webpackJsonp
([
46
],{
Ho9e
:
function
(
t
,
e
){},
TPCG
:
function
(
t
,
e
,
s
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
o
=
s
(
"CCn6"
),
i
=
s
(
"+TkF"
),
n
=
{
name
:
"entrance"
,
props
:[
"entranceObj"
],
data
:
function
(){
return
{
noticeDialog
:
!
1
,
activeName
:
"1"
,
form
:{
msg
:
""
},
form2
:{
msg
:
""
},
form3
:{
msg
:
""
},
form4
:{
msg
:
""
},
form5
:{
msg
:
""
},
form6
:{
msg
:
""
},
form7
:{
msg
:[]},
form8
:{
msg
:
""
},
thisList
:{},
thisList2
:{},
thisList3
:{},
thisList4
:{},
thisList5
:{},
thisList6
:{},
thisList7
:{},
thisList8
:{},
periodList
:[],
activeNames
:[
1
],
selectedGoods
:[],
secGoods
:[],
periodsId
:
""
}},
mounted
:
function
(){
this
.
second
()},
filters
:{},
methods
:{
handleItemChange
:
function
(
t
){
var
e
=
this
;
Object
(
o
.
_55
)({
goods_id
:
t
[
0
]}).
then
(
function
(
s
){
s
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
e
.
periodList
.
find
(
function
(
e
){
return
e
.
id
===
t
[
0
]}).
children
=
s
.
list
})},
onSend
:
function
(){
var
t
=
this
;
console
.
log
(
this
.
secGoods
),
Object
(
o
.
_95
)(
this
.
secGoods
[
1
]).
then
(
function
(
e
){
t
.
noticeDialog
=!
1
,
t
.
$message
({
type
:
"success"
,
message
:
"发生成功"
})})},
noticeDialogFn
:
function
(){
var
t
=
this
;
this
.
noticeDialog
=!
0
;
Object
(
o
.
_41
)({
page
:
1
,
limit
:
100
,
goods_type
:
"1,2"
}).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
name
=
"["
+
t
.
id
+
"]["
+
i
.
h
[
t
.
goods_type
]
+
"]["
+
t
.
current_price
/
100
+
"元]"
+
t
.
name
,
t
.
children
=
[]}),
t
.
periodList
=
e
.
list
,
t
.
initQuery
()})},
initQuery
:
function
(){
var
t
=
this
,
e
=
this
.
$route
.
query
;
e
&&
e
.
goods_id
&&
e
.
periods_id
?(
this
.
goods_id
=
e
.
goods_id
,
this
.
selectedGoods
=
[
parseInt
(
e
.
goods_id
),
parseInt
(
e
.
periods_id
)],
Object
(
o
.
_55
)({
goods_id
:
this
.
selectedGoods
[
0
]}).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
t
.
periodList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
0
]}).
children
=
e
.
list
;
var
s
=
t
.
periodList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
0
]});
t
.
periods
=
s
.
children
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
1
]}),
t
.
teacher_id
=
""
})):
Object
(
o
.
_36
)().
then
(
function
(
e
){
e
&&
(
t
.
goods_id
=
e
.
goods_id
,
t
.
selectedGoods
=
[
parseInt
(
e
.
goods_id
),
parseInt
(
e
.
id
)],
Object
(
o
.
_55
)({
goods_id
:
t
.
selectedGoods
[
0
]}).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
name
=
t
.
title
}),
t
.
periodList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
0
]}).
children
=
e
.
list
,
console
.
log
(
e
.
list
),
console
.
log
(
t
.
periodList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
0
]}).
children
);
var
s
=
t
.
periodList
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
0
]});
t
.
periods
=
s
.
children
.
find
(
function
(
e
){
return
e
.
id
===
t
.
selectedGoods
[
1
]}),
t
.
teacher_id
=
""
,
console
.
log
(
t
.
periodList
)}))})},
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
(
o
.
_30
)(
this
.
periods
.
id
,
e
).
then
(
function
(
e
){
e
.
list
.
forEach
(
function
(
t
){
t
.
arrive_course_rate
=
0
,
t
.
watch_course_rate
=
0
,
t
.
over_course_rate
=
0
,
t
.
work_rate
=
0
,
t
.
over_work_rate
=
0
,
t
.
clock_rate
=
0
,
t
.
over_clock_rate
=
0
,
t
.
transform_rate
=
0
}),
t
.
title
=
e
.
periods
,
t
.
title
.
count_join_num
=
e
.
count
.
count_join_num
?
e
.
count
.
count_join_num
:
"暂无"
,
t
.
title
.
count_max_join_num
=
e
.
count
.
count_max_join_num
?
e
.
count
.
count_max_join_num
:
"暂无"
,
t
.
title
.
count_teacher_num
=
e
.
count
.
count_teacher_num
?
e
.
count
.
count_teacher_num
:
"暂无"
,
t
.
countObj
=
e
.
count
?
e
.
count
:
""
,
t
.
classList
=
e
.
list
,
t
.
total
=
e
.
total
})}},
handleChange
:
function
(
t
){
"1"
===
t
?
this
.
first
():
"4"
===
t
?
this
.
four
():
"5"
===
t
?
this
.
five
():
"7"
===
t
?
this
.
seven
():
"8"
===
t
&&
this
.
eight
()},
first
:
function
(){
var
t
=
this
;
Object
(
o
.
_34
)({
key
:
"new_user_redirect"
}).
then
(
function
(
e
){
console
.
log
(
e
);
var
s
=
e
.
list
[
0
];
t
.
form
.
msg
=
s
.
desc
,
t
.
thisList
=
s
})},
second
:
function
(){
var
t
=
this
;
Object
(
o
.
_41
)({
limit
:
100
}).
then
(
function
(
e
){
t
.
goodsList
=
e
.
list
,
Object
(
o
.
_34
)({
key
:
"share_goods_id"
}).
then
(
function
(
e
){
console
.
log
(
e
);
var
s
=
e
.
list
[
0
];
t
.
form2
.
msg
=
s
.
value
,
t
.
thisList2
=
s
}),
Object
(
o
.
_34
)({
key
:
"mp_ads_goods_id"
}).
then
(
function
(
e
){
if
(
console
.
log
(
e
),
e
.
list
[
0
]){
var
s
=
e
.
list
[
0
];
t
.
form3
.
msg
=
s
.
desc
,
t
.
thisList3
=
s
}}),
Object
(
o
.
_34
)({
key
:
"no_course_goods_id"
}).
then
(
function
(
e
){
if
(
console
.
log
(
e
),
e
.
list
[
0
]){
var
s
=
e
.
list
[
0
];
t
.
form6
.
msg
=
s
.
value
,
t
.
thisList6
=
s
}})})},
four
:
function
(){
var
t
=
this
;
Object
(
o
.
_34
)({
key
:
"success_group_before_hour"
}).
then
(
function
(
e
){
if
(
console
.
log
(
e
),
e
.
list
[
0
]){
var
s
=
e
.
list
[
0
];
t
.
form4
.
msg
=
s
.
desc
,
t
.
thisList4
=
s
}})},
five
:
function
(){
var
t
=
this
;
Object
(
o
.
_34
)({
key
:
"urge_group_share_hour"
}).
then
(
function
(
e
){
if
(
console
.
log
(
e
),
e
.
list
[
0
]){
var
s
=
e
.
list
[
0
];
t
.
form5
.
msg
=
s
.
value
,
t
.
thisList5
=
s
}})},
seven
:
function
(){
var
t
=
this
;
Object
(
o
.
_34
)({
key
:
"automation_goods_ids"
}).
then
(
function
(
e
){
if
(
console
.
log
(
e
),
e
.
list
[
0
]){
var
s
=
e
.
list
[
0
];
t
.
form7
.
msg
=
s
.
value
.
split
(
","
),
t
.
thisList7
=
s
}})},
eight
:
function
(){
var
t
=
this
;
Object
(
o
.
_34
)({
key
:
"automation_conversion_goods_id"
}).
then
(
function
(
e
){
if
(
console
.
log
(
e
),
e
.
list
[
0
]){
var
s
=
e
.
list
[
0
];
t
.
form8
.
msg
=
s
.
value
,
t
.
thisList8
=
s
}})},
submitForm
:
function
(
t
){
var
e
=
this
;
this
.
$refs
[
t
].
validate
(
function
(
s
){
if
(
!
s
)
return
console
.
log
(
"error submit!!"
),
!
1
;
"form"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList
.
key
,
value
:
e
.
thisList
.
value
,
desc
:
e
.
form
.
msg
},
s
=
e
.
thisList
.
id
;
console
.
log
(
s
,
t
),
Object
(
o
.
_117
)(
s
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form2"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList2
.
key
,
value
:
e
.
form2
.
msg
,
desc
:
e
.
thisList2
.
desc
},
s
=
e
.
thisList2
.
id
;
Object
(
o
.
_117
)(
s
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form3"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList3
.
key
,
value
:
e
.
thisList3
.
value
,
desc
:
e
.
form3
.
msg
},
s
=
e
.
thisList3
.
id
;
Object
(
o
.
_117
)(
s
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form4"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList4
.
key
,
value
:
e
.
thisList4
.
value
,
desc
:
e
.
form4
.
msg
},
s
=
e
.
thisList4
.
id
;
Object
(
o
.
_117
)(
s
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form5"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList5
.
key
,
value
:
e
.
thisList5
.
value
,
desc
:
e
.
form5
.
msg
},
s
=
e
.
thisList5
.
id
;
Object
(
o
.
_117
)(
s
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form6"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList6
.
key
,
value
:
e
.
form6
.
msg
,
desc
:
e
.
thisList6
.
desc
},
s
=
e
.
thisList6
.
id
;
Object
(
o
.
_117
)(
s
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form7"
==
t
?
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList7
.
key
,
value
:
e
.
form7
.
msg
.
join
(
","
),
desc
:
e
.
thisList7
.
desc
},
s
=
e
.
thisList7
.
id
;
Object
(
o
.
_117
)(
s
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})}):
"form8"
==
t
&&
e
.
$confirm
(
"确认修改吗?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
var
t
=
{
key
:
e
.
thisList8
.
key
,
value
:
e
.
form8
.
msg
,
desc
:
e
.
thisList8
.
desc
},
s
=
e
.
thisList8
.
id
;
Object
(
o
.
_117
)(
s
,
t
).
then
(
function
(
t
){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
})})})})}}},
r
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
s
=
t
.
_self
.
_c
||
e
;
return
s
(
"div"
,{
staticClass
:
"box"
},[
s
(
"div"
,{
staticClass
:
"container"
},[
s
(
"div"
,{
staticClass
:
"item left"
},[
s
(
"div"
,{
staticStyle
:{
"margin-top"
:
"30px"
}},[
t
.
_v
(
"
\n
系统配置
\n
"
)]),
t
.
_v
(
" "
),
s
(
"div"
,{
staticStyle
:{
"margin-top"
:
"30px"
}}),
t
.
_v
(
" "
),
s
(
"el-collapse"
,{
attrs
:{
accordion
:
""
},
on
:{
change
:
t
.
handleChange
},
model
:{
value
:
t
.
activeNames
,
callback
:
function
(
e
){
t
.
activeNames
=
e
},
expression
:
"activeNames"
}},[
s
(
"el-collapse-item"
,{
attrs
:{
title
:
"设置无课用户点我要上课跳转地址"
,
name
:
"1"
}},[
s
(
"el-form"
,{
ref
:
"form"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form
}},[
s
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
s
(
"el-input"
,{
attrs
:{
type
:
"text"
,
autocomplete
:
"off"
},
model
:{
value
:
t
.
form
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form
,
"msg"
,
t
.
_n
(
e
))},
expression
:
"form.msg"
}})],
1
),
t
.
_v
(
" "
),
s
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
s
(
"el-collapse-item"
,{
attrs
:{
title
:
"打卡商品"
,
name
:
"2"
}},[
s
(
"el-form"
,{
ref
:
"form2"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form2
}},[
s
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
s
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form2
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form2
,
"msg"
,
e
)},
expression
:
"form2.msg"
}},
t
.
_l
(
t
.
goodsList
,
function
(
t
){
return
s
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
"【"
+
t
.
id
+
"】"
+
t
.
name
,
value
:
t
.
id
.
toString
()}})}))],
1
),
t
.
_v
(
" "
),
s
(
"el-form-item"
,{
attrs
:{
center
:
""
}},[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form2"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
s
(
"el-collapse-item"
,{
attrs
:{
title
:
"外部投放商品"
,
name
:
"3"
}},[
s
(
"el-form"
,{
ref
:
"form3"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form3
}},[
s
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
s
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form3
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form3
,
"msg"
,
e
)},
expression
:
"form3.msg"
}},
t
.
_l
(
t
.
goodsList
,
function
(
t
){
return
s
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
"【"
+
t
.
id
+
"】"
+
t
.
name
,
value
:
t
.
id
.
toString
()}})}))],
1
),
t
.
_v
(
" "
),
s
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form3"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
s
(
"el-collapse-item"
,{
attrs
:{
title
:
"默认成团时间(失效前几小时)"
,
name
:
"4"
}},[
s
(
"el-form"
,{
ref
:
"form4"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form4
}},[
s
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
s
(
"el-input"
,{
attrs
:{
type
:
"text"
,
autocomplete
:
"off"
},
model
:{
value
:
t
.
form4
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form4
,
"msg"
,
t
.
_n
(
e
))},
expression
:
"form4.msg"
}})],
1
),
t
.
_v
(
" "
),
s
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form4"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
s
(
"el-collapse-item"
,{
attrs
:{
title
:
"未成团催团通知时间(失效前几小时)"
,
name
:
"5"
}},[
s
(
"el-form"
,{
ref
:
"form5"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form5
}},[
s
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
s
(
"el-input"
,{
attrs
:{
type
:
"text"
,
autocomplete
:
"off"
},
model
:{
value
:
t
.
form5
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form5
,
"msg"
,
t
.
_n
(
e
))},
expression
:
"form5.msg"
}})],
1
),
t
.
_v
(
" "
),
s
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form5"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
s
(
"el-collapse-item"
,{
attrs
:{
title
:
"无课用户推荐商品"
,
name
:
"6"
}},[
s
(
"el-form"
,{
ref
:
"form6"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form6
}},[
s
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
s
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form6
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form6
,
"msg"
,
e
)},
expression
:
"form6.msg"
}},
t
.
_l
(
t
.
goodsList
,
function
(
t
){
return
s
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
"【"
+
t
.
id
+
"】"
+
t
.
name
,
value
:
t
.
id
.
toString
()}})}))],
1
),
t
.
_v
(
" "
),
s
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form6"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
s
(
"el-collapse-item"
,{
attrs
:{
title
:
"自动化推荐体验商品"
,
name
:
"7"
}},[
s
(
"el-form"
,{
ref
:
"form7"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form7
}},[
s
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
s
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
multiple
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form7
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form7
,
"msg"
,
e
)},
expression
:
"form7.msg"
}},
t
.
_l
(
t
.
goodsList
,
function
(
t
){
return
s
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
"【"
+
t
.
id
+
"】"
+
t
.
name
,
value
:
t
.
id
.
toString
()}})}))],
1
),
t
.
_v
(
" "
),
s
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form7"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
s
(
"el-collapse-item"
,{
attrs
:{
title
:
"自动化推荐转化商品ID"
,
name
:
"8"
}},[
s
(
"el-form"
,{
ref
:
"form8"
,
staticClass
:
"demo-ruleForm"
,
staticStyle
:{
width
:
"700px"
},
attrs
:{
model
:
t
.
form8
}},[
s
(
"el-form-item"
,{
staticStyle
:{
width
:
"500px"
},
attrs
:{
prop
:
"msg"
,
rules
:[{
required
:
!
0
,
message
:
"配置信息不能为空"
}]}},[
s
(
"el-select"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
form8
.
msg
,
callback
:
function
(
e
){
t
.
$set
(
t
.
form8
,
"msg"
,
e
)},
expression
:
"form8.msg"
}},
t
.
_l
(
t
.
goodsList
,
function
(
t
){
return
s
(
"el-option"
,{
key
:
t
.
id
,
attrs
:{
label
:
"【"
+
t
.
id
+
"】"
+
t
.
name
,
value
:
t
.
id
.
toString
()}})}))],
1
),
t
.
_v
(
" "
),
s
(
"el-form-item"
,[
t
.
$store
.
state
.
readonly
?
t
.
_e
():
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
e
){
t
.
submitForm
(
"form8"
)}}},[
t
.
_v
(
"确定"
)])],
1
)],
1
)],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"item"
},[
s
(
"div"
,{
staticStyle
:{
"margin-top"
:
"30px"
}},[
t
.
_v
(
"
\n
系统功能
\n
"
)]),
t
.
_v
(
" "
),
s
(
"div"
,{
staticStyle
:{
"margin-top"
:
"30px"
}}),
t
.
_v
(
" "
),
s
(
"div"
,[
s
(
"el-button"
,{
on
:{
click
:
t
.
noticeDialogFn
}},[
t
.
_v
(
"
\n
发送活动通知
\n
"
)])],
1
)])]),
t
.
_v
(
" "
),
s
(
"el-dialog"
,{
attrs
:{
title
:
"发生活动通知(限活动期数发送)"
,
visible
:
t
.
noticeDialog
},
on
:{
"update:visible"
:
function
(
e
){
t
.
noticeDialog
=
e
}}},[
s
(
"el-cascader"
,{
attrs
:{
options
:
t
.
periodList
,
props
:{
value
:
"id"
,
label
:
"name"
}},
on
:{
"active-item-change"
:
t
.
handleItemChange
},
model
:{
value
:
t
.
secGoods
,
callback
:
function
(
e
){
t
.
secGoods
=
e
},
expression
:
"secGoods"
}}),
t
.
_v
(
" "
),
s
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
s
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
noticeDialog
=!
1
}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
s
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
onSend
}},[
t
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
c
=
s
(
"VU/8"
)(
n
,
r
,
!
1
,
function
(
t
){
s
(
"Ho9e"
)},
"data-v-2894b63d"
,
null
);
e
.
default
=
c
.
exports
}});
\ No newline at end of file
dist/static/js/app.d2a18b8f8f90e251ef7f.js
0 → 100644
View file @
0183bd62
webpackJsonp
([
54
],{
IcnI
:
function
(
e
,
n
,
t
){
"use strict"
;
var
o
=
t
(
"NYxO"
),
a
=
t
(
"zSLJ"
),
r
=
{
setToken
:
function
(
e
,
n
){
e
.
token
=
n
,
a
.
a
.
set
(
"cc_token"
,
n
)},
setUserName
:
function
(
e
,
n
){
e
.
userName
=
n
,
a
.
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
},
distribution
:
function
(
e
,
n
){
e
.
distribution
=
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
})}}};
n
.
a
=
new
o
.
a
.
Store
({
state
:{
show
:
!
1
,
userName
:
""
,
token
:
""
,
export
:
!
1
,
orderRefund
:
!
1
,
permission
:
!
1
,
readonly
:
!
0
,
deletePermission
:
!
1
,
distribution
:
!
1
,
mainLoad
:
!
0
,
menuList
:[],
menuType
:
!
1
,
nowTab
:
"first"
,
progressList
:[],
openedTab
:[{
value
:
"首页"
,
routerName
:
"first"
,
name
:
"first"
,
delNo
:
!
0
,
path
:
"/index"
}]},
mutations
:
r
,
actions
:{
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
){(
0
,
e
.
commit
)(
"deletePermission"
,
n
)},
distribution
:
function
(
e
,
n
){(
0
,
e
.
commit
)(
"distribution"
,
n
)}}})},
NHnr
:
function
(
e
,
n
,
t
){
"use strict"
;
Object
.
defineProperty
(
n
,
"__esModule"
,{
value
:
!
0
});
var
o
=
[{
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
(
2
)]).
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
(
24
)]).
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
:
"marketStatistics"
,
path
:
"/marketStatistics"
,
cover
:
"2-5"
,
router
:{
path
:
"/marketStatistics"
,
name
:
"marketStatistics"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
51
)]).
then
(
function
(){
var
n
=
[
t
(
"SKyX"
)];
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
(
32
)]).
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
(
3
)]).
then
(
function
(){
var
n
=
[
t
(
"Y0Vi"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"月课订单列表"
,
routerName
:
"monthOrder"
,
path
:
"/monthOrder"
,
cover
:
"5-10"
,
router
:{
path
:
"/monthOrder"
,
name
:
"monthOrder"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
5
)]).
then
(
function
(){
var
n
=
[
t
(
"xdzM"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"月课订单统计"
,
routerName
:
"monthOrderCount"
,
path
:
"/monthOrderCount"
,
cover
:
"5-12"
,
router
:{
path
:
"/monthOrderCount"
,
name
:
"monthOrderCount"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
39
)]).
then
(
function
(){
var
n
=
[
t
(
"v/LD"
)];
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
(
36
)]).
then
(
function
(){
var
n
=
[
t
(
"89rD"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"业绩排行"
,
routerName
:
"achievement"
,
path
:
"/achievement"
,
cover
:
"5-7"
,
router
:{
path
:
"/achievement"
,
name
:
"achievement"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
21
)]).
then
(
function
(){
var
n
=
[
t
(
"Fmgy"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"用户管理"
,
icon
:
"icon-laoshi"
,
list
:[{
value
:
"用户列表"
,
routerName
:
"user"
,
path
:
"/user"
,
cover
:
"3-2"
,
router
:{
path
:
"/user"
,
name
:
"user"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
7
)]).
then
(
function
(){
var
n
=
[
t
(
"jFLA"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"老系统用户列表"
,
routerName
:
"oldUser"
,
path
:
"/oldUser"
,
cover
:
"3-3"
,
router
:{
path
:
"/oldUser"
,
name
:
"oldUser"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
35
)]).
then
(
function
(){
var
n
=
[
t
(
"K2yr"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"用户积分列表"
,
routerName
:
"integral"
,
path
:
"/integral"
,
cover
:
"3-4"
,
router
:{
path
:
"/integral"
,
name
:
"integral"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
12
)]).
then
(
function
(){
var
n
=
[
t
(
"NDyu"
)];
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
(
8
)]).
then
(
function
(){
var
n
=
[
t
(
"2qmY"
)];
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
(
33
)]).
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
(
48
).
then
(
function
(){
var
n
=
[
t
(
"usUK"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"订单统计"
,
routerName
:
"orderCount"
,
path
:
"/orderCount"
,
cover
:
"5-5"
,
router
:{
path
:
"/orderCount"
,
name
:
"orderCount"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
53
)]).
then
(
function
(){
var
n
=
[
t
(
"s7i+"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"日课订单统计"
,
routerName
:
"dayOrderCount"
,
path
:
"/dayOrderCount"
,
cover
:
"5-11"
,
router
:{
path
:
"/dayOrderCount"
,
name
:
"dayOrderCount"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
40
)]).
then
(
function
(){
var
n
=
[
t
(
"mjLz"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"优惠券列表"
,
routerName
:
"coupon"
,
path
:
"/coupon"
,
cover
:
"5-6"
,
router
:{
path
:
"/coupon"
,
name
:
"coupon"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
28
)]).
then
(
function
(){
var
n
=
[
t
(
"WvRy"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"扫码入课列表"
,
routerName
:
"notBuyClass"
,
path
:
"/notBuyClass"
,
cover
:
"5-8"
,
router
:{
path
:
"/notBuyClass"
,
name
:
"notBuyClass"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
23
)]).
then
(
function
(){
var
n
=
[
t
(
"E6Zo"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"外部订单列表"
,
routerName
:
"yunji"
,
path
:
"/yunji"
,
cover
:
"5-9"
,
router
:{
path
:
"/yunji"
,
name
:
"yunji"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
13
)]).
then
(
function
(){
var
n
=
[
t
(
"69L+"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"兑换码管理"
,
routerName
:
"exchange"
,
path
:
"/exchange"
,
cover
:
"5-13"
,
router
:{
path
:
"/exchange"
,
name
:
"exchange"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
17
)]).
then
(
function
(){
var
n
=
[
t
(
"CvLZ"
)];
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
(
20
)]).
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
(
16
)]).
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
(
18
)]).
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
(
19
)]).
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
(
25
)]).
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
:
"二维码管理"
,
routerName
:
"qrcode"
,
path
:
"/qrcode"
,
cover
:
"7-6"
,
router
:{
path
:
"/qrcode"
,
name
:
"qrcode"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
15
)]).
then
(
function
(){
var
n
=
[
t
(
"lNiQ"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"群发助手"
,
routerName
:
"groupSend"
,
path
:
"/groupSend"
,
cover
:
"7-7"
,
router
:{
path
:
"/groupSend"
,
name
:
"groupSend"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
11
)]).
then
(
function
(){
var
n
=
[
t
(
"oerw"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"关注取关统计"
,
routerName
:
"watchCount"
,
path
:
"/watchCount"
,
cover
:
"7-8"
,
router
:{
path
:
"/watchCount"
,
name
:
"watchCount"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
50
)]).
then
(
function
(){
var
n
=
[
t
(
"Dq6T"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"微信统计"
,
routerName
:
"weChatStatistics"
,
path
:
"/weChatStatistics"
,
cover
:
"7-10"
,
router
:{
path
:
"/weChatStatistics"
,
name
:
"weChatStatistics"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
52
)]).
then
(
function
(){
var
n
=
[
t
(
"5t3x"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"测试"
,
routerName
:
"test"
,
path
:
"/test"
,
cover
:
"7-11"
,
router
:{
path
:
"/test"
,
name
:
"test"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
30
)]).
then
(
function
(){
var
n
=
[
t
(
"9ZSL"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]},{
name
:
""
,
value
:
"系统管理"
,
icon
:
"icon-xitongquanxian"
,
list
:[{
value
:
"首页管理"
,
routerName
:
"banner"
,
path
:
"/banner"
,
cover
:
"7-5"
,
router
:{
path
:
"/banner"
,
name
:
"banner"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
27
)]).
then
(
function
(){
var
n
=
[
t
(
"CGL6"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"外部投放管理"
,
routerName
:
"externalLaunch"
,
path
:
"/externalLaunch"
,
cover
:
"7-9"
,
router
:{
path
:
"/externalLaunch"
,
name
:
"externalLaunch"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
47
)]).
then
(
function
(){
var
n
=
[
t
(
"NrkQ"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"来源码管理"
,
routerName
:
"sourceManage"
,
path
:
"/sourceManage"
,
cover
:
"10-1"
,
router
:{
path
:
"/sourceManage"
,
name
:
"sourceManage"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
34
)]).
then
(
function
(){
var
n
=
[
t
(
"/ubI"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"短信发送记录"
,
routerName
:
"smsRecord"
,
path
:
"/smsRecord"
,
cover
:
"10-2"
,
router
:{
path
:
"/smsRecord"
,
name
:
"smsRecord"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
29
)]).
then
(
function
(){
var
n
=
[
t
(
"qjS+"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}},{
value
:
"系统配置"
,
routerName
:
"config"
,
path
:
"/config"
,
cover
:
"10-3"
,
router
:{
path
:
"/config"
,
name
:
"config"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
46
)]).
then
(
function
(){
var
n
=
[
t
(
"TPCG"
)];
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
(
38
)]).
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
(
42
)]).
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
(
44
)]).
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
(
31
)]).
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
(
37
)]).
then
(
function
(){
var
n
=
[
t
(
"WZgi"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}}]}],
a
=
{
name
:
"App"
,
data
:
function
(){
return
{}},
mounted
:
function
(){
var
e
=
this
;
if
(
window
.
location
.
href
.
indexOf
(
"login"
)
<
0
){
var
n
=
this
.
$store
.
state
.
progressList
;
console
.
log
(
this
.
$store
.
state
);
var
a
=
[];
this
.
$router
.
options
.
routes
[
0
].
children
=
[];
var
r
=
{
path
:
"/userDetail/:id"
,
name
:
"userDetail"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
22
)]).
then
(
function
(){
var
n
=
[
t
(
"9PRC"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}},
i
=
{
path
:
"/teacher/:id"
,
name
:
"teacherDetail"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
6
)]).
then
(
function
(){
var
n
=
[
t
(
"hFUZ"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}};
o
.
forEach
(
function
(
t
){
var
o
=!
1
,
u
=
[];
t
.
list
.
forEach
(
function
(
t
){
var
a
=
n
.
find
(
function
(
e
){
return
e
.
cover
===
t
.
cover
});
a
&&
(
t
.
router
.
meta
=
{},
t
.
router
.
meta
.
readonly
=!!
a
.
readonly
,
t
.
router
.
meta
.
delete
=!!
a
.
delete
,
t
.
router
.
meta
.
export
=!!
a
.
export
,
t
.
router
.
meta
.
refund
=!!
a
.
refund
,
t
.
router
.
meta
.
distribution
=!!
a
.
distribution
,
u
.
push
(
t
),
"3-1"
===
a
.
cover
&&
(
i
.
meta
=
{},
i
.
meta
.
readonly
=
a
.
readonly
,
i
.
meta
.
delete
=!!
a
.
delete
,
e
.
$router
.
options
.
routes
[
0
].
children
.
push
(
i
)),
"3-2"
===
a
.
cover
&&
(
r
.
meta
=
{},
r
.
meta
.
readonly
=
a
.
readonly
,
r
.
meta
.
delete
=!!
a
.
delete
,
e
.
$router
.
options
.
routes
[
0
].
children
.
push
(
r
)),
e
.
$router
.
options
.
routes
[
0
].
children
.
push
(
t
.
router
),
o
=!
0
)}),
o
&&
(
t
.
list
=
u
,
a
.
push
(
t
))}),
this
.
$router
.
addRoutes
([
this
.
$router
.
options
.
routes
[
0
]]),
this
.
$store
.
dispatch
(
"setMenu"
,
a
)}}},
r
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
n
=
this
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
attrs
:{
id
:
"app"
}},[
n
(
"router-view"
)],
1
)},
staticRenderFns
:[]};
var
i
=
t
(
"VU/8"
)(
a
,
r
,
!
1
,
function
(
e
){
t
(
"YZCe"
)},
null
,
null
).
exports
,
u
=
t
(
"YaEn"
),
c
=
t
(
"IcnI"
);
Vue
.
config
.
productionTip
=!
1
,
new
Vue
({
el
:
"#app"
,
store
:
c
.
a
,
router
:
u
.
a
,
components
:{
App
:
i
},
template
:
"<App/>"
})},
YZCe
:
function
(
e
,
n
){},
YaEn
:
function
(
e
,
n
,
t
){
"use strict"
;
var
o
=
t
(
"IcnI"
),
a
=
t
(
"/ocq"
),
r
=
t
(
"zSLJ"
),
i
=
new
a
.
a
({
routes
:[{
path
:
"/"
,
name
:
"index"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
9
)]).
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
(
41
).
then
(
function
(){
var
n
=
[
t
(
"sJm1"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)}}]},{
path
:
"/login"
,
name
:
"login"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
45
)]).
then
(
function
(){
var
n
=
[
t
(
"0HId"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)},
meta
:{
skip_auth
:
!
0
}},{
path
:
"/outManager"
,
name
:
"outManager"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
49
)]).
then
(
function
(){
var
n
=
[
t
(
"hLMI"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)},
meta
:{
skip_auth
:
!
0
}},{
path
:
"/upload"
,
name
:
"upload"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
43
)]).
then
(
function
(){
var
n
=
[
t
(
"iPJD"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)},
meta
:{
skip_auth
:
!
0
}},{
path
:
"/newLesson"
,
name
:
"newLesson"
,
component
:
function
(
e
){
return
Promise
.
all
([
t
.
e
(
0
),
t
.
e
(
4
)]).
then
(
function
(){
var
n
=
[
t
(
"4t0V"
)];
e
.
apply
(
null
,
n
)}.
bind
(
this
)).
catch
(
t
.
oe
)},
meta
:{
skip_auth
:
!
0
}}]});
i
.
beforeEach
(
function
(
e
,
n
,
t
){
if
(
o
.
a
.
commit
(
"mainCanShow"
),
r
.
a
.
get
(
"cc_token"
)
&&
(
o
.
a
.
dispatch
(
"setToken"
,
r
.
a
.
get
(
"cc_token"
)),
o
.
a
.
dispatch
(
"setPermission"
,
JSON
.
parse
(
localStorage
.
getItem
(
"permission"
))),
null
!==
r
.
a
.
get
(
"cc_user_name"
)
&&
o
.
a
.
dispatch
(
"setUserName"
,
r
.
a
.
get
(
"cc_user_name"
))),
o
.
a
.
state
.
nowTab
=
e
.
name
,
e
.
matched
.
length
>
1
&&
"first"
!==
e
.
name
){
for
(
var
a
=
void
0
,
i
=
0
;
i
<
o
.
a
.
state
.
menuList
.
length
;
i
++
)
for
(
var
u
=
o
.
a
.
state
.
menuList
[
i
],
c
=
0
;
c
<
u
.
list
.
length
;
c
++
){
var
l
=
u
.
list
[
c
];
l
.
path
===
e
.
path
&&
(
a
=
l
)}
o
.
a
.
state
.
openedTab
.
indexOf
(
a
)
<
0
&&
o
.
a
.
state
.
openedTab
.
push
(
a
)}
if
(
e
.
meta
.
readonly
?
o
.
a
.
dispatch
(
"readonly"
,
!
0
):
o
.
a
.
dispatch
(
"readonly"
,
!
1
),
o
.
a
.
state
.
orderRefund
=
e
.
meta
.
refund
,
o
.
a
.
state
.
export
=
e
.
meta
.
export
,
o
.
a
.
state
.
distribution
=
e
.
meta
.
distribution
,
"userDetail"
===
e
.
name
){
var
s
=
JSON
.
parse
(
localStorage
.
getItem
(
"permission"
)).
find
(
function
(
e
){
return
"3-2"
===
e
.
cover
}).
readonly
;
o
.
a
.
dispatch
(
"readonly"
,
s
)}
e
.
meta
.
delete
?
o
.
a
.
dispatch
(
"deletePermission"
,
!
0
):
o
.
a
.
dispatch
(
"deletePermission"
,
!
1
),
e
.
matched
.
some
(
function
(
e
){
return
!
0
!==
e
.
meta
.
skip_auth
})
&&!
o
.
a
.
state
.
token
?
t
({
path
:
"/login"
}):
t
()}),
i
.
onError
(
function
(
e
){
var
n
=
e
.
message
.
match
(
/Loading chunk
(\d)
+ failed/g
),
t
=
i
.
history
.
pending
.
fullPath
;
n
&&
i
.
replace
(
t
)}),
n
.
a
=
i
},
lRwf
:
function
(
e
,
n
){
e
.
exports
=
Vue
},
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.ed07b7179249fdc53c6d.js
0 → 100644
View file @
0183bd62
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
t
=
a
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
c
&&
c
(
a
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
a
=
{},
f
=
{
56
:
0
};
function
d
(
c
){
if
(
a
[
c
])
return
a
[
c
].
exports
;
var
f
=
a
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
c
=
f
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
a
=
new
Promise
(
function
(
a
,
d
){
c
=
f
[
e
]
=
[
a
,
d
]});
c
[
2
]
=
a
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"aad47949668c9c84877a"
,
1
:
"18ef2da711b937456721"
,
2
:
"f285170898e3f62cc838"
,
3
:
"c2b3b8b2649e7a65b863"
,
4
:
"06cba7088948f5a52f00"
,
5
:
"69b37f27e8a7b8115ff9"
,
6
:
"2e1c347ea27975d7a997"
,
7
:
"510bbcc8314a816bd68b"
,
8
:
"b3aa50c4af7b2cdce421"
,
9
:
"02408b42bfa25b9211bb"
,
10
:
"50e3a86a7257d92c6d11"
,
11
:
"bf662d8dce33a95b54e8"
,
12
:
"0f8cf72ff9a82026e4bb"
,
13
:
"3bceacf51692f7e6083d"
,
14
:
"1c1389cd180e64a2062d"
,
15
:
"03ca213ca5a3f48944d9"
,
16
:
"39e0963902d2c482e169"
,
17
:
"eb1744ffcd2565bc88c1"
,
18
:
"6d2de53dc167a468b025"
,
19
:
"2e1f5d3a5dfcdb87ce2c"
,
20
:
"d487c3254db4f01c8f72"
,
21
:
"a4e2ea628f3a6ef57425"
,
22
:
"bf0cd91b035df0e20144"
,
23
:
"d078c8184819af87f3d4"
,
24
:
"b28df522b7f1ded769a0"
,
25
:
"2567c7922f887553bf09"
,
26
:
"7128709eb53d93566085"
,
27
:
"267cef7bc8d1e6964407"
,
28
:
"ffec9fb9b48e45a1853e"
,
29
:
"7aafa98c83d571affcab"
,
30
:
"e11e9f6152d8cd4c3030"
,
31
:
"b20d45414fa85054cdd0"
,
32
:
"ac91636572b1cd0b7769"
,
33
:
"7b834e6d0298e410e1b0"
,
34
:
"f304800bd1e03aee3d3f"
,
35
:
"4c932c95729327205f01"
,
36
:
"8b9a5dda8aa693a6ea9a"
,
37
:
"02742176aa6fef1c22c6"
,
38
:
"d5ee761beebc7a159c27"
,
39
:
"4d392ec52be860b9f09e"
,
40
:
"c4563ce44badd4d51d1b"
,
41
:
"c68b38e419700f2360f2"
,
42
:
"9deb0b4c322248e7c116"
,
43
:
"a501ec1ed9e3ba0afca1"
,
44
:
"19bbaca27d596e8feedb"
,
45
:
"cc440faa844aed89202f"
,
46
:
"274ce7653f003af7ef42"
,
47
:
"e864b028f898e999087a"
,
48
:
"b163cd5e2750e3f00800"
,
49
:
"2c20b652d59b2de810df"
,
50
:
"278f754d9e9c7c19dcbe"
,
51
:
"d0cc5f34a91f30e2dfb1"
,
52
:
"ed03a9a8d07fe41dc94f"
,
53
:
"c82163df97368700b05e"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
a
},
d
.
m
=
e
,
d
.
c
=
a
,
d
.
d
=
function
(
e
,
c
,
a
){
d
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
d
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
c
,
"a"
,
c
),
c
},
d
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
d
.
p
=
"/"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/components/class/index.vue
View file @
0183bd62
...
...
@@ -27,11 +27,6 @@
搜索
</el-button>
</el-form-item>
<el-form-item
label=
""
>
<el-button
@
click=
"noticeDialogFn"
>
发送活动通知
</el-button>
</el-form-item>
<el-form-item
style=
"float: right"
>
<el-button
@
click=
"onAdd"
type=
"success"
v-if=
"!$store.state.readonly"
>
+添加班级
</el-button>
</el-form-item>
...
...
@@ -192,22 +187,6 @@
</el-table-column>
</el-table>
</div>
<el-dialog
title=
"发生活动通知(限活动期数发送)"
:visible
.
sync=
"noticeDialog"
>
<el-cascader
:options=
"goodsList"
:props=
"{value:'id',label:'name'}"
@
active-item-change=
"handleItemChange"
v-model=
"secGoods"
>
</el-cascader>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogObj.show = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"onSend"
>
确 定
</el-button>
</span>
</el-dialog>
<page
:nowPage=
"nowPage"
:total=
"total"
:limit=
"limit"
@
pageChange=
"onPageChange"
@
sizeChange=
"onSizeChange"
/>
<class-dialog
:dialogObj=
"dialogObj"
@
reflash=
"onReflash"
></class-dialog>
<user-list
:userObj=
"userObj"
@
reflash=
"getClassList"
/>
...
...
@@ -279,13 +258,6 @@
},
methods
:{
onSend
(){
console
.
log
(
this
.
secGoods
)
postActiveNoticeApi
(
this
.
secGoods
[
1
])
},
noticeDialogFn
(){
this
.
noticeDialog
=
true
},
changeRow
(
data
,
b
){
if
(
b
.
indexOf
(
data
)
>-
1
){
getClassStatisticsApi
(
data
.
periods_id
,
data
.
id
).
then
(
res
=>
{
...
...
@@ -324,11 +296,13 @@
let
nowGoods
=
this
.
goodsList
.
find
(
i
=>
{
return
i
.
id
===
this
.
selectedGoods
[
0
]});
this
.
periods
=
nowGoods
.
children
.
find
(
i
=>
{
return
i
.
id
===
this
.
selectedGoods
[
1
]});
this
.
teacher_id
=
''
;
console
.
log
(
this
.
goodsList
)
this
.
getClassList
()
});
}
})
})
}
console
.
log
(
this
.
goodsList
)
},
initPage
(){
let
json
=
{
...
...
src/components/config/index.vue
View file @
0183bd62
<
template
>
<div
class=
"box"
>
<div
class=
"container"
>
<div
class=
"item left"
>
<div
style=
"margin-top:30px;"
>
系统配置
</div>
...
...
@@ -156,20 +158,56 @@
</el-form-item>
</el-form>
</el-collapse-item>
</el-collapse>
</el-collapse>
</div>
<div
class=
"item"
>
<div
style=
"margin-top:30px;"
>
系统功能
</div>
<div
style=
"margin-top:30px;"
></div>
<div>
<el-button
@
click=
"noticeDialogFn"
>
发送活动通知
</el-button>
</div>
</div>
</div>
<el-dialog
title=
"发生活动通知(限活动期数发送)"
:visible
.
sync=
"noticeDialog"
>
<el-cascader
:options=
"periodList"
:props=
"
{value:'id',label:'name'}"
@active-item-change="handleItemChange"
v-model="secGoods"
>
</el-cascader>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"noticeDialog = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"onSend"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</
template
>
<
script
>
import
{
getConfigListApi
,
updateConfigApi
,
getGoodsListApi
getGoodsListApi
,
postActiveNoticeApi
,
getPeriodsApi
,
getClassListApi
,
getPeriodsTeacherApi
,
getDefaultPeriodsApi
}
from
"../../service/api"
;
import
{
GOODSTYPE
,
CLASSSOURCE
}
from
'../../util/wordbook'
;
export
default
{
name
:
"entrance"
,
props
:
[
"entranceObj"
],
data
()
{
return
{
noticeDialog
:
false
,
activeName
:
"1"
,
form
:
{
msg
:
""
...
...
@@ -203,8 +241,11 @@ export default {
thisList6
:
{},
thisList7
:
{},
thisList8
:
{},
goodsList
:
[],
activeNames
:[
1
]
periodList
:
[],
activeNames
:[
1
],
selectedGoods
:
[],
secGoods
:[],
periodsId
:
''
};
},
mounted
()
{
...
...
@@ -213,6 +254,103 @@ export default {
},
filters
:
{},
methods
:
{
handleItemChange
(
val
){
getPeriodsApi
({
goods_id
:
val
[
0
]}).
then
(
res
=>
{
res
.
list
.
forEach
(
i
=>
{
i
.
name
=
i
.
title
});
this
.
periodList
.
find
(
i
=>
{
return
i
.
id
===
val
[
0
]}).
children
=
res
.
list
})
},
onSend
(){
console
.
log
(
this
.
secGoods
)
postActiveNoticeApi
(
this
.
secGoods
[
1
]).
then
(
res
=>
{
this
.
noticeDialog
=
false
;
this
.
$message
({
type
:
"success"
,
message
:
"发生成功"
});
})
},
noticeDialogFn
(){
this
.
noticeDialog
=
true
let
json
=
{
page
:
1
,
limit
:
100
,
goods_type
:
'1,2'
};
getGoodsListApi
(
json
).
then
(
res
=>
{
// console.log(res)
res
.
list
.
forEach
(
i
=>
{
i
.
name
=
'['
+
i
.
id
+
']'
+
'['
+
GOODSTYPE
[
i
.
goods_type
]
+
']'
+
'['
+
i
.
current_price
/
100
+
'元]'
+
i
.
name
i
.
children
=
[];
});
this
.
periodList
=
res
.
list
;
this
.
initQuery
();
});
},
initQuery
(){
let
_query
=
this
.
$route
.
query
;
if
(
_query
&&
_query
.
goods_id
&&
_query
.
periods_id
)
{
this
.
goods_id
=
_query
.
goods_id
;
this
.
selectedGoods
=
[
parseInt
(
_query
.
goods_id
),
parseInt
(
_query
.
periods_id
)];
getPeriodsApi
({
goods_id
:
this
.
selectedGoods
[
0
]}).
then
(
res
=>
{
res
.
list
.
forEach
(
i
=>
{
i
.
name
=
i
.
title
});
this
.
periodList
.
find
(
i
=>
{
return
i
.
id
===
this
.
selectedGoods
[
0
]}).
children
=
res
.
list
let
nowGoods
=
this
.
periodList
.
find
(
i
=>
{
return
i
.
id
===
this
.
selectedGoods
[
0
]});
this
.
periods
=
nowGoods
.
children
.
find
(
i
=>
{
return
i
.
id
===
this
.
selectedGoods
[
1
]});
this
.
teacher_id
=
''
;
// this.getClassList()
})
}
else
{
getDefaultPeriodsApi
().
then
(
res
=>
{
if
(
res
){
this
.
goods_id
=
res
.
goods_id
;
this
.
selectedGoods
=
[
parseInt
(
res
.
goods_id
),
parseInt
(
res
.
id
)];
getPeriodsApi
({
goods_id
:
this
.
selectedGoods
[
0
]}).
then
(
res
=>
{
res
.
list
.
forEach
(
i
=>
{
i
.
name
=
i
.
title
});
this
.
periodList
.
find
(
i
=>
{
return
i
.
id
===
this
.
selectedGoods
[
0
]}).
children
=
res
.
list
console
.
log
(
res
.
list
)
console
.
log
(
this
.
periodList
.
find
(
i
=>
{
return
i
.
id
===
this
.
selectedGoods
[
0
]}).
children
)
let
nowGoods
=
this
.
periodList
.
find
(
i
=>
{
return
i
.
id
===
this
.
selectedGoods
[
0
]});
this
.
periods
=
nowGoods
.
children
.
find
(
i
=>
{
return
i
.
id
===
this
.
selectedGoods
[
1
]});
this
.
teacher_id
=
''
;
// this.getClassList()
console
.
log
(
this
.
periodList
)
});
}
})
}
},
getClassList
(){
if
(
!
this
.
periods
)
return
;
this
.
getTeacher
();
let
json
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
if
(
this
.
teacher_id
)
{
json
.
teacher_id
=
this
.
teacher_id
}
getClassListApi
(
this
.
periods
.
id
,
json
).
then
(
res
=>
{
res
.
list
.
forEach
(
data
=>
{
data
.
arrive_course_rate
=
0
;
data
.
watch_course_rate
=
0
;
data
.
over_course_rate
=
0
;
data
.
work_rate
=
0
;
data
.
over_work_rate
=
0
;
data
.
clock_rate
=
0
;
data
.
over_clock_rate
=
0
;
data
.
transform_rate
=
0
;
});
this
.
title
=
res
.
periods
;
this
.
title
.
count_join_num
=
res
.
count
.
count_join_num
?
res
.
count
.
count_join_num
:
'暂无'
;
this
.
title
.
count_max_join_num
=
res
.
count
.
count_max_join_num
?
res
.
count
.
count_max_join_num
:
'暂无'
;
this
.
title
.
count_teacher_num
=
res
.
count
.
count_teacher_num
?
res
.
count
.
count_teacher_num
:
'暂无'
;
this
.
countObj
=
res
.
count
?
res
.
count
:
''
;
this
.
classList
=
res
.
list
;
this
.
total
=
res
.
total
;
})
},
handleChange
(
val
)
{
// console.log(val)
// this.activeName = val.name;
...
...
@@ -472,5 +610,9 @@ export default {
<
style
scoped
lang=
"less"
>
.box{padding: 20px;background: white;text-indent: 10px;box-sizing: border-box;}
.el-form-item{display: inline-block;margin-right: 40px;}
.container{
display: flex;
.left{width: 60%;}
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment