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
6862d691
Commit
6862d691
authored
Jul 08, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 短信模板
parent
8fe1f0f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
lib-qfxx.vue
src/views/ecm/marketing-event/components/lib-qfxx.vue
+14
-16
No files found.
src/views/ecm/marketing-event/components/lib-qfxx.vue
View file @
6862d691
...
...
@@ -53,8 +53,8 @@
<el-radio
:label=
"1"
style=
"margin-right:0"
>
开启
</el-radio>
<el-radio
:label=
"0"
style=
"margin-left:20px"
>
不开启
</el-radio>
</el-radio-group>
<div
class=
"tips"
>
开启则
当发送对象失败时将支持选择其他方式完成任务,反之则判定任务失败
</div>
<div
class=
"tips"
>
(
注:群发失败人群为该计划所选人群中非群发任务所选企业的企微好友
)
</div>
<div
class=
"tips"
>
开启则
可针对群发任务下发失败的人群进行其他方式的营销
</div>
<div
class=
"tips"
>
(
所选人群中非企业企微好友的,群发任务会下发失败
)
</div>
<div
ref=
"task"
v-if=
"form.failSetting == 1"
>
<div
class=
"task-wrapper"
style=
"margin-top:16px;padding-top:14px;"
>
<el-row
style=
"margin-bottom:12px"
type=
"flex"
align=
"middle"
justify=
"space-between"
>
...
...
@@ -72,7 +72,7 @@
<div
class=
"task-wrapper"
style=
"margin-top:16px;padding-top:14px;"
>
<el-row
style=
"margin-bottom:12px"
type=
"flex"
align=
"middle"
justify=
"space-between"
>
<el-checkbox
label=
"短信"
style=
"margin-bottom:0"
:value=
"form.smsFlag"
:true-label=
"1"
:false-label=
"0"
:disabled=
"readOnly"
@
change=
"onChangeSms"
></el-checkbox>
<el-button
v-if=
"form.gicSmsTemplateId && !readOnly"
type=
"text"
@
click=
"
openDialog('smsTemplate')
"
>
重新选择
</el-button>
<el-button
v-if=
"form.gicSmsTemplateId && !readOnly"
type=
"text"
@
click=
"
messageDialogShow = true
"
>
重新选择
</el-button>
</el-row>
<div
style=
"margin-bottom:14px"
v-if=
"form.gicSmsTemplateId"
>
<div
class=
"teltask-title"
style=
"font-size:16px;color:#303133"
>
{{ sms.title }}
<
template
v-if=
"form.gicSmsTemplateId == -1"
>
( 短信模板已删除 )
</
template
></div>
...
...
@@ -88,15 +88,15 @@
</
template
>
</el-dialog>
<lib-teltask
:item=
"telTaskItem"
:show
.
sync=
"teltaskDialogShow"
@
sendItem=
"addTeltask"
></lib-teltask>
<
template
-dialog
ref=
"template-dialog"
@
sendItem=
"onInsertTemplate"
></template-dialog
>
<
lib-message
v-if=
"messageDialogShow"
:show
.
sync=
"messageDialogShow"
@
sendItem=
"onInsertTemplate"
></lib-message
>
<dm-material
:visible
.
sync=
"materialVisible"
:types=
"[1, 2, 3, 4, 6]"
@
select=
"onSelectMaterial"
:wx-enterprise-id=
"form.qfxxEnterpriseId"
projectName=
"marketing"
:material-ids=
"materials.map(el => el.relation_id)"
:disableTypes=
"disableTypes"
></dm-material>
</div>
</template>
<
script
>
import
{
getEntepriseList
}
from
'../assets/api'
;
import
MaterialItem
from
'./material-item'
;
import
TemplateDialog
from
'./qywx-dialog
'
;
import
MaterialItem
from
'./material-item
.vue
'
;
import
LibMessage
from
'./lib-Message.vue
'
;
import
LibTeltask
from
'./lib-teltask.vue'
;
export
default
{
...
...
@@ -119,7 +119,7 @@ export default {
},
components
:
{
MaterialItem
,
TemplateDialog
,
LibMessage
,
LibTeltask
},
data
()
{
...
...
@@ -150,7 +150,8 @@ export default {
showPopover
:
false
,
telTaskItem
:
{},
teltaskDialogShow
:
false
,
sms
:
{}
sms
:
{},
messageDialogShow
:
false
};
},
created
()
{
...
...
@@ -169,17 +170,14 @@ export default {
onInsertTemplate
(
item
)
{
console
.
log
(
item
);
this
.
sms
=
{
title
:
item
.
value
.
title
,
content
:
item
.
value
.
originalContent
title
:
item
.
title
,
content
:
item
.
originalContent
};
this
.
form
.
gicSmsTemplateId
=
item
.
value
.
gicSmsTemplateId
;
this
.
form
.
gicSmsTemplateId
=
item
.
gicSmsTemplateId
;
this
.
form
.
smsFlag
=
1
;
this
.
messageDialogShow
=
false
;
this
.
onChangeFailSetting
(
true
);
},
openDialog
(
type
)
{
// type: reduceLink 压缩链接,transferLink 小程序链接,smsTemplate 短信模板
this
.
$refs
[
'template-dialog'
][
type
].
show
=
true
;
},
openMaterialDialog
()
{
if
(
!
this
.
form
.
qfxxEnterpriseId
)
{
return
this
.
$message
.
warning
(
'请选择企业'
);
...
...
@@ -281,7 +279,7 @@ export default {
},
onChangeSms
(
val
)
{
if
(
val
&&
!
this
.
form
.
gicSmsTemplateId
)
{
this
.
openDialog
(
'smsTemplate'
)
;
this
.
messageDialogShow
=
true
;
}
else
{
this
.
form
.
smsFlag
=
val
;
}
...
...
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