Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
office-web
Overview
Overview
Details
Activity
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
office
office-web
Commits
9bdde6c7
Commit
9bdde6c7
authored
Jun 03, 2019
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 设置门店权限
parent
b09b990a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
index.html
dist/index.html
+2
-2
app.928e53957ca90fba8f928af9c3a46a74.css
dist/static/css/app.928e53957ca90fba8f928af9c3a46a74.css
+0
-0
19.64ae08eb01d99f37ea91.js
dist/static/js/19.64ae08eb01d99f37ea91.js
+0
-2
19.6f912d2cad585259216d.js
dist/static/js/19.6f912d2cad585259216d.js
+2
-0
manifest.2427c7e6cc2d358d83ef.js
dist/static/js/manifest.2427c7e6cc2d358d83ef.js
+2
-2
storePermission.vue
src/views/setting/storePermission.vue
+2
-2
No files found.
dist/index.html
View file @
9bdde6c7
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.e656e08691a860e41fabbaf953c966b3.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.b9446b99b1a4c6263760.js
></script><script
type=
text/javascript
src=
./static/js/vendor.9a6a1db3163a6480a3e2.js
></script><script
type=
text/javascript
src=
./static/js/app.baf8b87f35624074307a.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
href=
./static/css/app.928e53957ca90fba8f928af9c3a46a74.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.2427c7e6cc2d358d83ef.js
></script><script
type=
text/javascript
src=
./static/js/vendor.9a6a1db3163a6480a3e2.js
></script><script
type=
text/javascript
src=
./static/js/app.baf8b87f35624074307a.js
></script></body></html>
\ No newline at end of file
dist/static/css/app.
e656e08691a860e41fabbaf953c966b3
.css
→
dist/static/css/app.
928e53957ca90fba8f928af9c3a46a74
.css
View file @
9bdde6c7
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/19.64ae08eb01d99f37ea91.js
deleted
100644 → 0
View file @
b09b990a
webpackJsonp
([
19
],{
Xwfy
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
r
(
"woOf"
),
s
=
r
.
n
(
a
),
l
=
r
(
"mvHQ"
),
i
=
r
.
n
(
l
),
o
=
r
(
"gBtx"
),
n
=
r
.
n
(
o
),
c
=
r
(
"3Xzz"
),
d
=
r
(
"fZjL"
),
u
=
r
.
n
(
d
),
h
=
{
name
:
"set-permiss-data"
,
components
:{},
props
:{
value
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}},
title
:{
type
:
String
}},
data
:
function
(){
return
{
defaultSelection
:
this
.
value
||
[]}},
methods
:{
delCurrent
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
)},
updateList
:
function
(
e
){
this
.
$emit
(
"input"
,
e
)},
handleSelectedList
:
function
(
e
){},
showSelector
:
function
(){
this
.
$emit
(
"showSelect"
)}},
watch
:{
value
:
function
(
e
,
t
){
this
.
defaultSelection
=
e
}},
mounted
:
function
(){
this
.
defaultSelection
=
this
.
value
}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"select-area"
},[
r
(
"div"
,{
staticClass
:
"setting-name"
,
staticStyle
:{
"font-size"
:
"14px"
,
color
:
"#606266"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
title
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
r
(
"ul"
,{
staticClass
:
"particular-list"
},[
e
.
_l
(
e
.
defaultSelection
,
function
(
t
,
a
){
return
[
1
==
t
.
type
?
r
(
"li"
,{
key
:
a
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"item person-item"
},[
r
(
"div"
,{
class
:[
"img-wrap"
,
"flex"
,
"flex-align-center"
,
"flex-pack-center"
,
t
.
headPic
?
""
:
"img-wrap-bg"
]},[
t
.
headPic
?
r
(
"img"
,{
attrs
:{
src
:
t
.
headPic
,
alt
:
"headPic"
}}):
r
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
}),
e
.
_v
(
" "
),
r
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
t
){
e
.
delCurrent
(
a
,
e
.
defaultSelection
)}}})]),
e
.
_v
(
" "
),
r
(
"p"
,{
staticClass
:
"name"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
label
))])]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
type
||
3
==
t
.
type
?
r
(
"li"
,{
key
:
a
+
"_"
+
t
.
groupId
,
staticClass
:
"item group-item"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
||
t
.
label
)
+
"
\
n "
),
r
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
t
){
e
.
delCurrent
(
a
,
e
.
defaultSelection
)}}})]):
e
.
_e
()]}),
e
.
_v
(
" "
),
r
(
"li"
,{
staticClass
:
"item J_add-btn flex flex-align-center flex-pack-center"
,
on
:{
click
:
e
.
showSelector
}},[
r
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
2
)])},
staticRenderFns
:[]};
var
p
=
r
(
"VU/8"
)(
h
,
m
,
!
1
,
function
(
e
){
r
(
"gvjp"
)},
null
,
null
).
exports
,
f
=
r
(
"c4uw"
),
v
=
r
(
"Ie7z"
),
b
=
r
(
"3E4D"
),
S
=
r
(
"Ch4/"
),
g
=
r
(
"PI0u"
),
C
=
r
(
"P9l9"
),
w
=
{
name
:
""
,
props
:{
authData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}},
permType
:{
type
:[
Number
,
String
]}},
data
:
function
(){
return
{
projectName
:
""
,
ruleForm
:{
radio
:
1
,
visibleAll
:[],
visibleStoreAll
:[]},
treeSet
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
treeData
:{},
defaultSelection
:[],
onlyPerson
:
!
1
,
changed
:
""
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
}}},
beforeMount
:
function
(){
var
e
=
window
.
location
.
origin
;
"-1"
!=
e
.
indexOf
(
"localhost"
)?
this
.
baseUrl
=
"http://www.gicdev.com"
:
this
.
baseUrl
=
e
},
methods
:{
changeRadio
:
function
(
e
){
this
.
ruleForm
.
visibleAll
=
[],
this
.
ruleForm
.
visibleStoreAll
=
[]},
submitForm
:
Object
(
g
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
var
r
=
{
allowCherkIds
:[],
allowDepartIds
:[],
allowStoreIds
:[],
brandId
:
t
.
ruleForm
.
brandId
,
groupId
:
t
.
ruleForm
.
groupId
,
radio
:
t
.
ruleForm
.
radio
};
3
!=
t
.
ruleForm
.
radio
||
t
.
ruleForm
.
visibleAll
.
length
||
t
.
ruleForm
.
visibleStoreAll
.
length
?(
3
==
t
.
ruleForm
.
radio
&&
(
t
.
ruleForm
.
visibleAll
.
forEach
(
function
(
e
,
t
){
e
.
hasOwnProperty
(
"employeeClerkId"
)?
r
.
allowCherkIds
.
push
(
e
.
employeeClerkId
):
e
.
hasOwnProperty
(
"groupId"
)?
r
.
allowDepartIds
.
push
(
e
.
groupId
):
1
===
n
()(
e
.
type
)?
r
.
allowCherkIds
.
push
(
e
.
id
):
2
===
n
()(
e
.
type
)
&&
r
.
allowDepartIds
.
push
(
e
.
id
)}),
t
.
ruleForm
.
visibleStoreAll
.
forEach
(
function
(
e
,
t
){
e
.
hasOwnProperty
(
"employeeClerkId"
)?
r
.
allowCherkIds
.
push
(
e
.
employeeClerkId
):
e
.
hasOwnProperty
(
"groupId"
)?
r
.
allowDepartIds
.
push
(
e
.
groupId
):
e
.
hasOwnProperty
(
"storeId"
)?
r
.
allowStoreIds
.
push
(
e
.
storeId
):
1
===
n
()(
e
.
type
)?
r
.
allowCherkIds
.
push
(
e
.
id
):
2
===
n
()(
e
.
type
)?
r
.
allowDepartIds
.
push
(
e
.
id
):
3
===
n
()(
e
.
type
)
&&
r
.
allowStoreIds
.
push
(
e
.
id
)})),
t
.
setStoreAuth
(
r
,
t
.
permType
)):
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择指定部门/人员"
})})},
500
),
setStoreAuth
:
function
(
e
,
t
){
var
r
=
this
,
a
=
{
type
:
t
,
brandId
:
e
.
brandId
,
groupId
:
e
.
groupId
,
storeEmployeeAuth
:
e
.
radio
,
storeManagerAuth
:
e
.
radio
,
allowCherkIds
:
e
.
allowCherkIds
.
join
(
","
),
allowDepartIds
:
e
.
allowDepartIds
.
join
(
","
),
allowStoreIds
:
e
.
allowStoreIds
.
join
(
","
)};
Object
(
C
.
d
)(
"/haoban-manage-web/brand/saveStoreAuth"
,
a
).
then
(
function
(
e
){
var
t
=
e
.
data
;
1
!=
t
.
errorCode
?
S
.
a
.
errorMsg
(
t
):
b
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleAuthData
:
function
(
e
){
var
t
=
this
;
u
()(
e
).
length
&&
(
t
.
ruleForm
.
brandId
=
e
.
brandId
,
t
.
ruleForm
.
groupId
=
e
.
groupId
,
1
===
n
()(
t
.
permType
)
&&
(
t
.
ruleForm
.
radio
=
e
.
brandDTO
.
storeEmployeeAuth
||
1
,
e
.
employeeAuthList
.
length
&&
e
.
employeeAuthList
.
forEach
(
function
(
e
,
t
){
2
===
n
()(
e
.
type
)
&&
(
e
.
groupId
=
e
.
id
),
e
.
label
=
e
.
name
}),
t
.
ruleForm
.
visibleAll
=
[],
t
.
ruleForm
.
visibleStoreAll
=
[],
e
.
employeeAuthList
.
forEach
(
function
(
e
,
r
){
e
.
isStore
?
t
.
ruleForm
.
visibleStoreAll
.
push
(
e
):
t
.
ruleForm
.
visibleAll
.
push
(
e
)}),
t
.
defaultSelection
=
t
.
ruleForm
.
visibleAll
,
t
.
defaultStoreList
=
t
.
ruleForm
.
visibleStoreAll
),
2
===
n
()(
t
.
permType
)
&&
(
t
.
ruleForm
.
radio
=
e
.
brandDTO
.
storeManagerAuth
||
1
,
e
.
managerAuthList
.
length
&&
e
.
managerAuthList
.
forEach
(
function
(
e
,
t
){
2
===
n
()(
e
.
type
)
&&
(
e
.
groupId
=
e
.
id
),
e
.
label
=
e
.
name
}),
t
.
ruleForm
.
visibleAll
=
[],
t
.
ruleForm
.
visibleStoreAll
=
[],
e
.
managerAuthList
.
forEach
(
function
(
e
,
r
){
e
.
isStore
?
t
.
ruleForm
.
visibleStoreAll
.
push
(
e
):
t
.
ruleForm
.
visibleAll
.
push
(
e
)}),
t
.
defaultSelection
=
t
.
ruleForm
.
visibleAll
,
t
.
defaultStoreList
=
t
.
ruleForm
.
visibleStoreAll
))},
showSelect
:
function
(
e
){
if
(
"store"
===
e
)
return
this
.
defaultStoreList
=
this
.
ruleForm
.
visibleStoreAll
,
void
(
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
0
});
this
.
treeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
0
},
this
.
defaultSelection
=
this
.
ruleForm
.
visibleAll
},
handleSelectedList
:
function
(
e
){
this
.
defaultSelection
=
e
,
this
.
ruleForm
.
visibleAll
=
e
},
handleSelectedStoreList
:
function
(
e
){
this
.
defaultStoreList
=
e
,
this
.
ruleForm
.
visibleStoreAll
=
e
},
getDepartData
:
function
(
e
){
var
t
=
this
;
Object
(
C
.
d
)(
"/haoban-manage-web/dept/deptListForCompany"
,{}).
then
(
function
(
e
){
var
r
=
e
.
data
;
if
(
1
!=
r
.
errorCode
)
S
.
a
.
errorMsg
(
r
);
else
if
(
r
.
result
){
var
a
=
[],
s
=
[];
1
==
e
.
data
.
errorCode
&&
(
a
=
e
.
data
.
result
.
departmentList
||
[],
s
=
e
.
data
.
result
.
searchList
||
[]),
t
.
treeData
=
{
treeData
:
a
,
personData
:
s
},
t
.
$forceUpdate
()}
else
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"暂无数据"
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
authData
:
function
(
e
,
t
){
this
.
handleAuthData
(
e
)}},
mounted
:
function
(){
this
.
handleAuthData
(
this
.
authData
),
this
.
getDepartData
()},
components
:{
setPermissData
:
p
,
vueSelectEmployee
:
f
.
a
,
vueSelectStore
:
v
.
a
}},
k
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"permiss-wrap"
},[
r
(
"el-form"
,{
ref
:
"ruleForm"
,
attrs
:{
"label-width"
:
"110px"
,
model
:
e
.
ruleForm
}},[
r
(
"el-radio-group"
,{
on
:{
change
:
e
.
changeRadio
},
model
:{
value
:
e
.
ruleForm
.
radio
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"radio"
,
t
)},
expression
:
"ruleForm.radio"
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
1
==
e
.
permType
?
"店员可见权限"
:
"店长可见权限"
}},[
r
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"可见所有品牌门店架构和行政架构"
)])],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
" "
}},[
r
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"门店仅可见自己门店"
)])],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
" "
}},[
r
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"自定义可见权限"
)])],
1
),
e
.
_v
(
" "
),
3
==
e
.
ruleForm
.
radio
?
r
(
"div"
,{
staticClass
:
"permiss-child-cell"
},[
r
(
"setPermissData"
,{
attrs
:{
title
:
"允许行政架构可见"
},
on
:{
showSelect
:
function
(
t
){
e
.
showSelect
(
"depart"
)}},
model
:{
value
:
e
.
ruleForm
.
visibleAll
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"visibleAll"
,
t
)},
expression
:
"ruleForm.visibleAll"
}}),
e
.
_v
(
" "
),
r
(
"setPermissData"
,{
attrs
:{
title
:
"允许门店架构可见"
},
on
:{
showSelect
:
function
(
t
){
e
.
showSelect
(
"store"
)}},
model
:{
value
:
e
.
ruleForm
.
visibleStoreAll
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"visibleStoreAll"
,
t
)},
expression
:
"ruleForm.visibleStoreAll"
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"保 存"
)])],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"vue-select-employee"
,{
attrs
:{
defaultSelection
:
e
.
defaultSelection
,
treeSet
:
e
.
treeSet
,
onlyPerson
:
e
.
onlyPerson
,
changed
:
e
.
changed
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
r
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
treeSet
:
e
.
storeTreeSet
,
selectType
:
"all"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedStoreList
}})],
1
)},
staticRenderFns
:[]};
var
I
=
r
(
"VU/8"
)(
w
,
k
,
!
1
,
function
(
e
){
r
(
"fwGf"
)},
"data-v-1f47576e"
,
null
).
exports
,
y
=
{
name
:
"storePermission"
,
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"设置"
,
path
:
"/companyAddress"
},{
name
:
"通讯录信息"
,
path
:
"/staffDetails"
},{
name
:
"门店权限设置"
,
path
:
""
}],
activeName
:
""
,
brandList
:[],
switchList
:{
addName
:
"新增门店成员"
,
addStoreClerkCheck
:
!
1
,
delName
:
"删除门店成员"
,
deleteStoreClerkCheck
:
!
1
,
modName
:
"门店信息变更"
,
storeInformationChangeCheck
:
!
1
}}},
computed
:{},
methods
:{
handleClick
:
function
(
e
,
t
){
this
.
getStoreAuth
(
e
.
name
,
n
()(
e
.
index
)),
this
.
activeName
=
e
.
name
},
saveSwitch
:
Object
(
g
.
a
)(
function
(){
var
e
=
JSON
.
parse
(
i
()(
this
.
switchList
));
e
.
addStoreClerkCheck
=
1
==
e
.
addStoreClerkCheck
?
1
:
0
,
e
.
deleteStoreClerkCheck
=
1
==
e
.
deleteStoreClerkCheck
?
1
:
0
,
e
.
storeInformationChangeCheck
=
1
==
e
.
storeInformationChangeCheck
?
1
:
0
,
this
.
setStoreAuth
(
e
)},
600
),
setStoreAuth
:
function
(
e
){
var
t
=
this
,
r
=
{
brandId
:
e
.
brandId
,
groupId
:
t
.
activeName
,
addStoreClerkCheck
:
e
.
addStoreClerkCheck
,
deleteStoreClerkCheck
:
e
.
deleteStoreClerkCheck
,
storeInformationChangeCheck
:
e
.
storeInformationChangeCheck
};
Object
(
C
.
d
)(
"/haoban-manage-web/brand/saveStoreAuth"
,
r
).
then
(
function
(
e
){
var
t
=
e
.
data
;
1
!=
t
.
errorCode
?
S
.
a
.
errorMsg
(
t
):
b
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getStoreAuth
:
function
(
e
,
t
){
var
r
=
this
,
a
=
{
groupId
:
e
};
Object
(
C
.
d
)(
"/haoban-manage-web/brand/storeAuth"
,
a
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
1
!=
t
.
errorCode
)
S
.
a
.
errorMsg
(
t
);
else
if
(
t
.
result
){
r
.
brandList
.
clerkData
=
t
.
result
,
r
.
brandList
.
managerData
=
t
.
result
;
var
a
=
t
.
result
.
brandDTO
;
a
.
addStoreClerkCheck
=
1
==
a
.
addStoreClerkCheck
,
a
.
deleteStoreClerkCheck
=
1
==
a
.
deleteStoreClerkCheck
,
a
.
storeInformationChangeCheck
=
1
==
a
.
storeInformationChangeCheck
,
r
.
switchList
=
s
()(
r
.
switchList
,
a
),
r
.
$forceUpdate
()}}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getBrandData
:
function
(){
var
e
=
this
;
Object
(
C
.
d
)(
"/haoban-manage-web/brand/list"
,{}).
then
(
function
(
t
){
var
r
=
t
.
data
;
1
!=
r
.
errorCode
?
S
.
a
.
errorMsg
(
r
):
r
.
result
&&
r
.
result
.
length
&&
(
e
.
brandList
=
r
.
result
,
e
.
activeName
=
r
.
result
[
0
].
groupId
,
e
.
getStoreAuth
(
r
.
result
[
0
].
groupId
,
0
))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
mounted
:
function
(){
this
.
getBrandData
()},
components
:{
navCrumb
:
c
.
a
,
setPermiss
:
I
}},
A
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"storePermission-wrap common-set-wrap"
},[
r
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"right-content"
},[
r
(
"div"
,{
staticClass
:
"right-box"
,
staticStyle
:{
background
:
"unset"
,
padding
:
"0"
}},[
r
(
"el-tabs"
,{
on
:{
"tab-click"
:
e
.
handleClick
},
model
:{
value
:
e
.
activeName
,
callback
:
function
(
t
){
e
.
activeName
=
t
},
expression
:
"activeName"
}},[
e
.
_l
(
e
.
brandList
,
function
(
e
,
t
){
return
[
r
(
"el-tab-pane"
,{
key
:
"name"
+
t
,
attrs
:{
label
:
e
.
name
,
name
:
e
.
groupId
}})]})],
2
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"storePermission-title font-w-500"
},[
e
.
_v
(
"
\
n 门店成员通讯录可见权限
\
n "
)]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"bg-fff permiss-contain"
},[
r
(
"set-permiss"
,{
attrs
:{
permType
:
1
,
authData
:
e
.
brandList
.
clerkData
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"b-l"
}),
e
.
_v
(
" "
),
r
(
"set-permiss"
,{
attrs
:{
permType
:
2
,
authData
:
e
.
brandList
.
managerData
}})],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"storePermission-wrap-switch m-t-24"
},[
r
(
"div"
,{
staticClass
:
"storePermission-switch-title font-w-500"
},[
e
.
_v
(
"
\
n 门店信息变更是否需要审核
\
n "
)]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"storePermission-switch-body"
},[
r
(
"div"
,{
staticClass
:
"switch-cell"
},[
r
(
"el-switch"
,{
attrs
:{
"inactive-text"
:
e
.
switchList
.
addName
},
model
:{
value
:
e
.
switchList
.
addStoreClerkCheck
,
callback
:
function
(
t
){
e
.
$set
(
e
.
switchList
,
"addStoreClerkCheck"
,
t
)},
expression
:
"switchList.addStoreClerkCheck"
}})],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"switch-cell"
},[
r
(
"el-switch"
,{
attrs
:{
"inactive-text"
:
e
.
switchList
.
delName
},
model
:{
value
:
e
.
switchList
.
deleteStoreClerkCheck
,
callback
:
function
(
t
){
e
.
$set
(
e
.
switchList
,
"deleteStoreClerkCheck"
,
t
)},
expression
:
"switchList.deleteStoreClerkCheck"
}})],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"switch-cell p-l-94"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveSwitch
}},[
e
.
_v
(
"保 存"
)])],
1
)])])],
1
)]),
e
.
_v
(
" "
),
r
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
F
=
r
(
"VU/8"
)(
y
,
A
,
!
1
,
function
(
e
){
r
(
"mpre"
)},
"data-v-5e605ed0"
,
null
);
t
.
default
=
F
.
exports
},
fwGf
:
function
(
e
,
t
){},
gvjp
:
function
(
e
,
t
){},
mpre
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/19.6f912d2cad585259216d.js
0 → 100644
View file @
9bdde6c7
webpackJsonp
([
19
],{
"5rY/"
:
function
(
e
,
t
){},
Xwfy
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
=
r
(
"woOf"
),
s
=
r
.
n
(
a
),
l
=
r
(
"mvHQ"
),
i
=
r
.
n
(
l
),
o
=
r
(
"gBtx"
),
n
=
r
.
n
(
o
),
c
=
r
(
"3Xzz"
),
d
=
r
(
"fZjL"
),
u
=
r
.
n
(
d
),
h
=
{
name
:
"set-permiss-data"
,
components
:{},
props
:{
value
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}},
title
:{
type
:
String
}},
data
:
function
(){
return
{
defaultSelection
:
this
.
value
||
[]}},
methods
:{
delCurrent
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
)},
updateList
:
function
(
e
){
this
.
$emit
(
"input"
,
e
)},
handleSelectedList
:
function
(
e
){},
showSelector
:
function
(){
this
.
$emit
(
"showSelect"
)}},
watch
:{
value
:
function
(
e
,
t
){
this
.
defaultSelection
=
e
}},
mounted
:
function
(){
this
.
defaultSelection
=
this
.
value
}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"select-area"
},[
r
(
"div"
,{
staticClass
:
"setting-name"
,
staticStyle
:{
"font-size"
:
"14px"
,
color
:
"#606266"
}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
e
.
title
)
+
"
\
n "
)]),
e
.
_v
(
" "
),
r
(
"ul"
,{
staticClass
:
"particular-list"
},[
e
.
_l
(
e
.
defaultSelection
,
function
(
t
,
a
){
return
[
1
==
t
.
type
?
r
(
"li"
,{
key
:
a
+
"_"
+
t
.
employeeClerkId
,
staticClass
:
"item person-item"
},[
r
(
"div"
,{
class
:[
"img-wrap"
,
"flex"
,
"flex-align-center"
,
"flex-pack-center"
,
t
.
headPic
?
""
:
"img-wrap-bg"
]},[
t
.
headPic
?
r
(
"img"
,{
attrs
:{
src
:
t
.
headPic
,
alt
:
"headPic"
}}):
r
(
"i"
,{
staticClass
:
"iconfont icon-yewuduanmorentouxian"
}),
e
.
_v
(
" "
),
r
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
t
){
e
.
delCurrent
(
a
,
e
.
defaultSelection
)}}})]),
e
.
_v
(
" "
),
r
(
"p"
,{
staticClass
:
"name"
},[
e
.
_v
(
e
.
_s
(
t
.
name
||
t
.
label
))])]):
e
.
_e
(),
e
.
_v
(
" "
),
2
==
t
.
type
||
3
==
t
.
type
?
r
(
"li"
,{
key
:
a
+
"_"
+
t
.
groupId
,
staticClass
:
"item group-item"
},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
name
||
t
.
label
)
+
"
\
n "
),
r
(
"i"
,{
staticClass
:
"el-icon-circle-close"
,
on
:{
click
:
function
(
t
){
e
.
delCurrent
(
a
,
e
.
defaultSelection
)}}})]):
e
.
_e
()]}),
e
.
_v
(
" "
),
r
(
"li"
,{
staticClass
:
"item J_add-btn flex flex-align-center flex-pack-center"
,
on
:{
click
:
e
.
showSelector
}},[
r
(
"i"
,{
staticClass
:
"el-icon-plus"
})])],
2
)])},
staticRenderFns
:[]};
var
p
=
r
(
"VU/8"
)(
h
,
m
,
!
1
,
function
(
e
){
r
(
"gvjp"
)},
null
,
null
).
exports
,
f
=
r
(
"c4uw"
),
v
=
r
(
"Ie7z"
),
b
=
r
(
"3E4D"
),
g
=
r
(
"Ch4/"
),
S
=
r
(
"PI0u"
),
C
=
r
(
"P9l9"
),
w
=
{
name
:
""
,
props
:{
authData
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
{}}},
permType
:{
type
:[
Number
,
String
]}},
data
:
function
(){
return
{
projectName
:
""
,
ruleForm
:{
radio
:
1
,
visibleAll
:[],
visibleStoreAll
:[]},
treeSet
:{
isSelectPerson
:
!
0
,
dialogVisible
:
!
1
,
isSingle
:
!
1
},
treeData
:{},
defaultSelection
:[],
onlyPerson
:
!
1
,
changed
:
""
,
defaultStoreList
:[],
storeTreeSet
:{
isSelectPerson
:
!
1
,
dialogVisible
:
!
1
,
isSingle
:
!
1
}}},
beforeMount
:
function
(){
var
e
=
window
.
location
.
origin
;
"-1"
!=
e
.
indexOf
(
"localhost"
)?
this
.
baseUrl
=
"http://www.gicdev.com"
:
this
.
baseUrl
=
e
},
methods
:{
changeRadio
:
function
(
e
){
this
.
ruleForm
.
visibleAll
=
[],
this
.
ruleForm
.
visibleStoreAll
=
[]},
submitForm
:
Object
(
S
.
a
)(
function
(
e
){
var
t
=
this
;
t
.
$refs
[
e
].
validate
(
function
(
e
){
if
(
!
e
)
return
!
1
;
var
r
=
{
allowCherkIds
:[],
allowDepartIds
:[],
allowStoreIds
:[],
brandId
:
t
.
ruleForm
.
brandId
,
groupId
:
t
.
ruleForm
.
groupId
,
radio
:
t
.
ruleForm
.
radio
};
3
!=
t
.
ruleForm
.
radio
||
t
.
ruleForm
.
visibleAll
.
length
||
t
.
ruleForm
.
visibleStoreAll
.
length
?(
3
==
t
.
ruleForm
.
radio
&&
(
t
.
ruleForm
.
visibleAll
.
forEach
(
function
(
e
,
t
){
e
.
hasOwnProperty
(
"employeeClerkId"
)?
r
.
allowCherkIds
.
push
(
e
.
employeeClerkId
):
e
.
hasOwnProperty
(
"groupId"
)?
r
.
allowDepartIds
.
push
(
e
.
groupId
):
1
===
n
()(
e
.
type
)?
r
.
allowCherkIds
.
push
(
e
.
id
):
2
===
n
()(
e
.
type
)
&&
r
.
allowDepartIds
.
push
(
e
.
id
)}),
t
.
ruleForm
.
visibleStoreAll
.
forEach
(
function
(
e
,
t
){
e
.
hasOwnProperty
(
"employeeClerkId"
)?
r
.
allowCherkIds
.
push
(
e
.
employeeClerkId
):
e
.
hasOwnProperty
(
"groupId"
)?
r
.
allowDepartIds
.
push
(
e
.
groupId
):
e
.
hasOwnProperty
(
"storeId"
)?
r
.
allowStoreIds
.
push
(
e
.
storeId
):
1
===
n
()(
e
.
type
)?
r
.
allowCherkIds
.
push
(
e
.
id
):
2
===
n
()(
e
.
type
)?
r
.
allowDepartIds
.
push
(
e
.
id
):
3
===
n
()(
e
.
type
)
&&
r
.
allowStoreIds
.
push
(
e
.
id
)})),
t
.
setStoreAuth
(
r
,
t
.
permType
)):
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择指定部门/人员"
})})},
500
),
setStoreAuth
:
function
(
e
,
t
){
var
r
=
this
,
a
=
{
type
:
t
,
brandId
:
e
.
brandId
,
groupId
:
e
.
groupId
,
storeEmployeeAuth
:
e
.
radio
,
storeManagerAuth
:
e
.
radio
,
allowCherkIds
:
e
.
allowCherkIds
.
join
(
","
),
allowDepartIds
:
e
.
allowDepartIds
.
join
(
","
),
allowStoreIds
:
e
.
allowStoreIds
.
join
(
","
)};
Object
(
C
.
d
)(
"/haoban-manage-web/brand/saveStoreAuth"
,
a
).
then
(
function
(
e
){
var
t
=
e
.
data
;
1
!=
t
.
errorCode
?
g
.
a
.
errorMsg
(
t
):
b
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
handleAuthData
:
function
(
e
){
var
t
=
this
;
u
()(
e
).
length
&&
(
t
.
ruleForm
.
brandId
=
e
.
brandId
,
t
.
ruleForm
.
groupId
=
e
.
groupId
,
1
===
n
()(
t
.
permType
)
&&
(
t
.
ruleForm
.
radio
=
e
.
brandDTO
.
storeEmployeeAuth
||
1
,
e
.
employeeAuthList
.
length
&&
e
.
employeeAuthList
.
forEach
(
function
(
e
,
t
){
2
===
n
()(
e
.
type
)
&&
(
e
.
groupId
=
e
.
id
),
e
.
label
=
e
.
name
}),
t
.
ruleForm
.
visibleAll
=
[],
t
.
ruleForm
.
visibleStoreAll
=
[],
e
.
employeeAuthList
.
forEach
(
function
(
e
,
r
){
e
.
isStore
?
t
.
ruleForm
.
visibleStoreAll
.
push
(
e
):
t
.
ruleForm
.
visibleAll
.
push
(
e
)}),
t
.
defaultSelection
=
t
.
ruleForm
.
visibleAll
,
t
.
defaultStoreList
=
t
.
ruleForm
.
visibleStoreAll
),
2
===
n
()(
t
.
permType
)
&&
(
t
.
ruleForm
.
radio
=
e
.
brandDTO
.
storeManagerAuth
||
1
,
e
.
managerAuthList
.
length
&&
e
.
managerAuthList
.
forEach
(
function
(
e
,
t
){
2
===
n
()(
e
.
type
)
&&
(
e
.
groupId
=
e
.
id
),
e
.
label
=
e
.
name
}),
t
.
ruleForm
.
visibleAll
=
[],
t
.
ruleForm
.
visibleStoreAll
=
[],
e
.
managerAuthList
.
forEach
(
function
(
e
,
r
){
e
.
isStore
?
t
.
ruleForm
.
visibleStoreAll
.
push
(
e
):
t
.
ruleForm
.
visibleAll
.
push
(
e
)}),
t
.
defaultSelection
=
t
.
ruleForm
.
visibleAll
,
t
.
defaultStoreList
=
t
.
ruleForm
.
visibleStoreAll
))},
showSelect
:
function
(
e
){
if
(
"store"
===
e
)
return
this
.
defaultStoreList
=
this
.
ruleForm
.
visibleStoreAll
,
void
(
this
.
storeTreeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
0
});
this
.
treeSet
=
{
dialogVisible
:
!
0
,
isSingle
:
!
1
,
isSelectPerson
:
!
0
},
this
.
defaultSelection
=
this
.
ruleForm
.
visibleAll
},
handleSelectedList
:
function
(
e
){
this
.
defaultSelection
=
e
,
this
.
ruleForm
.
visibleAll
=
e
},
handleSelectedStoreList
:
function
(
e
){
this
.
defaultStoreList
=
e
,
this
.
ruleForm
.
visibleStoreAll
=
e
},
getDepartData
:
function
(
e
){
var
t
=
this
;
Object
(
C
.
d
)(
"/haoban-manage-web/dept/deptListForCompany"
,{}).
then
(
function
(
e
){
var
r
=
e
.
data
;
if
(
1
!=
r
.
errorCode
)
g
.
a
.
errorMsg
(
r
);
else
if
(
r
.
result
){
var
a
=
[],
s
=
[];
1
==
e
.
data
.
errorCode
&&
(
a
=
e
.
data
.
result
.
departmentList
||
[],
s
=
e
.
data
.
result
.
searchList
||
[]),
t
.
treeData
=
{
treeData
:
a
,
personData
:
s
},
t
.
$forceUpdate
()}
else
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
"暂无数据"
})}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})}},
watch
:{
authData
:
function
(
e
,
t
){
this
.
handleAuthData
(
e
)}},
mounted
:
function
(){
this
.
handleAuthData
(
this
.
authData
),
this
.
getDepartData
()},
components
:{
setPermissData
:
p
,
vueSelectEmployee
:
f
.
a
,
vueSelectStore
:
v
.
a
}},
k
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"permiss-wrap"
},[
r
(
"el-form"
,{
ref
:
"ruleForm"
,
attrs
:{
"label-width"
:
"110px"
,
model
:
e
.
ruleForm
}},[
r
(
"el-radio-group"
,{
on
:{
change
:
e
.
changeRadio
},
model
:{
value
:
e
.
ruleForm
.
radio
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"radio"
,
t
)},
expression
:
"ruleForm.radio"
}},[
r
(
"el-form-item"
,{
attrs
:{
label
:
1
==
e
.
permType
?
"店员可见权限"
:
"店长可见权限"
}},[
r
(
"el-radio"
,{
attrs
:{
label
:
1
}},[
e
.
_v
(
"可见所有品牌门店架构和行政架构"
)])],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
" "
}},[
r
(
"el-radio"
,{
attrs
:{
label
:
2
}},[
e
.
_v
(
"门店仅可见自己门店"
)])],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,{
attrs
:{
label
:
" "
}},[
r
(
"el-radio"
,{
attrs
:{
label
:
3
}},[
e
.
_v
(
"自定义可见权限"
)])],
1
),
e
.
_v
(
" "
),
3
==
e
.
ruleForm
.
radio
?
r
(
"div"
,{
staticClass
:
"permiss-child-cell"
},[
r
(
"setPermissData"
,{
attrs
:{
title
:
"允许行政架构可见"
},
on
:{
showSelect
:
function
(
t
){
e
.
showSelect
(
"depart"
)}},
model
:{
value
:
e
.
ruleForm
.
visibleAll
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"visibleAll"
,
t
)},
expression
:
"ruleForm.visibleAll"
}}),
e
.
_v
(
" "
),
r
(
"setPermissData"
,{
attrs
:{
title
:
"允许门店架构可见"
},
on
:{
showSelect
:
function
(
t
){
e
.
showSelect
(
"store"
)}},
model
:{
value
:
e
.
ruleForm
.
visibleStoreAll
,
callback
:
function
(
t
){
e
.
$set
(
e
.
ruleForm
,
"visibleStoreAll"
,
t
)},
expression
:
"ruleForm.visibleStoreAll"
}})],
1
):
e
.
_e
()],
1
),
e
.
_v
(
" "
),
r
(
"el-form-item"
,[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"保 存"
)])],
1
)],
1
),
e
.
_v
(
" "
),
r
(
"vue-select-employee"
,{
attrs
:{
defaultSelection
:
e
.
defaultSelection
,
treeSet
:
e
.
treeSet
,
onlyPerson
:
e
.
onlyPerson
,
changed
:
e
.
changed
},
on
:{
handleSelectedList
:
e
.
handleSelectedList
}}),
e
.
_v
(
" "
),
r
(
"vue-select-store"
,{
ref
:
"storeSelector"
,
attrs
:{
treeSet
:
e
.
storeTreeSet
,
selectType
:
"all"
,
defaultList
:
e
.
defaultStoreList
},
on
:{
handleSelectedList
:
e
.
handleSelectedStoreList
}})],
1
)},
staticRenderFns
:[]};
var
I
=
r
(
"VU/8"
)(
w
,
k
,
!
1
,
function
(
e
){
r
(
"fwGf"
)},
"data-v-1f47576e"
,
null
).
exports
,
y
=
{
name
:
"storePermission"
,
data
:
function
(){
return
{
navpath
:[{
name
:
"首页"
,
path
:
"/index"
},{
name
:
"设置"
,
path
:
"/companyAddress"
},{
name
:
"通讯录信息"
,
path
:
"/staffDetails"
},{
name
:
"门店权限设置"
,
path
:
""
}],
activeName
:
""
,
brandList
:[],
switchList
:{
addName
:
"新增门店成员"
,
addStoreClerkCheck
:
!
1
,
delName
:
"删除门店成员"
,
deleteStoreClerkCheck
:
!
1
,
modName
:
"门店信息变更"
,
storeInformationChangeCheck
:
!
1
}}},
computed
:{},
methods
:{
handleClick
:
function
(
e
,
t
){
this
.
getStoreAuth
(
e
.
name
,
n
()(
e
.
index
)),
this
.
activeName
=
e
.
name
},
saveSwitch
:
Object
(
S
.
a
)(
function
(){
var
e
=
JSON
.
parse
(
i
()(
this
.
switchList
));
e
.
addStoreClerkCheck
=
1
==
e
.
addStoreClerkCheck
?
1
:
0
,
e
.
deleteStoreClerkCheck
=
1
==
e
.
deleteStoreClerkCheck
?
1
:
0
,
e
.
storeInformationChangeCheck
=
1
==
e
.
storeInformationChangeCheck
?
1
:
0
,
this
.
setStoreAuth
(
e
)},
600
),
setStoreAuth
:
function
(
e
){
var
t
=
this
,
r
=
{
brandId
:
e
.
brandId
,
groupId
:
t
.
activeName
,
addStoreClerkCheck
:
e
.
addStoreClerkCheck
,
deleteStoreClerkCheck
:
e
.
deleteStoreClerkCheck
,
storeInformationChangeCheck
:
e
.
storeInformationChangeCheck
};
Object
(
C
.
d
)(
"/haoban-manage-web/brand/saveStoreAuth"
,
r
).
then
(
function
(
e
){
var
t
=
e
.
data
;
1
!=
t
.
errorCode
?
g
.
a
.
errorMsg
(
t
):
b
.
a
.
showmsg
(
"保存成功"
,
"success"
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getStoreAuth
:
function
(
e
,
t
){
var
r
=
this
,
a
=
{
groupId
:
e
};
Object
(
C
.
d
)(
"/haoban-manage-web/brand/storeAuth"
,
a
).
then
(
function
(
e
){
var
t
=
e
.
data
;
if
(
1
!=
t
.
errorCode
)
g
.
a
.
errorMsg
(
t
);
else
if
(
t
.
result
){
r
.
brandList
.
clerkData
=
t
.
result
,
r
.
brandList
.
managerData
=
t
.
result
;
var
a
=
t
.
result
.
brandDTO
;
a
.
addStoreClerkCheck
=
1
==
a
.
addStoreClerkCheck
,
a
.
deleteStoreClerkCheck
=
1
==
a
.
deleteStoreClerkCheck
,
a
.
storeInformationChangeCheck
=
1
==
a
.
storeInformationChangeCheck
,
r
.
switchList
=
s
()(
r
.
switchList
,
a
),
r
.
$forceUpdate
()}}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getBrandData
:
function
(){
var
e
=
this
;
Object
(
C
.
d
)(
"/haoban-manage-web/brand/list"
,{}).
then
(
function
(
t
){
var
r
=
t
.
data
;
1
!=
r
.
errorCode
?
g
.
a
.
errorMsg
(
r
):
r
.
result
&&
r
.
result
.
length
&&
(
e
.
brandList
=
r
.
result
,
e
.
activeName
=
r
.
result
[
0
].
groupId
,
e
.
getStoreAuth
(
r
.
result
[
0
].
groupId
,
0
))}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
mounted
:
function
(){
this
.
getBrandData
()},
components
:{
navCrumb
:
c
.
a
,
setPermiss
:
I
}},
A
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
r
=
e
.
_self
.
_c
||
t
;
return
r
(
"div"
,{
staticClass
:
"storePermission-wrap common-set-wrap"
},[
r
(
"nav-crumb"
,{
attrs
:{
navpath
:
e
.
navpath
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"right-content"
},[
r
(
"div"
,{
staticClass
:
"right-box"
,
staticStyle
:{
background
:
"unset"
,
padding
:
"0"
}},[
r
(
"el-tabs"
,{
on
:{
"tab-click"
:
e
.
handleClick
},
model
:{
value
:
e
.
activeName
,
callback
:
function
(
t
){
e
.
activeName
=
t
},
expression
:
"activeName"
}},[
e
.
_l
(
e
.
brandList
,
function
(
e
,
t
){
return
[
r
(
"el-tab-pane"
,{
key
:
"name"
+
t
,
attrs
:{
label
:
e
.
name
,
name
:
e
.
groupId
}})]})],
2
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"storePermission-title font-w-500"
},[
e
.
_v
(
"
\
n 门店成员通讯录可见权限
\
n "
)]),
e
.
_v
(
" "
),
e
.
brandList
.
length
?
r
(
"div"
,{
staticClass
:
"bg-fff permiss-contain"
},[
r
(
"set-permiss"
,{
attrs
:{
permType
:
1
,
authData
:
e
.
brandList
.
clerkData
}}),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"b-l"
}),
e
.
_v
(
" "
),
r
(
"set-permiss"
,{
attrs
:{
permType
:
2
,
authData
:
e
.
brandList
.
managerData
}})],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
e
.
brandList
.
length
?
r
(
"div"
,{
staticClass
:
"storePermission-wrap-switch m-t-24"
},[
r
(
"div"
,{
staticClass
:
"storePermission-switch-title font-w-500"
},[
e
.
_v
(
"
\
n 门店信息变更是否需要审核
\
n "
)]),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"storePermission-switch-body"
},[
r
(
"div"
,{
staticClass
:
"switch-cell"
},[
r
(
"el-switch"
,{
attrs
:{
"inactive-text"
:
e
.
switchList
.
addName
},
model
:{
value
:
e
.
switchList
.
addStoreClerkCheck
,
callback
:
function
(
t
){
e
.
$set
(
e
.
switchList
,
"addStoreClerkCheck"
,
t
)},
expression
:
"switchList.addStoreClerkCheck"
}})],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"switch-cell"
},[
r
(
"el-switch"
,{
attrs
:{
"inactive-text"
:
e
.
switchList
.
delName
},
model
:{
value
:
e
.
switchList
.
deleteStoreClerkCheck
,
callback
:
function
(
t
){
e
.
$set
(
e
.
switchList
,
"deleteStoreClerkCheck"
,
t
)},
expression
:
"switchList.deleteStoreClerkCheck"
}})],
1
),
e
.
_v
(
" "
),
r
(
"div"
,{
staticClass
:
"switch-cell p-l-94"
},[
r
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
saveSwitch
}},[
e
.
_v
(
"保 存"
)])],
1
)])]):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
r
(
"vue-gic-footer"
)],
1
)},
staticRenderFns
:[]};
var
_
=
r
(
"VU/8"
)(
y
,
A
,
!
1
,
function
(
e
){
r
(
"5rY/"
)},
"data-v-0d12e8b8"
,
null
);
t
.
default
=
_
.
exports
},
fwGf
:
function
(
e
,
t
){},
gvjp
:
function
(
e
,
t
){}});
\ No newline at end of file
dist/static/js/manifest.
b9446b99b1a4c6263760
.js
→
dist/static/js/manifest.
2427c7e6cc2d358d83ef
.js
View file @
9bdde6c7
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
d
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
d
)
Object
.
prototype
.
hasOwnProperty
.
call
(
d
,
r
)
&&
(
e
[
r
]
=
d
[
r
]);
for
(
a
&&
a
(
c
,
d
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
b
(
b
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
80
:
0
};
function
b
(
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
,
b
),
f
.
l
=!
0
,
f
.
exports
}
b
.
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
,
b
){
a
=
f
[
e
]
=
[
c
,
b
]});
a
[
2
]
=
c
;
var
d
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
b
.
nc
&&
n
.
setAttribute
(
"nonce"
,
b
.
nc
),
n
.
src
=
b
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"e9e92ddbbf13163321ee"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"149a449d4799432ea75c"
,
3
:
"958d4087184a77a03d2a"
,
4
:
"319a39e0f20e24d52f99"
,
5
:
"c5152496e5e990132310"
,
6
:
"8d32de58fbc5adc35d15"
,
7
:
"123f255c958536a762fb"
,
8
:
"c958abaf56ef42b1d756"
,
9
:
"e3bbd7cce37695739ba0"
,
10
:
"b5efddc0d6d2d641e12e"
,
11
:
"9595597db687f7e0edff"
,
12
:
"9d4d58db80f347a1cda5"
,
13
:
"28f752e34986e8d2c79c"
,
14
:
"e7bee85a3a402b0a8864"
,
15
:
"ef2cc66f7ceab9d5aa1b"
,
16
:
"7430a10bcb525144c3a9"
,
17
:
"c453ad6161787914538d"
,
18
:
"936735318b9353e82691"
,
19
:
"64ae08eb01d99f37ea91"
,
20
:
"81f6c674a6461ef85896"
,
21
:
"ea093b92d17d3c0d0182"
,
22
:
"97d54556e9b5ebe126ec"
,
23
:
"5ed1b5fd3abff19ce342"
,
24
:
"9c7dd0f43ca6b011cd2f"
,
25
:
"cef227b700aa3fb4e724"
,
26
:
"9cc6b213be0074753fc6"
,
27
:
"a07c5e8a2c828405af0b"
,
28
:
"8e8c72a259a08ab5d625"
,
29
:
"03f66bbfeeb345c12457"
,
30
:
"919c1bd8a2d7dce0aabd"
,
31
:
"1b98b5a68e3b103fd91f"
,
32
:
"5689026477a30685dca1"
,
33
:
"4d0fe630f19612938a6a"
,
34
:
"ac1d33e805f450536f24"
,
35
:
"434809f3ca673ddaae86"
,
36
:
"92f71f60512146948349"
,
37
:
"b98779b2e98886584c51"
,
38
:
"e7ce6bc40f44c7e5e3c6"
,
39
:
"b9764e9b99a94bfecd2b"
,
40
:
"4cde379430417c5ed51e"
,
41
:
"f6829ce0d6f837cb5431"
,
42
:
"9f6432a89e42de79da40"
,
43
:
"b5602354923a1b1c303b"
,
44
:
"26529d299fa7b1a1f97a"
,
45
:
"e6a13f19eb06856f1caa"
,
46
:
"88c8db7415aee60ef69e"
,
47
:
"970aa0f2c465fdbf4bc7"
,
48
:
"e91921be6e7f7a756eea"
,
49
:
"a3b12f9c57387195f4a7"
,
50
:
"6496e8ca8aacc5d2df7c"
,
51
:
"46b88942ec5b0a71891c"
,
52
:
"47bdf0b2b14c94489949"
,
53
:
"2dd49e9cd132917e82cb"
,
54
:
"0309d2105e394b8f6170"
,
55
:
"4b30f436aa310224c29c"
,
56
:
"6abc62fbb6228e064698"
,
57
:
"bd75ddf0c8a4a2ddef67"
,
58
:
"f8f6469b19558b91d2af"
,
59
:
"bbafb4627f26c3e2ee70"
,
60
:
"633307c153fec68e7774"
,
61
:
"0836732859301f982e1c"
,
62
:
"3740fadd958cd60f6ad4"
,
63
:
"900bedaa92a302ec3d59"
,
64
:
"abe982728caae731cf98"
,
65
:
"3924cb8f17f79e5b3ff3"
,
66
:
"d14b448b51b083a8b0ea"
,
67
:
"e6eb60b04233886380e5"
,
68
:
"2ed914b4d71aaa540151"
,
69
:
"abb86ed03b7181249354"
,
70
:
"6c2402795ed03b512775"
,
71
:
"87a6af69154348344f0b"
,
72
:
"14bd495ccecac00655be"
,
73
:
"378ba22d21e4d05757c0"
,
74
:
"2ced616ba0bc4c7cc7c2"
,
75
:
"d29d71e988f731b2c2ce"
,
76
:
"8195fad4399717f5fe66"
,
79
:
"fa30b478b118ebeae9f5"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
d
.
appendChild
(
n
),
c
},
b
.
m
=
e
,
b
.
c
=
c
,
b
.
d
=
function
(
e
,
a
,
c
){
b
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
b
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
a
,
"a"
,
a
),
a
},
b
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
b
.
p
=
"./"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
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
(
a
&&
a
(
c
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
80
:
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
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
:
"e9e92ddbbf13163321ee"
,
1
:
"0ebe3ead93207dc78a78"
,
2
:
"149a449d4799432ea75c"
,
3
:
"958d4087184a77a03d2a"
,
4
:
"319a39e0f20e24d52f99"
,
5
:
"c5152496e5e990132310"
,
6
:
"8d32de58fbc5adc35d15"
,
7
:
"123f255c958536a762fb"
,
8
:
"c958abaf56ef42b1d756"
,
9
:
"e3bbd7cce37695739ba0"
,
10
:
"b5efddc0d6d2d641e12e"
,
11
:
"9595597db687f7e0edff"
,
12
:
"9d4d58db80f347a1cda5"
,
13
:
"28f752e34986e8d2c79c"
,
14
:
"e7bee85a3a402b0a8864"
,
15
:
"ef2cc66f7ceab9d5aa1b"
,
16
:
"7430a10bcb525144c3a9"
,
17
:
"c453ad6161787914538d"
,
18
:
"936735318b9353e82691"
,
19
:
"6f912d2cad585259216d"
,
20
:
"81f6c674a6461ef85896"
,
21
:
"ea093b92d17d3c0d0182"
,
22
:
"97d54556e9b5ebe126ec"
,
23
:
"5ed1b5fd3abff19ce342"
,
24
:
"9c7dd0f43ca6b011cd2f"
,
25
:
"cef227b700aa3fb4e724"
,
26
:
"9cc6b213be0074753fc6"
,
27
:
"a07c5e8a2c828405af0b"
,
28
:
"8e8c72a259a08ab5d625"
,
29
:
"03f66bbfeeb345c12457"
,
30
:
"919c1bd8a2d7dce0aabd"
,
31
:
"1b98b5a68e3b103fd91f"
,
32
:
"5689026477a30685dca1"
,
33
:
"4d0fe630f19612938a6a"
,
34
:
"ac1d33e805f450536f24"
,
35
:
"434809f3ca673ddaae86"
,
36
:
"92f71f60512146948349"
,
37
:
"b98779b2e98886584c51"
,
38
:
"e7ce6bc40f44c7e5e3c6"
,
39
:
"b9764e9b99a94bfecd2b"
,
40
:
"4cde379430417c5ed51e"
,
41
:
"f6829ce0d6f837cb5431"
,
42
:
"9f6432a89e42de79da40"
,
43
:
"b5602354923a1b1c303b"
,
44
:
"26529d299fa7b1a1f97a"
,
45
:
"e6a13f19eb06856f1caa"
,
46
:
"88c8db7415aee60ef69e"
,
47
:
"970aa0f2c465fdbf4bc7"
,
48
:
"e91921be6e7f7a756eea"
,
49
:
"a3b12f9c57387195f4a7"
,
50
:
"6496e8ca8aacc5d2df7c"
,
51
:
"46b88942ec5b0a71891c"
,
52
:
"47bdf0b2b14c94489949"
,
53
:
"2dd49e9cd132917e82cb"
,
54
:
"0309d2105e394b8f6170"
,
55
:
"4b30f436aa310224c29c"
,
56
:
"6abc62fbb6228e064698"
,
57
:
"bd75ddf0c8a4a2ddef67"
,
58
:
"f8f6469b19558b91d2af"
,
59
:
"bbafb4627f26c3e2ee70"
,
60
:
"633307c153fec68e7774"
,
61
:
"0836732859301f982e1c"
,
62
:
"3740fadd958cd60f6ad4"
,
63
:
"900bedaa92a302ec3d59"
,
64
:
"abe982728caae731cf98"
,
65
:
"3924cb8f17f79e5b3ff3"
,
66
:
"d14b448b51b083a8b0ea"
,
67
:
"e6eb60b04233886380e5"
,
68
:
"2ed914b4d71aaa540151"
,
69
:
"abb86ed03b7181249354"
,
70
:
"6c2402795ed03b512775"
,
71
:
"87a6af69154348344f0b"
,
72
:
"14bd495ccecac00655be"
,
73
:
"378ba22d21e4d05757c0"
,
74
:
"2ced616ba0bc4c7cc7c2"
,
75
:
"d29d71e988f731b2c2ce"
,
76
:
"8195fad4399717f5fe66"
,
79
:
"fa30b478b118ebeae9f5"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
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/views/setting/storePermission.vue
View file @
9bdde6c7
...
...
@@ -11,12 +11,12 @@
<div
class=
"storePermission-title font-w-500"
>
门店成员通讯录可见权限
</div>
<div
class=
"bg-fff permiss-contain"
>
<div
v-if=
"brandList.length"
class=
"bg-fff permiss-contain"
>
<set-permiss
:permType=
"1"
:authData=
"brandList.clerkData"
>
</set-permiss>
<div
class=
"b-l"
></div>
<set-permiss
:permType=
"2"
:authData=
"brandList.managerData"
>
</set-permiss>
</div>
<div
class=
"storePermission-wrap-switch m-t-24"
>
<div
v-if=
"brandList.length"
class=
"storePermission-wrap-switch m-t-24"
>
<div
class=
"storePermission-switch-title font-w-500"
>
门店信息变更是否需要审核
</div>
...
...
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