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
3ccbe4da
Commit
3ccbe4da
authored
Apr 08, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: dist
parent
4bca5315
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
60 deletions
+10
-60
activeTime.vue
src/views/ai/task/components/activeTime.vue
+5
-2
defineTime.vue
src/views/ai/task/components/defineTime.vue
+1
-1
holidayActiveTime.vue
src/views/ai/task/components/holidayActiveTime.vue
+1
-55
form.vue
src/views/ai/task/form.vue
+3
-2
No files found.
src/views/ai/task/components/activeTime.vue
View file @
3ccbe4da
...
...
@@ -10,7 +10,7 @@
</div>
<defineTime
v-show=
"form.callFlag == 1"
ref=
"defineTime"
:data=
"form.callTime"
/>
</el-form-item>
<el-form-item
label=
"活动有效期"
required
>
<el-form-item
label=
"活动有效期"
required
prop=
"activeTime"
>
<el-date-picker
value-format=
"timestamp"
format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
@
blur=
"minTime = maxTime = null"
v-model=
"form.activeTime"
@
change=
"handleDateChange"
type=
"daterange"
placeholder=
"请选择生日范围"
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
<span
class=
"tips"
>
由于外呼线路有限,为保证外呼触达率,建议外呼时间周期不小于5天
</span>
</el-form-item>
...
...
@@ -51,7 +51,9 @@ export default {
}
}
},
rules
:
{}
rules
:
{
activeTime
:
{
required
:
true
,
message
:
'活动有效期不能为空'
}
}
};
},
props
:
{
...
...
@@ -97,6 +99,7 @@ export default {
});
}
this
.
$refs
.
form
.
validate
(
val
=>
{
console
.
log
(
val
);
if
(
val
)
{
const
{
callFlag
,
callTime
,
activeTime
}
=
this
.
form
;
const
obj
=
{
...
...
src/views/ai/task/components/defineTime.vue
View file @
3ccbe4da
...
...
@@ -117,7 +117,7 @@ export default {
return
(
rule
,
value
,
callback
)
=>
{
if
(
!
endTime
)
{
callback
(
new
Error
(
' '
));
}
else
if
(
endTime
<
startTime
)
{
}
else
if
(
endTime
<
=
startTime
)
{
callback
(
new
Error
(
'结束时间要大于开始时间'
));
}
else
{
this
.
$refs
.
defineTime
.
clearValidate
(
'timeRangeList.'
+
i
+
'.startTime'
);
...
...
src/views/ai/task/components/holidayActiveTime.vue
View file @
3ccbe4da
...
...
@@ -102,61 +102,7 @@ export default {
holiday_date1
:
{
validator
:
holiday_date1
},
holiday_date2
:
{
validator
:
holiday_date2
}
},
holidayData
:
[
{
id
:
'S'
,
//节日分类ID
name
:
''
,
//节日分类名称
holidaysList
:
[
{
id
:
'1'
,
// 节日配置ID
name
:
'妇女节'
,
//节日配置名称
date
:
'2020-03-08'
//节日配置日期
},
{
id
:
'2'
,
// 节日配置ID
name
:
'618'
,
//节日配置名称
date
:
'2020-06-18'
//节日配置日期
},
{
id
:
'3'
,
// 节日配置ID
name
:
'端午节端午节端午'
,
//节日配置名称
date
:
'2020-10-01'
//节日配置日期
}
]
},
{
id
:
'A'
,
//节日分类ID
name
:
''
,
//节日分类名称
holidaysList
:
[
{
id
:
'4'
,
// 节日配置ID
name
:
'端午节'
,
//节日配置名称
date
:
'2020-05-05'
//节日配置日期
},
{
id
:
'5'
,
// 节日配置ID
name
:
'中秋节'
,
//节日配置名称
date
:
'2020-07-15'
//节日配置日期
},
{
id
:
'6'
,
// 节日配置ID
name
:
'愚人节'
,
//节日配置名称
date
:
'2020-04-01'
//节日配置日期
}
]
},
{
id
:
'B'
,
//节日分类ID
name
:
''
,
//节日分类名称
holidaysList
:
[
{
id
:
'7'
,
// 节日配置ID
name
:
'元宵节'
,
//节日配置名称
date
:
'2020-01-01'
//节日配置日期
}
]
}
],
holidayData
:
[],
selectedData
:
''
,
visible
:
false
,
pickerOptions
:
{
...
...
src/views/ai/task/form.vue
View file @
3ccbe4da
...
...
@@ -32,7 +32,7 @@
<el-radio
:label=
"1"
>
客户分组
</el-radio>
</el-radio-group>
<div>
<div
class=
"tips"
style=
"margin:0 0 12px 0; "
v-if=
"form.memberType == 0"
>
{{
this
.
form
.
s
enc
e
==
3
?
'默认为全部未添加企微好友的客户'
:
'默认为权限范围内的全部客户'
}}
</div>
<div
class=
"tips"
style=
"margin:0 0 12px 0; "
v-if=
"form.memberType == 0"
>
{{
this
.
form
.
s
cen
e
==
3
?
'默认为全部未添加企微好友的客户'
:
'默认为权限范围内的全部客户'
}}
</div>
<el-button
v-if=
"form.memberType == 0 && !memberCrowdWidgetId && form.scene != 4"
size=
"small"
@
click=
"ruleVisible = true"
>
添加其他条件
</el-button>
<ruleFilter
v-show=
"form.memberType == 0 && form.scene != 4"
:visiable
.
sync=
"ruleVisible"
@
save=
"handleRuleFilterSave"
:memberCrowdWidgetId=
"memberCrowdWidgetId"
/>
<el-button
v-if=
"form.memberType == 1 && !selectedGroupIds"
size=
"small"
@
click=
"groupVisible = true"
>
添加分组
</el-button>
...
...
@@ -386,7 +386,7 @@ export default {
templateOptions
:
[],
//话术模板下拉
rules
:
{
activityName
:
{
required
:
true
,
message
:
'活动名称不能为空'
},
aiTemplateId
:
{
required
:
true
,
message
:
'
活动名称
不能为空'
},
aiTemplateId
:
{
required
:
true
,
message
:
'
话术模板
不能为空'
},
analyseDays
:
{
required
:
true
,
message
:
'分析天数不能为空'
},
analyseAmount
:
{
required
:
true
,
message
:
'活动目标不能为空'
},
memberType
:
{
required
:
true
,
validator
:
memberType
}
...
...
@@ -581,6 +581,7 @@ export default {
},
async
submit
()
{
const
activeTimeData
=
await
this
.
$refs
[
`activeTime
${[
1
,
2
].
includes
(
this
.
form
.
scene
)
?
this
.
form
.
scene
:
''
}
`
].
submit
();
console
.
log
(
activeTimeData
);
if
(
!
activeTimeData
)
return
;
const
{
startDate
,
endDate
,
callFlag
,
callTime
,
birth_type
,
birth_days
,
holiday_date
,
holiday_type
,
holiday_name
}
=
activeTimeData
;
...
...
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