diff --git a/src/views/DataManagement/ReminderSettings.vue b/src/views/DataManagement/ReminderSettings.vue index f520425fb0fcfaf12ef03f64447e90d8d74a9b8d..519b0d99c151716a6b0f97b82c87a41a2bbc9969 100644 --- a/src/views/DataManagement/ReminderSettings.vue +++ b/src/views/DataManagement/ReminderSettings.vue @@ -10,7 +10,7 @@
- + - + + + 删除 + 保存 + + 新增邮箱 + 重置 @@ -53,7 +64,7 @@
- + - + + + 删除 + 保存 + + 新增邮箱 + 重置 @@ -89,7 +111,7 @@
- + - + + + 删除 + 保存 + + 新增邮箱 + 重置 @@ -143,15 +176,21 @@ export default { return { dailyNewspaperForm: { time: '', - emile: '' + emails: [{ + value: '' + }] }, policeForm: { - email: '', + emails: [{ + value: '' + }], fazhi: '' }, utilizationRatioForm: { number: '', - emile: '' + emails: [{ + value: '' + }] }, inner: { title: '提醒设置' @@ -259,6 +298,42 @@ export default { this.getData() }, methods: { + removeDailyNewspaperFormEmail(item) { + var index = this.dailyNewspaperForm.emails.indexOf(item) + if (index !== -1) { + this.dailyNewspaperForm.emails.splice(index, 1) + } + }, + removePoliceFormEmail(item) { + var index = this.policeForm.emails.indexOf(item) + if (index !== -1) { + this.policeForm.emails.splice(index, 1) + } + }, + removeUtilizationRatioFormEmail(item) { + var index = this.utilizationRatioForm.emails.indexOf(item) + if (index !== -1) { + this.utilizationRatioForm.emails.splice(index, 1) + } + }, + addDailyNewspaperFormEmail() { + this.dailyNewspaperForm.emails.push({ + value: '', + key: Date.now() + }) + }, + addPoliceFormEmail() { + this.policeForm.emails.push({ + value: '', + key: Date.now() + }) + }, + addUtilizationRatioFormEmail() { + this.utilizationRatioForm.emails.push({ + value: '', + key: Date.now() + }) + }, submitForm(formName) { this.$refs[formName].validate((valid) => { if (valid) {