|
|
@@ -2663,6 +2663,12 @@ export default {
|
|
|
this.addTag.splice(contentIndex, 1)
|
|
|
},
|
|
|
addSetting() {
|
|
|
+ // 当 sendType == 4 时,限制最多添加7天
|
|
|
+ if (this.form.sendType == 4 && this.setting.length >= 7) {
|
|
|
+ this.$message.warning('新客对话消息,最多只能添加7天');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
let content = [{type: this.defaultContentType, contentType: '1', setting: [{contentType: '1', value: "",}],isAtAll: '0'}];
|
|
|
if (this.form.sendType == 4) {
|
|
|
content = [{type: 2, contentType: '1', setting: [{contentType: '1', value: "", onlyUnregistered: '3'}]}];
|