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
84cdcb62
Commit
84cdcb62
authored
Apr 22, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 任务规则
parent
c1107728
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
lib-qywx.vue
src/views/ecm/marketing-event/components/lib-qywx.vue
+22
-6
No files found.
src/views/ecm/marketing-event/components/lib-qywx.vue
View file @
84cdcb62
...
...
@@ -147,6 +147,12 @@ import { getEntepriseList } from '../assets/api';
import
TemplateDialog
from
'./qywx-dialog'
;
import
MaterialItem
from
'./material-item'
;
const
ruleMap
=
{
1
:
'专属导购'
,
2
:
'最近消费导购'
,
3
:
'服务门店店长'
};
export
default
{
name
:
'lib-qywx'
,
props
:
{
...
...
@@ -214,6 +220,7 @@ export default {
qywxEnterpriseId
:
''
,
qywxEnterpriseName
:
''
,
remark
:
''
,
clerkRule
:
'1,2,3'
,
title
:
''
,
expireDays
:
1
,
telFlag
:
0
,
...
...
@@ -222,6 +229,13 @@ export default {
chatContent
:
null
,
smsContent
:
null
};
this
.
ecmMarketingTypeRelationId
=
''
;
this
.
materials
=
[];
this
.
ruleList
=
[
{
key
:
1
,
value
:
'专属导购'
},
{
key
:
2
,
value
:
'最近消费导购'
},
{
key
:
3
,
value
:
'服务门店店长'
}
];
this
.
step
=
0
;
this
.
$refs
.
form
.
resetFields
();
this
.
$emit
(
'update:show'
,
false
);
...
...
@@ -250,13 +264,13 @@ export default {
if
(
qywx
.
chatFlag
==
0
)
{
qywx
.
chatContent
=
null
;
}
qywx
.
clerkRule
=
this
.
ruleList
.
map
(
el
=>
el
.
key
).
join
();
this
.
$emit
(
'sendItem'
,
{
title
:
this
.
form
.
title
,
qywx
,
comName
:
'qywx'
,
ecmMarketingTypeRelationId
:
this
.
ecmMarketingTypeRelationId
});
this
.
close
();
},
async
onNext
()
{
let
valid
=
await
this
.
$refs
.
form
.
validate
();
if
(
valid
)
{
this
.
form
.
clerkRule
=
this
.
ruleList
.
map
(
el
=>
el
.
key
).
join
();
this
.
step
=
1
;
}
},
...
...
@@ -322,16 +336,18 @@ export default {
if
(
this
.
item
.
qywx
[
key
]
!==
undefined
)
{
this
.
form
[
key
]
=
this
.
item
.
qywx
[
key
];
}
if
(
this
.
item
.
qywx
.
chatContent
)
{
this
.
materials
=
JSON
.
parse
(
this
.
item
.
qywx
.
chatContent
||
'[]'
);
}
}
if
(
this
.
item
.
qywx
&&
this
.
item
.
qywx
.
chatContent
)
{
this
.
materials
=
JSON
.
parse
(
this
.
item
.
qywx
.
chatContent
||
'[]'
);
}
this
.
ruleList
=
this
.
item
.
qywx
.
clerkRule
.
split
(
','
).
map
(
el
=>
({
key
:
parseInt
(
el
),
value
:
ruleMap
[
el
]
}));
this
.
form
.
title
=
this
.
item
.
title
;
this
.
ecmMarketingTypeRelationId
=
this
.
item
.
ecmMarketingTypeRelationId
;
}
else
{
this
.
isEdit
=
false
;
this
.
ecmMarketingTypeRelationId
=
''
;
this
.
materials
=
[];
}
},
immediate
:
true
,
...
...
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