Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
marketing-web
marketing
Commits
fe0fd4c4
Commit
fe0fd4c4
authored
May 24, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 判断失效
parent
eed1395e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
ecm.js
src/router/modules/ecm.js
+1
-0
form.js
src/views/ecm/form.js
+7
-3
No files found.
src/router/modules/ecm.js
View file @
fe0fd4c4
...
...
@@ -18,6 +18,7 @@ export default {
name
:
'智能营销新增'
,
component
:
()
=>
import
(
/* webpackChunkName: "ecm" */
'../../views/ecm/form.vue'
),
meta
:
{
type
:
'copy'
,
path
:
'/ecm/list'
}
},
...
...
src/views/ecm/form.js
View file @
fe0fd4c4
...
...
@@ -118,7 +118,7 @@ export default {
isEdit
:
this
.
$route
.
meta
.
type
===
'edit'
,
isAdd
:
this
.
$route
.
meta
.
type
===
'add'
||
this
.
$route
.
meta
.
type
===
'copy'
,
isInfo
:
this
.
$route
.
meta
.
type
===
'info'
,
isCopy
:
this
.
$route
.
meta
.
copy
===
'copy'
,
isCopy
:
this
.
$route
.
meta
.
type
===
'copy'
,
isInit
:
this
.
$route
.
meta
.
type
===
'add'
,
// 人群筛选器可传参数
sceneValue
:
'member'
,
// 场景值
...
...
@@ -708,8 +708,12 @@ export default {
}
}
if
(
this
.
isCopy
)
{
if
(
this
.
form
.
memberType
===
1
&&
this
.
form
.
memberGroupIds
.
some
(
el
=>
'effectiveStatus'
in
el
&&
el
.
effectiveStatus
===
0
))
{
return
this
.
$tips
({
type
:
'warning'
,
message
:
'所选的会员分组中,有失效的会员分组,请先将失效分组删除后再保存。'
});
if
(
this
.
form
.
memberType
===
1
)
{
let
loseMemberIds
=
this
.
defaltSelected
.
filter
(
el
=>
'effectiveStatus'
in
el
&&
el
.
effectiveStatus
===
0
).
map
(
el
=>
el
.
memberTagGroupId
);
let
selectedIds
=
this
.
form
.
memberGroupIds
.
split
(
','
);
if
(
loseMemberIds
.
some
(
el
=>
selectedIds
.
includes
(
el
)))
{
return
this
.
$tips
({
type
:
'warning'
,
message
:
'所选的会员分组中,有失效的会员分组,请先将失效分组删除后再保存。'
});
}
}
if
(
this
.
$refs
.
marketingEvent
.
hasDeleted
)
{
return
this
.
$tips
({
type
:
'warning'
,
message
:
'所选的营销事件中,存在已失效或被删除模板的营销事件,请先将失效的营销事件删除后再保存!'
});
...
...
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