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
79ffbf0c
Commit
79ffbf0c
authored
Mar 01, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 新建群发-字段调整
parent
63214804
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
form.vue
src/views/wechat/form.vue
+17
-8
No files found.
src/views/wechat/form.vue
View file @
79ffbf0c
...
...
@@ -46,7 +46,7 @@
<el-button
size=
"small"
@
click=
"cancelFilter"
>
取 消
</el-button>
</div>
</div>
<vue-gic-confirm-people
v-show=
"info.memberType === 1"
sendType=
"wechat"
@
get-data=
"getConfirmData"
:list=
"memberList"
></vue-gic-confirm-people>
<vue-gic-confirm-people
v-show=
"info.memberType === 1"
sendType=
"wechat"
@
get-
all-
data=
"getConfirmData"
:list=
"memberList"
></vue-gic-confirm-people>
<vue-gic-member-group
v-bind=
"storeParams"
v-if=
"info.memberType === 2"
:defaltSelected=
"defaltSelected"
:height=
"500"
:projectName=
"projectName"
:headerList=
"headerList"
@
handleDataTransferred=
"handleDataTransferred"
@
handleDataLeft=
"handleDataLeft"
></vue-gic-member-group>
</section>
<section
class=
"dm-form__wrap"
v-if=
"$route.meta.type !== 'imgText'"
>
...
...
@@ -162,7 +162,7 @@ export default {
sendType
:
0
,
memberType
:
0
,
contentType
:
0
,
o
penIds
:
''
,
memberIdO
penIds
:
''
,
memberSearchDTO
:
''
,
memberGroupIds
:
''
,
imageTextId
:
''
,
...
...
@@ -234,7 +234,6 @@ export default {
this
.
info
.
sendType
=
result
.
sendType
;
this
.
info
.
contentType
=
result
.
contentType
;
this
.
info
.
memberType
=
result
.
memberType
;
this
.
info
.
openIds
=
this
.
info
.
memberType
===
1
?
res
.
result
.
openIds
:
''
;
this
.
info
.
imageTextId
=
result
.
imageTextId
||
''
;
this
.
info
.
imageTextWechatId
=
result
.
imageTextWechatId
||
''
;
this
.
info
.
wechatTextId
=
result
.
wechatTextId
||
''
;
...
...
@@ -250,6 +249,16 @@ export default {
this
.
info
.
memberSearchDTO
=
result
.
searchParams
;
}
else
if
(
this
.
info
.
memberType
===
1
)
{
this
.
memberList
=
res
.
result
.
memberList
;
if
(
res
.
result
.
memberIdOpenIds
)
{
this
.
info
.
memberIdOpenIds
=
res
.
result
.
memberIdOpenIds
;
}
else
{
// 兼容老数据,并将老数据转成memberId&openId,memberId&openId的格式
const
openIds
=
typeof
res
.
result
.
openIds
==
'string'
?
res
.
result
.
openIds
.
split
(
','
)
:
[];
this
.
info
.
memberIdOpenIds
=
res
.
result
.
memberList
.
filter
(
el
=>
openIds
.
includes
(
el
.
openId
))
.
map
(
el
=>
`
${
el
.
memberId
}
&
${
el
.
openId
}
`
)
.
join
(
','
);
}
}
else
if
(
this
.
info
.
memberType
===
2
)
{
this
.
defaltSelected
=
res
.
result
.
tagGroupList
||
[];
this
.
handleDataTransferred
(
res
.
result
.
tagGroupList
||
[]);
...
...
@@ -323,13 +332,13 @@ export default {
this
.
$tips
({
type
:
'warning'
,
message
:
'预览只能选择指定会员发送'
});
return
;
}
if
(
!
this
.
info
.
openIds
||
this
.
info
.
o
penIds
.
split
(
','
).
length
!==
1
)
{
if
(
!
this
.
info
.
memberIdOpenIds
||
this
.
info
.
memberIdO
penIds
.
split
(
','
).
length
!==
1
)
{
this
.
$tips
({
type
:
'warning'
,
message
:
'请选择一个指定会员发送'
});
return
;
}
}
else
if
(
type
===
2
)
{
// 直接提交群发
if
(
this
.
info
.
memberType
===
1
&&
!
this
.
info
.
o
penIds
)
{
if
(
this
.
info
.
memberType
===
1
&&
!
this
.
info
.
memberIdO
penIds
)
{
this
.
$tips
({
type
:
'warning'
,
message
:
'指定会员不能为空'
});
return
;
}
...
...
@@ -378,7 +387,7 @@ export default {
}
//memberType 0:会员筛选 不传; memberType 1:指定会员, 多个会员memberId由逗号隔开
if
(
this
.
info
.
memberType
)
{
params
.
openIds
=
this
.
info
.
o
penIds
;
params
.
memberIdOpenIds
=
this
.
info
.
memberIdO
penIds
;
}
if
(
this
.
info
.
contentType
===
0
)
{
params
.
imageTextId
=
this
.
info
.
imageTextId
;
...
...
@@ -487,7 +496,7 @@ export default {
}
//memberType 0:会员筛选 不传; memberType 1:指定会员, 多个会员memberId由逗号隔开
if
(
this
.
info
.
memberType
)
{
params
.
openIds
=
this
.
info
.
o
penIds
;
params
.
memberIdOpenIds
=
this
.
info
.
memberIdO
penIds
;
}
if
(
this
.
info
.
contentType
===
0
)
{
params
.
imageTextId
=
this
.
info
.
imageTextId
;
...
...
@@ -565,7 +574,7 @@ export default {
},
//获取指定会员
getConfirmData
(
val
)
{
this
.
info
.
openIds
=
val
;
this
.
info
.
memberIdOpenIds
=
(
val
||
[]).
map
(
el
=>
`
${
el
.
memberId
}
&
${
el
.
openId
}
`
).
join
(
','
)
;
},
handleDataTransferred
(
data
)
{
// 会员分组 情况下 memberSearchDTO 传数组字符串
...
...
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