Commit 3ccbe4da by crushh

update: dist

parent 4bca5315
......@@ -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 = {
......
......@@ -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');
......
......@@ -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: {
......
......@@ -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.sence == 3 ? '默认为全部未添加企微好友的客户' : '默认为权限范围内的全部客户' }}</div>
<div class="tips" style="margin:0 0 12px 0; " v-if="form.memberType == 0">{{ this.form.scene == 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment