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
fca00576
Commit
fca00576
authored
May 24, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 客户展示设置
parent
45a2fab9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
add-member-show-rules.vue
src/views/apps/customerApp/add-member-show-rules.vue
+14
-3
No files found.
src/views/apps/customerApp/add-member-show-rules.vue
View file @
fca00576
...
@@ -110,6 +110,12 @@ export default {
...
@@ -110,6 +110,12 @@ export default {
errMsg
.
errorMsg
(
res
.
data
);
errMsg
.
errorMsg
(
res
.
data
);
return
;
return
;
}
}
this
.
$nextTick
(()
=>
{
this
.
rules
.
storeType
.
trigger
=
'change'
;
});
// storeType = -1时为通用策略
// 通用策略不能修改门店类型
if
(
this
.
myCustomData
.
storeType
.
includes
(
'-1'
))
return
;
if
(
Array
.
isArray
(
result
))
{
if
(
Array
.
isArray
(
result
))
{
this
.
selectedTypes
=
result
.
reduce
((
types
,
el
)
=>
{
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
)
{
...
@@ -120,14 +126,12 @@ export default {
...
@@ -120,14 +126,12 @@ export default {
return
types
;
return
types
;
},
[]);
},
[]);
this
.
myCustomData
.
storeType
=
this
.
myCustomData
.
storeType
.
concat
(
this
.
selectedTypes
);
this
.
myCustomData
.
storeType
=
this
.
myCustomData
.
storeType
.
concat
(
this
.
selectedTypes
);
this
.
$nextTick
(()
=>
{
this
.
rules
.
storeType
.
trigger
=
'change'
;
});
}
}
});
});
},
},
onSave
()
{
onSave
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
onOptionsChange
();
this
.
$refs
.
myCustomData
.
validate
(
vali
=>
{
this
.
$refs
.
myCustomData
.
validate
(
vali
=>
{
if
(
!
vali
)
{
if
(
!
vali
)
{
this
.
loading
=
false
;
this
.
loading
=
false
;
...
@@ -167,6 +171,13 @@ export default {
...
@@ -167,6 +171,13 @@ export default {
showFreezeFlag
,
showFreezeFlag
,
isSeeAuthMember
isSeeAuthMember
});
});
// storeType = -1时为通用策略
// 通用策略不能修改门店类型
if
(
storeType
==
-
'1'
)
{
this
.
selectedTypes
=
this
.
storeTypes
.
map
(
el
=>
el
.
value
);
this
.
myCustomData
.
storeType
=
this
.
storeTypes
.
map
(
el
=>
el
.
value
);
this
.
myCustomData
.
storeType
.
push
(
'-1'
);
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
rules
.
options
.
trigger
=
'change'
;
this
.
rules
.
options
.
trigger
=
'change'
;
});
});
...
...
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