Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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-3
Commits
f0103fa2
Commit
f0103fa2
authored
Jun 15, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 客户展示设置
parent
4fc12a0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
add-member-show-rules.vue
src/views/apps/customerApp/add-member-show-rules.vue
+2
-2
No files found.
src/views/apps/customerApp/add-member-show-rules.vue
View file @
f0103fa2
...
...
@@ -117,12 +117,12 @@ export default {
errMsg
.
errorMsg
(
res
.
data
);
return
;
}
// storeType = -
1
时为通用策略
// storeType = -
999
时为通用策略
// 通用策略不能修改门店类型
if
(
this
.
myCustomData
.
storeType
.
includes
(
'-999'
))
return
;
if
(
Array
.
isArray
(
result
))
{
this
.
selectedTypes
=
result
.
reduce
((
types
,
el
)
=>
{
if
(
typeof
el
.
storeType
==
'string'
&&
el
.
memberManageSettingId
!=
this
.
myCustomData
.
memberManageSettingId
)
{
if
(
typeof
el
.
storeType
==
'string'
&&
el
.
memberManageSettingId
!=
this
.
myCustomData
.
memberManageSettingId
&&
el
.
storeType
!=
'-999'
)
{
let
storeTypes
=
el
.
storeType
.
split
(
','
);
storeTypes
=
storeTypes
.
filter
(
el
=>
!
types
.
includes
(
el
));
types
=
types
.
concat
(
storeTypes
);
...
...
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