diff --git a/src/views/customer/components/addEmail.vue b/src/views/customer/components/addEmail.vue index 4e238c9..6a0a1e1 100644 --- a/src/views/customer/components/addEmail.vue +++ b/src/views/customer/components/addEmail.vue @@ -58,6 +58,44 @@ + + + + + + Bcc: + + + Add + + + + + + + + + + + + + + + + + + + + delete + + + + + + + @@ -182,7 +220,8 @@ form: { key: '', name: '', - email: [], + email: [], + bcc:[], template: '' }, rules: { @@ -206,6 +245,16 @@ delEmail(index) { this.form.email.splice(index, 1) + }, + addBcc() { + this.form.bcc.push({ + value: '', + title: '' + }) + }, + delBcc(index) { + + this.form.bcc.splice(index, 1) }, submit() { if (this.id) { @@ -233,7 +282,8 @@ id: this.id, }).then(res => { this.form = this.base.requestToForm(res, this.form) - this.form.email = res.email ? res.email : [] + this.form.email = res.email ? res.email : [], + this.form.bcc = res.bcc ? res.bcc : [] this.form.template = res.template ? res.template : '' this.showWang = true @@ -252,7 +302,8 @@ this.form = { key: '', name: '', - email: [], + email: [], + bcc:[], template: '' } this.showWang = false