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
de2b233b
Commit
de2b233b
authored
Dec 19, 2018
by
wangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色点击对象修改 打包
parent
b3c50376
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
13 additions
and
4 deletions
+13
-4
index.html
dev/index.html
+1
-1
29.a4a34cbb70cf4874a878.js
dev/static/js/29.a4a34cbb70cf4874a878.js
+1
-0
manifest.3bbbc5a447f7573c91fb.js
dev/static/js/manifest.3bbbc5a447f7573c91fb.js
+1
-0
index.html
dist/index.html
+1
-1
app.f2a0939bd2fb54f82c13c0957adde9e2.css
dist/static/css/app.f2a0939bd2fb54f82c13c0957adde9e2.css
+1
-0
33.308f5615b4d963bae2dd.js
dist/static/js/33.308f5615b4d963bae2dd.js
+1
-0
40.f5904846add0c48cbdab.js
dist/static/js/40.f5904846add0c48cbdab.js
+1
-0
41.128579d5ed4a1f90e656.js
dist/static/js/41.128579d5ed4a1f90e656.js
+1
-0
app.2eaf199d2fe983cb0268.js
dist/static/js/app.2eaf199d2fe983cb0268.js
+1
-0
manifest.5a9b757f7e957d7e1ab9.js
dist/static/js/manifest.5a9b757f7e957d7e1ab9.js
+1
-0
role.vue
src/components/system/role.vue
+3
-2
No files found.
dev/index.html
View file @
de2b233b
<!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://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css
><title>
唱唱启蒙-后台
</title></head><body><script
src=
https://unpkg.com/vue@2.5.17/dist/vue.js
></script><script
src=
https://unpkg.com/vuex@3.0.1/dist/vuex.min.js
></script><script
src=
https://unpkg.com/axios@0.18.0/dist/axios.min.js
></script><script
src=
https://unpkg.com/element-ui@2.4.9/lib/index.js
></script><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.
142a8f50e7a6fee414e
b.js
></script><script
type=
text/javascript
src=
/static/js/vendor.14d7484eb2c1e77c5000.js
></script><script
type=
text/javascript
src=
/static/js/app.7842ab650b12c9da6d04.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://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css
><title>
唱唱启蒙-后台
</title></head><body><script
src=
https://unpkg.com/vue@2.5.17/dist/vue.js
></script><script
src=
https://unpkg.com/vuex@3.0.1/dist/vuex.min.js
></script><script
src=
https://unpkg.com/axios@0.18.0/dist/axios.min.js
></script><script
src=
https://unpkg.com/element-ui@2.4.9/lib/index.js
></script><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.
3bbbc5a447f7573c91f
b.js
></script><script
type=
text/javascript
src=
/static/js/vendor.14d7484eb2c1e77c5000.js
></script><script
type=
text/javascript
src=
/static/js/app.7842ab650b12c9da6d04.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
el
.
onerror
=
function
(
a
,
b
,
c
){
console
.
log
(
'error:'
,
a
,
b
,
c
);
};
...
...
dev/static/js/29.a4a34cbb70cf4874a878.js
0 → 100644
View file @
de2b233b
webpackJsonp
([
29
],{
TkUD
:
function
(
e
,
t
,
n
){
var
a
=
n
(
"i3sb"
);
"string"
==
typeof
a
&&
(
a
=
[[
e
.
i
,
a
,
""
]]),
a
.
locals
&&
(
e
.
exports
=
a
.
locals
);
n
(
"rjj0"
)(
"70ad75b8"
,
a
,
!
1
,{})},
Vt1u
:
function
(
e
,
t
,
n
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
n
(
"CCn6"
),
o
=
{
components
:{
page
:
n
(
"kmJW"
).
a
},
data
:
function
(){
return
{
nowPage
:
1
,
total
:
0
,
limit
:
10
,
roleList
:[],
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
:{
rowClick
:
function
(
e
){
this
.
$router
.
push
({
name
:
"admin"
,
query
:{
roleId
:
e
.
id
}})},
getMenuList
:
function
(){
var
e
=
this
;
Object
(
a
.
_33
)().
then
(
function
(
t
){
t
&&
(
t
.
forEach
(
function
(
e
){
e
.
children
&&
e
.
children
.
forEach
(
function
(
e
){
e
.
readonly
=!
1
,
e
.
delete
=!
1
,
"订单列表"
===
e
.
name
&&
(
e
.
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
(
a
.
_45
)(
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
(
a
.
_33
)().
then
(
function
(
n
){
n
&&
(
n
.
forEach
(
function
(
e
){
e
.
children
&&
e
.
children
.
forEach
(
function
(
e
){
e
.
readonly
=!
1
,
e
.
delete
=!
1
,
"订单列表"
===
e
.
name
&&
(
e
.
refund
=!
1
)})}),
t
.
dialog
.
select
=
n
,
Object
(
a
.
_44
)(
e
.
id
).
then
(
function
(
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
(
t
){
t
.
children
&&
t
.
children
.
forEach
(
function
(
t
){
t
.
id
===
e
.
id
&&
(
t
.
readonly
=!!
e
.
readonly
,
t
.
delete
=!!
e
.
delete
,
"5-1"
===
e
.
cover
&&
(
t
.
refund
=!!
e
.
refund
))})})}),
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
(
a
.
H
)(
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
n
=
[];
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
),
t
&&
n
.
push
(
t
)});
var
o
=
e
.
dialog
;
if
(
o
.
form
.
id
){
var
i
=
{
name
:
o
.
form
.
name
,
menu_ids
:
JSON
.
stringify
(
n
)};
e
.
$confirm
(
"此操作将修改该角色?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
a
.
_83
)(
o
.
form
.
id
,
i
).
then
(
function
(){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
o
.
show
=!
1
,
e
.
getList
()})})}
else
{
var
l
=
{
name
:
o
.
form
.
name
,
menu_ids
:
JSON
.
stringify
(
n
)};
e
.
$confirm
(
"此操作将添加新角色?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
a
.
_71
)(
l
).
then
(
function
(){
e
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
o
.
show
=!
1
,
e
.
getList
()})})}}})}}},
i
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"role"
},[
n
(
"div"
,{
staticClass
:
"head clear-both"
},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
n
(
"el-button"
,{
staticStyle
:{
float
:
"right"
},
attrs
:{
plain
:
""
,
type
:
"success"
},
on
:{
click
:
e
.
add
}},[
e
.
_v
(
"新增角色"
)])],
1
),
e
.
_v
(
" "
),
n
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
roleList
}},[
n
(
"el-table-column"
,{
attrs
:{
prop
:
"id"
,
label
:
"角色ID"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"角色名称"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
n
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
n
){
e
.
rowClick
(
t
.
row
)}}},[
e
.
_v
(
" "
+
e
.
_s
(
t
.
row
.
name
))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"created_at"
,
label
:
"创建时间"
,
sortable
:
""
}}),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
n
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
n
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
n
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"
\n
编辑
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
&&!
e
.
$store
.
state
.
readonly
?
n
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"danger"
,
plain
:
""
},
on
:{
click
:
function
(
n
){
e
.
del
(
t
.
row
)}}},[
e
.
_v
(
"
\n
删除
\n
"
)]):
e
.
_e
()]}}])})],
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
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialog
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
e
.
dialog
.
show
,
width
:
"40%"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
dialog
,
"show"
,
t
)}}},[
n
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
rules
:
e
.
dialog
.
rules
,
model
:
e
.
dialog
.
form
,
"label-width"
:
"100px"
}},[
n
(
"el-form-item"
,{
attrs
:{
label
:
"角色名称"
,
prop
:
"name"
}},[
n
(
"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
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"菜单选项"
}},[
n
(
"div"
,{
staticClass
:
"custom-tree-container"
},[
n
(
"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
a
=
t
.
node
,
o
=
t
.
data
;
return
n
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
a
.
label
))]),
e
.
_v
(
" "
),
0
!==
o
.
pid
?
n
(
"span"
,[
"5-1"
===
o
.
cover
?
n
(
"el-checkbox"
,{
model
:{
value
:
o
.
refund
,
callback
:
function
(
t
){
e
.
$set
(
o
,
"refund"
,
t
)},
expression
:
"data.refund"
}},[
e
.
_v
(
"退款"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
n
(
"el-checkbox"
,{
model
:{
value
:
o
.
readonly
,
callback
:
function
(
t
){
e
.
$set
(
o
,
"readonly"
,
t
)},
expression
:
"data.readonly"
}},[
e
.
_v
(
"只读"
)]),
e
.
_v
(
" "
),
n
(
"el-checkbox"
,{
model
:{
value
:
o
.
delete
,
callback
:
function
(
t
){
e
.
$set
(
o
,
"delete"
,
t
)},
expression
:
"data.delete"
}},[
e
.
_v
(
"删除"
)])],
1
):
e
.
_e
()])}}])})],
1
)])],
1
),
e
.
_v
(
" "
),
n
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
n
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialog
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)};
i
.
_withStripped
=!
0
;
var
l
=
{
render
:
i
,
staticRenderFns
:[]},
s
=
l
;
var
r
=!
1
;
var
d
=
n
(
"VU/8"
)(
o
,
s
,
!
1
,
function
(
e
){
r
||
n
(
"TkUD"
)},
"data-v-baf7767a"
,
null
);
d
.
options
.
__file
=
"src
\\
components
\\
system
\\
role.vue"
;
t
.
default
=
d
.
exports
},
i3sb
:
function
(
e
,
t
,
n
){(
e
.
exports
=
n
(
"FZ+f"
)(
!
0
)).
push
([
e
.
i
,
"
\n
.custom-tree-node[data-v-baf7767a] {
\n
-webkit-box-flex: 1;
\n
-ms-flex: 1;
\n
flex: 1;
\n
display: -webkit-box;
\n
display: -ms-flexbox;
\n
display: flex;
\n
-webkit-box-align: center;
\n
-ms-flex-align: center;
\n
align-items: center;
\n
-webkit-box-pack: justify;
\n
-ms-flex-pack: justify;
\n
justify-content: space-between;
\n
font-size: 14px;
\n
padding-right: 8px;
\n
}
\n
.role[data-v-baf7767a] {
\n
width: 100%;
\n
padding: 20px 0;
\n
}
\n
.role .head[data-v-baf7767a] {
\n
margin-bottom: 10px;
\n
}
\n
.role .page-div[data-v-baf7767a] {
\n
text-align: center;
\n
padding-top: 20px;
\n
}
\n
.clear-both[data-v-baf7767a]:after {
\n
content: '';
\n
display: block;
\n
clear: both;
\n
}
\n
"
,
""
,{
version
:
3
,
sources
:[
"D:/myproject/changchang-admin-new/src/components/system/role.vue"
],
names
:[],
mappings
:
";AACA;EACE,oBAAoB;MAChB,YAAY;UACR,QAAQ;EAChB,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;EAC5B,0BAA0B;MACtB,uBAAuB;UACnB,+BAA+B;EACvC,gBAAgB;EAChB,mBAAmB;CACpB;AACD;EACE,YAAY;EACZ,gBAAgB;CACjB;AACD;EACE,oBAAoB;CACrB;AACD;EACE,mBAAmB;EACnB,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb"
,
file
:
"role.vue"
,
sourcesContent
:[
"
\n
.custom-tree-node[data-v-baf7767a] {
\n
-webkit-box-flex: 1;
\n
-ms-flex: 1;
\n
flex: 1;
\n
display: -webkit-box;
\n
display: -ms-flexbox;
\n
display: flex;
\n
-webkit-box-align: center;
\n
-ms-flex-align: center;
\n
align-items: center;
\n
-webkit-box-pack: justify;
\n
-ms-flex-pack: justify;
\n
justify-content: space-between;
\n
font-size: 14px;
\n
padding-right: 8px;
\n
}
\n
.role[data-v-baf7767a] {
\n
width: 100%;
\n
padding: 20px 0;
\n
}
\n
.role .head[data-v-baf7767a] {
\n
margin-bottom: 10px;
\n
}
\n
.role .page-div[data-v-baf7767a] {
\n
text-align: center;
\n
padding-top: 20px;
\n
}
\n
.clear-both[data-v-baf7767a]:after {
\n
content: '';
\n
display: block;
\n
clear: both;
\n
}
\n
"
],
sourceRoot
:
""
}])}});
\ No newline at end of file
dev/static/js/manifest.3bbbc5a447f7573c91fb.js
0 → 100644
View file @
de2b233b
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
a
,
r
,
t
){
for
(
var
d
,
b
,
o
,
i
=
0
,
u
=
[];
i
<
a
.
length
;
i
++
)
b
=
a
[
i
],
f
[
b
]
&&
u
.
push
(
f
[
b
][
0
]),
f
[
b
]
=
0
;
for
(
d
in
r
)
Object
.
prototype
.
hasOwnProperty
.
call
(
r
,
d
)
&&
(
e
[
d
]
=
r
[
d
]);
for
(
c
&&
c
(
a
,
r
,
t
);
u
.
length
;)
u
.
shift
()();
if
(
t
)
for
(
i
=
0
;
i
<
t
.
length
;
i
++
)
o
=
n
(
n
.
s
=
t
[
i
]);
return
o
};
var
a
=
{},
f
=
{
44
:
0
};
function
n
(
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
,
n
),
f
.
l
=!
0
,
f
.
exports
}
n
.
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
,
n
){
c
=
f
[
e
]
=
[
a
,
n
]});
c
[
2
]
=
a
;
var
r
=
document
.
getElementsByTagName
(
"head"
)[
0
],
t
=
document
.
createElement
(
"script"
);
t
.
type
=
"text/javascript"
,
t
.
charset
=
"utf-8"
,
t
.
async
=!
0
,
t
.
timeout
=
12
e4
,
n
.
nc
&&
t
.
setAttribute
(
"nonce"
,
n
.
nc
),
t
.
src
=
n
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"2677288212fc10a4c92f"
,
1
:
"47f6a60b94518407d555"
,
2
:
"ce0a2d39b56508a873fa"
,
3
:
"0d3676ee3b7e09a63adc"
,
4
:
"06f5728d9261b08b62cb"
,
5
:
"955844a0631718a48626"
,
6
:
"a4d1b15f486e5805420f"
,
7
:
"480fea53c12326560a63"
,
8
:
"6d8a043676b9d3c51612"
,
9
:
"bf591d9d42d85c21cc43"
,
10
:
"612ce5703f1963bb6a84"
,
11
:
"b0afee939a3427b347fc"
,
12
:
"d8fc43de6b625257c409"
,
13
:
"944f7fb6b948b808bd53"
,
14
:
"4237db5ab2155f78dceb"
,
15
:
"eef4f34dd9fb106a0438"
,
16
:
"6c6048bf60de541dd279"
,
17
:
"b9f640f31ff129459aac"
,
18
:
"c45a14734d0917bde375"
,
19
:
"bdede050f1f9de4ed9c4"
,
20
:
"529f643a1c97c324a1de"
,
21
:
"802896c4e8621a8dc47a"
,
22
:
"4f6ca8c618811667a8b5"
,
23
:
"3c6861811e2df35ce8ec"
,
24
:
"97f592a7e6dd21f53a8d"
,
25
:
"09b190ab0312ebab9acc"
,
26
:
"7462cb004f51f30c275b"
,
27
:
"138e1c8cc2d7bcf7079f"
,
28
:
"34279290938a28c2c622"
,
29
:
"a4a34cbb70cf4874a878"
,
30
:
"ced6c577da47344a0905"
,
31
:
"5ce1e209a22fbbc62556"
,
32
:
"ec52a500a5eda2a3e4db"
,
33
:
"17c9feb6f15c63447b0c"
,
34
:
"18e03ad72e5bae211699"
,
35
:
"9fa70099b272fee5b92d"
,
36
:
"50faeb0c5185ad4c9967"
,
37
:
"3b9dd65915ed77b832c7"
,
38
:
"2c5e69d43ea30c4bac3d"
,
39
:
"a98653eb6a30f5cb3d9d"
,
40
:
"5a39f8b905bb16ee7a8d"
,
41
:
"ec9d8cab0eb8449a118b"
}[
e
]
+
".js"
;
var
d
=
setTimeout
(
b
,
12
e4
);
function
b
(){
t
.
onerror
=
t
.
onload
=
null
,
clearTimeout
(
d
);
var
c
=
f
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
t
.
onerror
=
t
.
onload
=
b
,
r
.
appendChild
(
t
),
a
},
n
.
m
=
e
,
n
.
c
=
a
,
n
.
d
=
function
(
e
,
c
,
a
){
n
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
a
})},
n
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
n
.
d
(
c
,
"a"
,
c
),
c
},
n
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
n
.
p
=
"/"
,
n
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
dist/index.html
View file @
de2b233b
<!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://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css
><title>
唱唱启蒙-后台
</title><link
href=
/static/css/app.
24a3b14fcc8c29394a54235917715892.css
rel=
stylesheet
></head><body><script
src=
https://unpkg.com/vue@2.5.17/dist/vue.js
></script><script
src=
https://unpkg.com/vuex@3.0.1/dist/vuex.min.js
></script><script
src=
https://unpkg.com/axios@0.18.0/dist/axios.min.js
></script><script
src=
https://unpkg.com/element-ui@2.4.9/lib/index.js
></script><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.686222175bec54f96311.js
></script><script
type=
text/javascript
src=
/static/js/vendor.b3fa793c64cacc9d7887.js
></script><script
type=
text/javascript
src=
/static/js/app.048d52f0e9d719b46545
.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://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css
><title>
唱唱启蒙-后台
</title><link
href=
/static/css/app.
f2a0939bd2fb54f82c13c0957adde9e2.css
rel=
stylesheet
></head><body><script
src=
https://unpkg.com/vue@2.5.17/dist/vue.js
></script><script
src=
https://unpkg.com/vuex@3.0.1/dist/vuex.min.js
></script><script
src=
https://unpkg.com/axios@0.18.0/dist/axios.min.js
></script><script
src=
https://unpkg.com/element-ui@2.4.9/lib/index.js
></script><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.5a9b757f7e957d7e1ab9.js
></script><script
type=
text/javascript
src=
/static/js/vendor.b3fa793c64cacc9d7887.js
></script><script
type=
text/javascript
src=
/static/js/app.2eaf199d2fe983cb0268
.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.f2a0939bd2fb54f82c13c0957adde9e2.css
0 → 100644
View file @
de2b233b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/33.308f5615b4d963bae2dd.js
0 → 100644
View file @
de2b233b
webpackJsonp
([
33
],{
rNd7
:
function
(
e
,
t
){},
"s7i+"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"CCn6"
),
s
=
{
name
:
"index"
,
data
:
function
(){
return
{
goodsList
:[],
headList
:[],
tableData
:[],
searchFrom
:{
priceList
:[],
dateValue
:[]}}},
mounted
:
function
(){
this
.
defaultTime
(),
this
.
initPage
()},
filters
:{
toFixed2
:
function
(
e
){
if
(
"number"
==
typeof
e
){
var
t
=
e
.
toString
().
split
(
"."
);
return
t
.
length
>
1
&&
t
[
1
].
length
>
2
?
Number
(
e
).
toFixed
(
2
):
e
}
return
e
}},
methods
:{
initPage
:
function
(){
var
e
=
this
;
Object
(
r
.
_27
)({
limit
:
99999
}).
then
(
function
(
t
){
t
.
list
.
forEach
(
function
(
t
){
e
.
searchFrom
.
priceList
.
push
(
t
.
id
)}),
e
.
goodsList
=
t
.
list
,
e
.
searchPage
()})},
searchPage
:
function
(){
var
e
=
this
;
if
(
this
.
searchFrom
.
dateValue
.
length
<
2
)
this
.
$message
.
error
(
"请先选择起止日期"
);
else
{
var
t
=
{
start_at
:
this
.
searchFrom
.
dateValue
[
0
],
end_at
:
this
.
searchFrom
.
dateValue
[
1
],
goods_ids
:
this
.
searchFrom
.
priceList
.
toString
()};
Object
(
r
.
_64
)(
t
).
then
(
function
(
t
){
if
(
t
.
length
>
0
){
var
a
=
t
[
0
];
for
(
var
r
in
e
.
tableData
=
t
,
e
.
headList
=
[],
a
)
"cur_date"
===
r
?
e
.
headList
.
push
(
"时间"
):
"register_num"
===
r
?
e
.
headList
.
push
(
"注册数"
):
"total_money"
===
r
?
e
.
headList
.
push
(
"总金额"
):
e
.
headList
.
push
(
r
)}})}},
defaultTime
:
function
(){
var
e
=
new
Date
,
t
=
e
.
getFullYear
(),
a
=
e
.
getMonth
()
+
1
;
a
<
10
&&
(
a
=
"0"
+
a
);
var
r
=
e
.
getDate
();
r
<
10
&&
(
r
=
"0"
+
r
);
var
s
=
t
+
"-"
+
a
+
"-01"
,
n
=
t
+
"-"
+
a
+
"-"
+
r
;
this
.
searchFrom
.
dateValue
=
[
s
,
n
]}}},
n
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"orderCount"
},[
a
(
"el-form"
,{
ref
:
"searchFrom"
,
attrs
:{
inline
:
""
,
model
:
e
.
searchFrom
,
"label-width"
:
"100px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"商品"
}},[
a
(
"el-select"
,{
staticStyle
:{
width
:
"600px"
},
attrs
:{
"collapse-tags"
:
""
,
multiple
:
""
,
filterable
:
""
,
placeholder
:
"请选择"
},
on
:{
change
:
e
.
searchPage
},
model
:{
value
:
e
.
searchFrom
.
priceList
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"priceList"
,
t
)},
expression
:
"searchFrom.priceList"
}},
e
.
_l
(
e
.
goodsList
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
id
,
attrs
:{
label
:
e
.
name
,
value
:
e
.
id
}})}))],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
"起止日期"
}},[
a
(
"el-date-picker"
,{
attrs
:{
"unlink-panels"
:
""
,
type
:
"daterange"
,
"value-format"
:
"yyyy-MM-dd"
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
on
:{
change
:
e
.
searchPage
},
model
:{
value
:
e
.
searchFrom
.
dateValue
,
callback
:
function
(
t
){
e
.
$set
(
e
.
searchFrom
,
"dateValue"
,
t
)},
expression
:
"searchFrom.dateValue"
}})],
1
),
e
.
_v
(
" "
),
a
(
"el-form-item"
,{
attrs
:{
label
:
""
}},[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
searchPage
()}}},[
e
.
_v
(
"
\n
搜索
\n
"
)])],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
tableData
}},
e
.
_l
(
e
.
headList
,
function
(
t
){
return
a
(
"el-table-column"
,{
key
:
t
,
attrs
:{
label
:
t
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
r
){
return
[
"时间"
===
t
?
a
(
"span"
,[
e
.
_v
(
"
\n
"
+
e
.
_s
(
r
.
row
.
cur_date
)
+
"
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"注册数"
===
t
?
a
(
"span"
,[
e
.
_v
(
"
\n
"
+
e
.
_s
(
r
.
row
.
register_num
)
+
"
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"总金额"
===
t
?
a
(
"span"
,[
e
.
_v
(
"
\n
"
+
e
.
_s
(
r
.
row
.
total_money
)
+
"
\n
"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
"时间"
!==
t
&&
"注册数"
!==
t
&&
"总金额"
!==
t
?
a
(
"span"
,[
e
.
_v
(
"
\n
"
+
e
.
_s
(
e
.
_f
(
"toFixed2"
)(
r
.
row
[
t
]))
+
"
\n
"
)]):
e
.
_e
()]}}])})}))],
1
)},
staticRenderFns
:[]};
var
i
=
a
(
"VU/8"
)(
s
,
n
,
!
1
,
function
(
e
){
a
(
"rNd7"
)},
"data-v-47bc2fac"
,
null
);
t
.
default
=
i
.
exports
}});
\ No newline at end of file
dist/static/js/40.f5904846add0c48cbdab.js
0 → 100644
View file @
de2b233b
webpackJsonp
([
40
],{
E1TR
:
function
(
t
,
e
){},
NrkQ
:
function
(
t
,
e
,
o
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
a
=
o
(
"kmJW"
),
s
=
o
(
"sf/l"
),
r
=
o
(
"CCn6"
),
i
=
{
name
:
"index"
,
components
:{
page
:
a
.
a
},
data
:
function
(){
return
{
total
:
0
,
nowPage
:
1
,
limit
:
10
,
searchFrom
:{
source
:
""
},
tableData
:[],
commentForm
:{},
showCommentDialog
:
!
1
}},
created
:
function
(){
this
.
initPage
()},
methods
:{
initPage
:
function
(){
var
t
=
this
,
e
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
this
.
searchFrom
.
time
&&
(
e
.
time
=
this
.
searchFrom
.
time
),
this
.
searchFrom
.
source
&&
(
e
.
source
=
this
.
searchFrom
.
source
),
this
.
searchFrom
.
time
&&
this
.
searchFrom
.
time
.
length
>
0
&&
(
e
.
date_start
=
s
.
a
.
dateFmt
(
this
.
searchFrom
.
time
[
0
],
"yyyy-MM-dd hh:mm:ss"
),
e
.
date_end
=
s
.
a
.
dateFmt
(
this
.
searchFrom
.
time
[
1
],
"yyyy-MM-dd hh:mm:ss"
)),
Object
(
r
.
_7
)(
e
).
then
(
function
(
e
){
t
.
tableData
=
e
.
list
,
t
.
total
=
e
.
total
})},
onPageChange
:
function
(
t
){
this
.
nowPage
=
t
,
this
.
initPage
()},
onSizeChange
:
function
(
t
){
this
.
nowPage
=
1
,
this
.
limit
=
t
,
this
.
initPage
()},
doExport
:
function
(){
var
t
=
"?type=export"
;
this
.
searchFrom
.
source
&&
(
t
=
t
+
"&source="
+
this
.
searchFrom
.
source
),
this
.
searchFrom
.
time
&&
this
.
searchFrom
.
time
.
length
>
0
&&
(
t
=
(
t
=
t
+
"&date_start="
+
s
.
a
.
dateFmt
(
this
.
searchFrom
.
time
[
0
],
"yyyy-MM-dd hh:mm:ss"
))
+
"&date_end="
+
s
.
a
.
dateFmt
(
this
.
searchFrom
.
time
[
1
],
"yyyy-MM-dd hh:mm:ss"
)),
window
.
open
(
"/api/public/ads/export/all"
+
t
)},
saveComment
:
function
(){
var
t
=
this
,
e
=
this
.
commentForm
.
id
,
o
=
this
.
commentForm
.
desc
?
this
.
commentForm
.
desc
:
""
;
o
&&
this
.
$confirm
(
"确认编辑备注"
,
"提示"
,{
confirmButtonText
:
"继续"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
r
.
_76
)(
e
,{
desc
:
o
}).
then
(
function
(
e
){
t
.
$message
({
type
:
"success"
,
message
:
"编辑备注成功"
}),
t
.
showCommentDialog
=!
1
,
t
.
initPage
()})})},
editComment
:
function
(
t
,
e
){
this
.
showCommentDialog
=!
0
,
this
.
commentForm
=
{
id
:
t
,
desc
:
e
}}}},
n
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
o
=
t
.
_self
.
_c
||
e
;
return
o
(
"div"
,{
staticClass
:
"index"
},[
o
(
"el-form"
,{
ref
:
"searchFrom"
,
attrs
:{
model
:
t
.
searchFrom
,
"label-width"
:
"80px"
}},[
o
(
"el-row"
,[
o
(
"el-col"
,{
attrs
:{
lg
:
10
,
sm
:
24
,
md
:
24
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"购买时间"
}},[
o
(
"el-date-picker"
,{
attrs
:{
type
:
"datetimerange"
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
,
"default-time"
:[
"00:00:00"
,
"23:59:59"
]},
model
:{
value
:
t
.
searchFrom
.
time
,
callback
:
function
(
e
){
t
.
$set
(
t
.
searchFrom
,
"time"
,
e
)},
expression
:
"searchFrom.time"
}})],
1
)],
1
),
t
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
lg
:
4
,
sm
:
24
,
md
:
12
}},[
o
(
"el-form-item"
,{
attrs
:{
label
:
"来源"
}},[
o
(
"el-input"
,{
attrs
:{
placeholder
:
"名称"
,
size
:
"small"
},
model
:{
value
:
t
.
searchFrom
.
source
,
callback
:
function
(
e
){
t
.
$set
(
t
.
searchFrom
,
"source"
,
e
)},
expression
:
"searchFrom.source"
}})],
1
)],
1
),
t
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
lg
:
4
,
sm
:
24
,
md
:
12
}},[
o
(
"el-form-item"
,[
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
,
size
:
"small"
},
on
:{
click
:
t
.
initPage
}},[
t
.
_v
(
"
\n
搜索
\n
"
)])],
1
)],
1
),
t
.
_v
(
" "
),
o
(
"el-col"
,{
attrs
:{
lg
:
4
,
sm
:
24
,
md
:
12
}},[
o
(
"el-form-item"
,[
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
plain
:
""
,
size
:
"small"
},
on
:{
click
:
t
.
doExport
}},[
t
.
_v
(
"
\n
导出
\n
"
)])],
1
)],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
o
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
tableData
}},[
o
(
"el-table-column"
,{
attrs
:{
prop
:
"name"
,
label
:
"宝贝名称"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"telephone"
,
label
:
"手机号"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"desc"
,
label
:
"备注"
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"create_at"
,
label
:
"添加时间"
,
sortable
:
""
}}),
t
.
_v
(
" "
),
o
(
"el-table-column"
,{
attrs
:{
prop
:
"source"
,
label
:
"来源"
}}),
t
.
_v
(
" "
),
t
.
$store
.
state
.
readonly
?
t
.
_e
():
o
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
"min-width"
:
"150"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
o
(
"el-button"
,{
attrs
:{
type
:
"text"
,
plain
:
""
,
size
:
"mini"
},
on
:{
click
:
function
(
o
){
t
.
editComment
(
e
.
row
.
id
,
e
.
row
.
desc
)}}},[
t
.
_v
(
"
\n
编辑备注
\n
"
)])]}}])})],
1
),
t
.
_v
(
" "
),
o
(
"page"
,{
attrs
:{
total
:
t
.
total
,
limit
:
t
.
limit
},
on
:{
pageChange
:
t
.
onPageChange
,
sizeChange
:
t
.
onSizeChange
}}),
t
.
_v
(
" "
),
o
(
"el-dialog"
,{
attrs
:{
title
:
"编辑备注"
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
t
.
showCommentDialog
,
"close-on-click-modal"
:
!
1
,
"close-on-press-escape"
:
!
1
,
"show-close"
:
!
1
,
width
:
"600px"
},
on
:{
"update:visible"
:
function
(
e
){
t
.
showCommentDialog
=
e
}}},[
o
(
"div"
,[
o
(
"el-form"
,{
ref
:
"commentFrom"
,
attrs
:{
model
:
t
.
commentForm
}},[
o
(
"el-form-item"
,{
attrs
:{
prop
:
"desc"
}},[
o
(
"el-input"
,{
attrs
:{
type
:
"textarea"
},
model
:{
value
:
t
.
commentForm
.
desc
,
callback
:
function
(
e
){
t
.
$set
(
t
.
commentForm
,
"desc"
,
e
)},
expression
:
"commentForm.desc"
}})],
1
)],
1
)],
1
),
t
.
_v
(
" "
),
o
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
o
(
"el-button"
,{
on
:{
click
:
function
(
e
){
t
.
showCommentDialog
=!
1
,
t
.
commentForm
=
{}}}},[
t
.
_v
(
"取 消"
)]),
t
.
_v
(
" "
),
o
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
t
.
saveComment
}},[
t
.
_v
(
"确 定"
)])],
1
)])],
1
)},
staticRenderFns
:[]};
var
m
=
o
(
"VU/8"
)(
i
,
n
,
!
1
,
function
(
t
){
o
(
"E1TR"
)},
"data-v-08a20d96"
,
null
);
e
.
default
=
m
.
exports
}});
\ No newline at end of file
dist/static/js/41.128579d5ed4a1f90e656.js
0 → 100644
View file @
de2b233b
webpackJsonp
([
41
],{
Vt1u
:
function
(
e
,
t
,
n
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
o
=
n
(
"CCn6"
),
i
=
{
components
:{
page
:
n
(
"kmJW"
).
a
},
data
:
function
(){
return
{
nowPage
:
1
,
total
:
0
,
limit
:
10
,
roleList
:[],
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
:{
rowClick
:
function
(
e
){
this
.
$router
.
push
({
name
:
"admin"
,
query
:{
roleId
:
e
.
id
}})},
getMenuList
:
function
(){
var
e
=
this
;
Object
(
o
.
_33
)().
then
(
function
(
t
){
t
&&
(
t
.
forEach
(
function
(
e
){
e
.
children
&&
e
.
children
.
forEach
(
function
(
e
){
e
.
readonly
=!
1
,
e
.
delete
=!
1
,
"订单列表"
===
e
.
name
&&
(
e
.
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
(
o
.
_45
)(
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
(
o
.
_33
)().
then
(
function
(
n
){
n
&&
(
n
.
forEach
(
function
(
e
){
e
.
children
&&
e
.
children
.
forEach
(
function
(
e
){
e
.
readonly
=!
1
,
e
.
delete
=!
1
,
"订单列表"
===
e
.
name
&&
(
e
.
refund
=!
1
)})}),
t
.
dialog
.
select
=
n
,
Object
(
o
.
_44
)(
e
.
id
).
then
(
function
(
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
(
t
){
t
.
children
&&
t
.
children
.
forEach
(
function
(
t
){
t
.
id
===
e
.
id
&&
(
t
.
readonly
=!!
e
.
readonly
,
t
.
delete
=!!
e
.
delete
,
"5-1"
===
e
.
cover
&&
(
t
.
refund
=!!
e
.
refund
))})})}),
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
(
o
.
H
)(
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
n
=
[];
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
),
t
&&
n
.
push
(
t
)});
var
i
=
e
.
dialog
;
if
(
i
.
form
.
id
){
var
a
=
{
name
:
i
.
form
.
name
,
menu_ids
:
JSON
.
stringify
(
n
)};
e
.
$confirm
(
"此操作将修改该角色?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
o
.
_83
)(
i
.
form
.
id
,
a
).
then
(
function
(){
e
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
}),
i
.
show
=!
1
,
e
.
getList
()})})}
else
{
var
l
=
{
name
:
i
.
form
.
name
,
menu_ids
:
JSON
.
stringify
(
n
)};
e
.
$confirm
(
"此操作将添加新角色?"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
Object
(
o
.
_71
)(
l
).
then
(
function
(){
e
.
$message
({
type
:
"success"
,
message
:
"添加成功!"
}),
i
.
show
=!
1
,
e
.
getList
()})})}}})}}},
a
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"div"
,{
staticClass
:
"role"
},[
n
(
"div"
,{
staticClass
:
"head clear-both"
},[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
n
(
"el-button"
,{
staticStyle
:{
float
:
"right"
},
attrs
:{
plain
:
""
,
type
:
"success"
},
on
:{
click
:
e
.
add
}},[
e
.
_v
(
"新增角色"
)])],
1
),
e
.
_v
(
" "
),
n
(
"el-table"
,{
staticStyle
:{
width
:
"100%"
},
attrs
:{
data
:
e
.
roleList
}},[
n
(
"el-table-column"
,{
attrs
:{
prop
:
"id"
,
label
:
"角色ID"
}}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"角色名称"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
n
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
n
){
e
.
rowClick
(
t
.
row
)}}},[
e
.
_v
(
" "
+
e
.
_s
(
t
.
row
.
name
))])]}}])}),
e
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
prop
:
"created_at"
,
label
:
"创建时间"
,
sortable
:
""
}}),
e
.
_v
(
" "
),
e
.
$store
.
state
.
readonly
?
e
.
_e
():
n
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
$store
.
state
.
readonly
?
e
.
_e
():
n
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
plain
:
""
,
type
:
"primary"
},
on
:{
click
:
function
(
n
){
e
.
edit
(
t
.
row
)}}},[
e
.
_v
(
"
\n
编辑
\n
"
)]),
e
.
_v
(
" "
),
e
.
$store
.
state
.
deletePermission
&&!
e
.
$store
.
state
.
readonly
?
n
(
"el-button"
,{
attrs
:{
size
:
"mini"
,
type
:
"danger"
,
plain
:
""
},
on
:{
click
:
function
(
n
){
e
.
del
(
t
.
row
)}}},[
e
.
_v
(
"
\n
删除
\n
"
)]):
e
.
_e
()]}}])})],
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
(
"el-dialog"
,{
attrs
:{
title
:
e
.
dialog
.
title
,
center
:
""
,
"append-to-body"
:
""
,
visible
:
e
.
dialog
.
show
,
width
:
"40%"
},
on
:{
"update:visible"
:
function
(
t
){
e
.
$set
(
e
.
dialog
,
"show"
,
t
)}}},[
n
(
"el-form"
,{
ref
:
"form"
,
attrs
:{
rules
:
e
.
dialog
.
rules
,
model
:
e
.
dialog
.
form
,
"label-width"
:
"100px"
}},[
n
(
"el-form-item"
,{
attrs
:{
label
:
"角色名称"
,
prop
:
"name"
}},[
n
(
"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
(
" "
),
n
(
"el-form-item"
,{
attrs
:{
label
:
"菜单选项"
}},[
n
(
"div"
,{
staticClass
:
"custom-tree-container"
},[
n
(
"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
o
=
t
.
node
,
i
=
t
.
data
;
return
n
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
n
(
"span"
,[
e
.
_v
(
e
.
_s
(
o
.
label
))]),
e
.
_v
(
" "
),
0
!==
i
.
pid
?
n
(
"span"
,[
"5-1"
===
i
.
cover
?
n
(
"el-checkbox"
,{
model
:{
value
:
i
.
refund
,
callback
:
function
(
t
){
e
.
$set
(
i
,
"refund"
,
t
)},
expression
:
"data.refund"
}},[
e
.
_v
(
"退款"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
n
(
"el-checkbox"
,{
model
:{
value
:
i
.
readonly
,
callback
:
function
(
t
){
e
.
$set
(
i
,
"readonly"
,
t
)},
expression
:
"data.readonly"
}},[
e
.
_v
(
"只读"
)]),
e
.
_v
(
" "
),
n
(
"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
(
" "
),
n
(
"span"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
n
(
"el-button"
,{
on
:{
click
:
function
(
t
){
e
.
dialog
.
show
=!
1
}}},[
e
.
_v
(
"取 消"
)]),
e
.
_v
(
" "
),
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
sub
}},[
e
.
_v
(
"确 定"
)])],
1
)],
1
)],
1
)},
staticRenderFns
:[]};
var
l
=
n
(
"VU/8"
)(
i
,
a
,
!
1
,
function
(
e
){
n
(
"yjLp"
)},
"data-v-010cce00"
,
null
);
t
.
default
=
l
.
exports
},
yjLp
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/app.2eaf199d2fe983cb0268.js
0 → 100644
View file @
de2b233b
This diff is collapsed.
Click to expand it.
dist/static/js/manifest.5a9b757f7e957d7e1ab9.js
0 → 100644
View file @
de2b233b
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
n
,
r
){
for
(
var
t
,
o
,
b
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
o
=
c
[
i
],
f
[
o
]
&&
u
.
push
(
f
[
o
][
0
]),
f
[
o
]
=
0
;
for
(
t
in
n
)
Object
.
prototype
.
hasOwnProperty
.
call
(
n
,
t
)
&&
(
e
[
t
]
=
n
[
t
]);
for
(
a
&&
a
(
c
,
n
,
r
);
u
.
length
;)
u
.
shift
()();
if
(
r
)
for
(
i
=
0
;
i
<
r
.
length
;
i
++
)
b
=
d
(
d
.
s
=
r
[
i
]);
return
b
};
var
c
=
{},
f
=
{
44
:
0
};
function
d
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
d
){
a
=
f
[
e
]
=
[
c
,
d
]});
a
[
2
]
=
c
;
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
:
"fd8e3179504a4b1b1f01"
,
1
:
"8ba6d0c64414149fbfef"
,
2
:
"a2a4b16ed51e66d071e0"
,
3
:
"87af97227c1118e7d35b"
,
4
:
"0dea36589dce74d7a092"
,
5
:
"4665417f1fe5dd2c3785"
,
6
:
"65d1d0b492c8692df635"
,
7
:
"7c284b2877c18ec216da"
,
8
:
"aef265e2c714583a72a9"
,
9
:
"3fc15dede1512e3d5a2e"
,
10
:
"536262395d2d2544b41a"
,
11
:
"d79108ab37a4ea07bc1f"
,
12
:
"70a293faeaef629d8522"
,
13
:
"4043e1cbbbf80334cd56"
,
14
:
"f93f1a1fa42ec8041476"
,
15
:
"a87f35cff653cb2e1e4e"
,
16
:
"2ed1cba1601382a99155"
,
17
:
"b12c252b764f57c88d57"
,
18
:
"e0d8a1b1c36c71015ceb"
,
19
:
"07bb0f71b614c67ee99e"
,
20
:
"9f745d5684b5c0143cf4"
,
21
:
"49b9d3198ebf3dfdd075"
,
22
:
"94dc7c3a31deeee34425"
,
23
:
"48956929512a2975a910"
,
24
:
"9c62ec77180d3cae5032"
,
25
:
"240c69bd5fcf2398c5bf"
,
26
:
"557fe85170d2a406fdb3"
,
27
:
"74443b1df7f873447b06"
,
28
:
"affcbf2783e0eb289695"
,
29
:
"56ad0e9e0420fb91fa80"
,
30
:
"1cf13e08b26e88cf9743"
,
31
:
"6d19a0a30d8d85a6fc32"
,
32
:
"a73267dfc28802f62bd7"
,
33
:
"308f5615b4d963bae2dd"
,
34
:
"6a54ab98bdbaa4d290ea"
,
35
:
"15ed2fc9ace8c2c902ff"
,
36
:
"1eff5ff47d1b03428558"
,
37
:
"7302e79b5e36043ea314"
,
38
:
"92c7f24ca16f137b9650"
,
39
:
"b5c862a538a361f13c7b"
,
40
:
"f5904846add0c48cbdab"
,
41
:
"128579d5ed4a1f90e656"
}[
e
]
+
".js"
;
var
t
=
setTimeout
(
o
,
12
e4
);
function
o
(){
r
.
onerror
=
r
.
onload
=
null
,
clearTimeout
(
t
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
r
.
onerror
=
r
.
onload
=
o
,
n
.
appendChild
(
r
),
c
},
d
.
m
=
e
,
d
.
c
=
c
,
d
.
d
=
function
(
e
,
a
,
c
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
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
src/components/system/role.vue
View file @
de2b233b
...
...
@@ -5,15 +5,16 @@
</div>
<el-table
:data=
"roleList"
@
row-click=
"rowClick"
style=
"width: 100%"
>
<el-table-column
prop=
"id"
label=
"角色ID"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"角色名称"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"rowClick(scope.row)"
>
{{
scope
.
row
.
name
}}
</el-button>
</
template
>
</el-table-column>
<el-table-column
prop=
"created_at"
...
...
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