Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8efc218c
authored
Apr 06, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
园区登录控制
1 parent
24f38147
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
24 deletions
src/api/request.js
src/store/modules/d2admin/modules/account.js
src/views/systemConfig/yqStoreConfig.vue
src/api/request.js
View file @
8efc218
...
...
@@ -24,7 +24,7 @@ const request = (
apiName
=
params
.
method
.
split
(
".api"
)[
0
]
}
console
.
log
(
"params.method"
,
params
.
method
)
//
console.log("params.method", params.method)
// console.log("apiName", apiName)
// 为空报错
if
(
!
apiName
)
{
...
...
src/store/modules/d2admin/modules/account.js
View file @
8efc218
...
...
@@ -104,7 +104,14 @@ export default {
})
}
var
tempAuths
=
[]
var
targetRoutes
=
res
.
beSuper
?
routeAll
:
res
.
map
((
i
)
=>
i
.
authId
)
// 修复超管拿不到权限权限问题
var
targetRoutes
=
userInfo
.
beSuper
?
routeAll
.
map
((
i
)
=>
i
.
authId
)
:
res
.
map
((
i
)
=>
i
.
authId
)
// console.log(res, "res")
// console.log(userInfo.beSuper, "userInfo.beSuper")
console
.
log
(
targetRoutes
,
"targetRoutes"
)
// 先处理园区店角色是不能拿到 订单审批和发货的页面
// console.log("userInfo.beYQMerchant", userInfo.beYQMerchant)
const
filterList
=
[
"90903"
,
"90904"
]
...
...
@@ -116,7 +123,8 @@ export default {
if
(
userInfo
.
beServerMerchant
)
{
targetRoutes
.
push
(
"90904"
)
}
// console.log("targetRoutes", targetRoutes)
console
.
log
(
"targetRoutes"
,
targetRoutes
)
routeAll
.
map
((
i
)
=>
i
.
authId
)
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -134,6 +142,8 @@ export default {
// .map(obj => ({ authId: obj.authId, parentId: obj.parentId })) :
// tempAuths
// console.log(tempAuths)
console
.
log
(
"tempAuths"
,
tempAuths
)
// debugger
const
authes
=
tempAuths
await
dispatch
(
"d2admin/auth/set"
,
authes
,
{
root
:
true
})
// delete accountInfo.authes
...
...
src/views/systemConfig/yqStoreConfig.vue
View file @
8efc218
...
...
@@ -6,15 +6,17 @@
园区店配置
</div>
<div
class=
"form_box"
>
<el-form
label-width=
"100px"
size=
"small"
>
<el-form
label-width=
"100px"
size=
"small"
>
<el-form-item
label=
"登录控制:"
>
<el-checkbox-group
v-model=
"loginControlList"
:min=
"1"
>
<el-checkbox
v-for=
"(item, index) in loginTypeList"
:key=
"index"
:label=
"item.id"
:disabled=
"item.disabled"
>
{{
item
.
name
}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item
label=
"支付方式:"
>
<el-checkbox-group
v-model=
"checkList"
@
change=
"onChange"
>
<el-checkbox
v-for=
"(item,index) in pageTypeList"
:key=
"index"
:label=
"item.id"
:disabled=
"item.disabled"
>
<el-checkbox-group
v-model=
"checkList"
@
change=
"onChange"
>
<el-checkbox
v-for=
"(item, index) in pageTypeList"
:key=
"index"
:label=
"item.id"
:disabled=
"item.disabled"
>
{{
item
.
name
}}
</el-checkbox>
</el-checkbox-group>
...
...
@@ -22,26 +24,19 @@
<el-form-item
label=
"模式:"
>
<!-- @change="typeOnChange" -->
<el-radio-group
v-model=
"businessModel"
>
<el-radio
v-for=
"(item,index) in manageTypeList"
:key=
"index"
:label=
"item.confId"
>
{{
item
.
confLabel
}}
</el-radio>
<el-radio
v-for=
"(item, index) in manageTypeList"
:key=
"index"
:label=
"item.confId"
>
{{
item
.
confLabel
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"安装服务商:"
>
<el-input
style=
"width:350px"
maxlength=
"50"
v-model
.
trim=
"installMerchantName"
></el-input>
<el-input
style=
"width:350px"
maxlength=
"50"
v-model
.
trim=
"installMerchantName"
></el-input>
</el-form-item>
<el-form-item
label=
"营销服务商:"
>
<el-input
style=
"width:350px"
maxlength=
"50"
v-model
.
trim=
"marketingMerchantName"
></el-input>
<el-input
style=
"width:350px"
maxlength=
"50"
v-model
.
trim=
"marketingMerchantName"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"saveInfo"
>
确认
</el-button>
<el-button
type=
"default"
@
click=
"goBack"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"saveInfo"
>
确认
</el-button>
<el-button
type=
"default"
@
click=
"goBack"
>
取消
</el-button>
</el-form-item>
</el-form>
</div>
...
...
@@ -66,10 +61,15 @@ export default {
{
id
:
1
,
name
:
'微信支付'
,
disabled
:
false
}
// { id: 4, name: '支付宝支付', disabled: false }
],
loginTypeList
:
[
{
id
:
0
,
name
:
'微信'
,
disabled
:
false
},
{
id
:
1
,
name
:
'企业微信'
,
disabled
:
false
}
],
checkList
:
[
0
],
manageTypeList
:
manageTypeList
,
businessModel
:
''
,
installMerchantName
:
''
,
loginControlList
:
[],
marketingMerchantName
:
''
}
},
...
...
@@ -87,10 +87,13 @@ export default {
this
.
businessModel
=
res
.
businessModel
this
.
installMerchantName
=
res
.
installMerchantName
||
''
this
.
marketingMerchantName
=
res
.
marketingMerchantName
||
''
this
.
loginControlList
=
res
.
loginControlList
||
[
0
,
1
]
this
.
onChange
(
this
.
checkList
)
})
},
onChangeByLogin
()
{
},
// 监听支付方式勾选
onChange
(
list
)
{
console
.
log
(
list
)
...
...
@@ -161,6 +164,7 @@ export default {
oParams
.
yqMerchantId
=
this
.
$route
.
query
.
yqMerchantId
oParams
.
supportPayTypes
=
this
.
checkList
oParams
.
businessModel
=
this
.
businessModel
oParams
.
loginControlList
=
this
.
loginControlList
UPDATEYQMERCHANTCONFIG
(
oParams
).
then
((
res
)
=>
{
console
.
log
(
res
)
...
...
@@ -182,6 +186,7 @@ export default {
padding-bottom
:
20px
;
font-weight
:
bold
;
}
.page_head
:after
{
position
:
absolute
;
display
:
block
;
...
...
@@ -192,6 +197,7 @@ export default {
right
:
0
;
bottom
:
0
;
}
.form_box
{
min-height
:
60vh
;
padding
:
40px
0
50px
0
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment