Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
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
haoban-4
Commits
bbb60936
Commit
bbb60936
authored
Aug 12, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改授权判断
parent
c476f867
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
store-auth-dialog.vue
src/components/company/store-auth-dialog.vue
+1
-2
new-auth-merchant.vue
src/views/business/new-auth-merchant.vue
+7
-7
edit-admin.vue
src/views/enterprise/edit-admin.vue
+2
-2
No files found.
src/components/company/store-auth-dialog.vue
View file @
bbb60936
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-08-1
0 11:20:20
* @LastEditTime: 2020-08-1
2 17:57:01
-->
-->
<!--
<!--
授权选择门店绑定弹窗
授权选择门店绑定弹窗
...
@@ -128,7 +128,6 @@ export default {
...
@@ -128,7 +128,6 @@ export default {
*/
*/
checkGroupIds
:
function
(
nodes
)
{
checkGroupIds
:
function
(
nodes
)
{
const
that
=
this
;
const
that
=
this
;
console
.
log
(
nodes
);
// that.selectGroupData = JSON.parse(JSON.stringify(nodes));
// that.selectGroupData = JSON.parse(JSON.stringify(nodes));
that
.
formData
.
selectList
=
JSON
.
parse
(
JSON
.
stringify
(
nodes
));
that
.
formData
.
selectList
=
JSON
.
parse
(
JSON
.
stringify
(
nodes
));
},
},
...
...
src/views/business/new-auth-merchant.vue
View file @
bbb60936
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-08-12 1
6:09
:16
* @LastEditTime: 2020-08-12 1
7:56
:16
-->
-->
<
template
>
<
template
>
<div
class=
"my-customer-wrap common-set-wrap"
>
<div
class=
"my-customer-wrap common-set-wrap"
>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"门店绑定"
prop=
"bindRange"
>
<el-form-item
label=
"门店绑定"
prop=
"bindRange"
>
<div
class=
"el-select store-item-content"
@
click=
"showStore(1)"
>
<div
class=
"el-select store-item-content"
@
click=
"showStore(1)"
>
<div
v-if=
"authForm.bindStoreMode
!=
0"
class=
"el-select__tags"
>
<div
v-if=
"authForm.bindStoreMode
>
0"
class=
"el-select__tags"
>
<span
style=
"display:block;"
>
<span
style=
"display:block;"
>
<
template
v-for=
"(item, index) in authForm.bindRange"
>
<
template
v-for=
"(item, index) in authForm.bindRange"
>
<span
class=
"el-tag el-tag--info el-tag--small"
:key=
"index+'bind'"
>
<span
class=
"el-tag el-tag--info el-tag--small"
:key=
"index+'bind'"
>
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"门店共享"
prop=
"shareRange"
>
<el-form-item
label=
"门店共享"
prop=
"shareRange"
>
<div
class=
"el-select store-item-content"
@
click=
"showStore(2)"
>
<div
class=
"el-select store-item-content"
@
click=
"showStore(2)"
>
<div
v-if=
"authForm.shareStoreMode
!=
0"
class=
"el-select__tags"
>
<div
v-if=
"authForm.shareStoreMode
>
0"
class=
"el-select__tags"
>
<span
style=
"display:block; "
>
<span
style=
"display:block; "
>
<
template
v-for=
"(item, index) in authForm.shareRange"
>
<
template
v-for=
"(item, index) in authForm.shareRange"
>
<span
class=
"el-tag el-tag--info el-tag--small"
:key=
"index+'bind'"
>
<span
class=
"el-tag el-tag--info el-tag--small"
:key=
"index+'bind'"
>
...
@@ -299,11 +299,11 @@ export default {
...
@@ -299,11 +299,11 @@ export default {
const
para
=
{
const
para
=
{
enterpriseId
:
that
.
authForm
.
enterpriseId
,
enterpriseId
:
that
.
authForm
.
enterpriseId
,
wxEnterpriseId
:
that
.
wxEnterpriseId
,
wxEnterpriseId
:
that
.
wxEnterpriseId
,
shareRange
:
that
.
authForm
.
shareStoreMode
!=
0
?
that
.
authForm
.
shareStoreMode
==
1
?
that
.
authForm
.
shareRange
.
map
(
ele
=>
ele
.
storeGroupId
).
join
(
','
)
:
that
.
authForm
.
shareRange
.
map
(
ele
=>
ele
.
storeInfoId
).
join
(
','
)
:
''
,
shareRange
:
that
.
authForm
.
shareStoreMode
>
0
?
that
.
authForm
.
shareStoreMode
==
1
?
that
.
authForm
.
shareRange
.
map
(
ele
=>
ele
.
storeGroupId
).
join
(
','
)
:
that
.
authForm
.
shareRange
.
map
(
ele
=>
ele
.
storeInfoId
).
join
(
','
)
:
''
,
bindRange
:
that
.
authForm
.
bindStoreMode
!=
0
?
that
.
authForm
.
bindStoreMode
==
1
?
that
.
authForm
.
bindRange
.
map
(
ele
=>
ele
.
storeGroupId
).
join
(
','
)
:
that
.
authForm
.
bindRange
.
map
(
ele
=>
ele
.
storeInfoId
).
join
(
','
)
:
''
,
bindRange
:
that
.
authForm
.
bindStoreMode
>
0
?
that
.
authForm
.
bindStoreMode
==
1
?
that
.
authForm
.
bindRange
.
map
(
ele
=>
ele
.
storeGroupId
).
join
(
','
)
:
that
.
authForm
.
bindRange
.
map
(
ele
=>
ele
.
storeInfoId
).
join
(
','
)
:
''
,
auditReason
:
that
.
authForm
.
auditReason
,
auditReason
:
that
.
authForm
.
auditReason
,
shareStoreMode
:
!
that
.
authForm
.
shareRange
.
length
&&
that
.
authForm
.
shareStoreMode
!=
0
?
''
:
String
(
that
.
authForm
.
shareStoreMode
),
// 0 全部 1部分分组 2 部分门店
shareStoreMode
:
!
that
.
authForm
.
shareRange
.
length
&&
that
.
authForm
.
shareStoreMode
>
0
?
''
:
String
(
that
.
authForm
.
shareStoreMode
),
// 0 全部 1部分分组 2 部分门店
bindStoreMode
:
!
that
.
authForm
.
bindRange
.
length
&&
that
.
authForm
.
bindStoreMode
!=
0
?
''
:
String
(
that
.
authForm
.
bindStoreMode
),
bindStoreMode
:
!
that
.
authForm
.
bindRange
.
length
&&
that
.
authForm
.
bindStoreMode
>
0
?
''
:
String
(
that
.
authForm
.
bindStoreMode
),
auditorName
:
that
.
auditorName
auditorName
:
that
.
auditorName
}
}
postEnterpriseAuth
(
para
)
postEnterpriseAuth
(
para
)
...
...
src/views/enterprise/edit-admin.vue
View file @
bbb60936
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-08-1
1 09:15:08
* @LastEditTime: 2020-08-1
2 18:11:27
-->
-->
<
template
>
<
template
>
<div
class=
"my-customer-wrap common-set-wrap"
>
<div
class=
"my-customer-wrap common-set-wrap"
>
...
@@ -275,7 +275,7 @@ export default {
...
@@ -275,7 +275,7 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
!!
res
.
result
&&
!!
res
.
result
.
length
)
{
if
(
!!
res
.
result
&&
!!
res
.
result
.
length
)
{
res
.
result
.
forEach
(
ele
=>
{
res
.
result
.
forEach
(
ele
=>
{
ele
.
radio
=
(
ele
.
bindStoreMode
==
null
||
ele
.
bindStoreMode
===
''
)
&&
(
ele
.
bindRange
==
'[]'
||
ele
.
bindRange
==
''
)
?
'2'
:
'1'
;
ele
.
radio
=
(
ele
.
bindStoreMode
==
null
||
ele
.
bindStoreMode
===
''
)
&&
(
ele
.
bindRange
==
'[]'
||
ele
.
bindRange
==
''
)
||
ele
.
bindStoreMode
==
-
1
?
'2'
:
'1'
;
if
(
!!
ele
.
bindRange
)
{
if
(
!!
ele
.
bindRange
)
{
ele
.
bindRange
=
JSON
.
parse
(
ele
.
bindRange
);
ele
.
bindRange
=
JSON
.
parse
(
ele
.
bindRange
);
}
else
{
}
else
{
...
...
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