Commit 8fe1f0f8 by 黑潮

update: 优化

parent 5e19b763
......@@ -49,13 +49,13 @@
</div>
</el-form-item>
<el-form-item class="is-required" label="群发失败设置">
<el-radio-group :disabled="readOnly" v-model="form.failSetting">
<el-radio-group :disabled="readOnly" v-model="form.failSetting" @change="onChangeFailSetting">
<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>
<template v-if="form.failSetting == 1">
<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">
<el-checkbox label="话务" style="margin-bottom:0" :value="form.telFlag" :true-label="1" :false-label="0" :disabled="readOnly" @change="onChangeTelTask"></el-checkbox>
......@@ -79,7 +79,7 @@
<div v-if="form.gicSmsTemplateId != -1" style="margin-top:12px;color:#606266">{{ sms.content }}</div>
</div>
</div>
</template>
</div>
</el-form-item>
</el-form>
<template v-if="!readOnly" slot="footer">
......@@ -157,6 +157,15 @@ export default {
this.getEntepriseList();
},
methods: {
onChangeFailSetting(flag) {
if (flag) {
this.$nextTick(() => {
if (this.$refs.task) {
this.$refs.task.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'nearest' });
}
});
}
},
onInsertTemplate(item) {
console.log(item);
this.sms = {
......@@ -165,6 +174,7 @@ export default {
};
this.form.gicSmsTemplateId = item.value.gicSmsTemplateId;
this.form.smsFlag = 1;
this.onChangeFailSetting(true);
},
openDialog(type) {
// type: reduceLink 压缩链接,transferLink 小程序链接,smsTemplate 短信模板
......@@ -290,6 +300,7 @@ export default {
lateDays: item.lateDays
};
this.form.telFlag = 1;
this.onChangeFailSetting(true);
}
},
computed: {
......
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