|
@@ -21,24 +21,26 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
formData: {
|
|
|
- sendEmail: '',
|
|
|
+ accidentMailbox: '',
|
|
|
+ employerMailbox: '',
|
|
|
+ receiveMailbox: '',
|
|
|
+ appToken: '',
|
|
|
+ companyId: '',
|
|
|
+ overNum: '',
|
|
|
+ sendMailbox: '',
|
|
|
sendName: '',
|
|
|
sendPassword: '',
|
|
|
- corpId: '',
|
|
|
- secret: '',
|
|
|
- receComEmail: '',
|
|
|
- receYwxEmail: '',
|
|
|
- sendDailyTime: '',
|
|
|
- noticeDay: ''
|
|
|
+ sendTime: ''
|
|
|
},
|
|
|
formRules: {
|
|
|
- receComEmail: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
- receYwxEmail: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
- sendDailyTime: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
- noticeDay: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
+ appToken: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
+ companyId: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
+ overNum: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
+ sendMailbox: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
sendName: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
- sendEmail: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
- sendPassword: [{ required: true, message: '请输入', trigger: 'blur' }]
|
|
|
+ sendMailbox: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
+ sendPassword: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
+ sendTime: [{ required: true, message: '请输入', trigger: 'blur' }]
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -47,48 +49,64 @@ export default {
|
|
|
return [
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
- formItemAttributes: { label: '接收邮箱,公用', prop: 'receComEmail' }
|
|
|
+ md: 24,
|
|
|
+ attributes: {},
|
|
|
+ formItemAttributes: { label: '接收邮箱,(意外险专用),多邮箱以英文逗号隔开', prop: 'accidentMailbox' }
|
|
|
},
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
- formItemAttributes: { label: '接收邮箱,意外险专用,多邮箱以英文逗号隔开', prop: 'receYwxEmail' }
|
|
|
+ md: 24,
|
|
|
+ attributes: {},
|
|
|
+ formItemAttributes: { label: '接收邮箱,(工伤险专用),多邮箱以英文逗号隔开', prop: 'receiveMailbox' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'el-input',
|
|
|
+ md: 24,
|
|
|
+ attributes: {},
|
|
|
+ formItemAttributes: { label: '接收邮箱,(雇主险专用),多邮箱以英文逗号隔开', prop: 'employerMailbox' }
|
|
|
},
|
|
|
{
|
|
|
name: 'el-time-picker',
|
|
|
md: 8,
|
|
|
attributes: { style: 'width:100%', format: 'HH:mm', valueFormat: 'HH:mm' },
|
|
|
- formItemAttributes: { label: '每日发送时间', prop: 'sendDailyTime', 'label-position': 'left' }
|
|
|
+ formItemAttributes: { label: '每日发送时间', prop: 'sendTime', 'label-position': 'left' }
|
|
|
},
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
md: 8,
|
|
|
- formItemAttributes: { label: '到期提醒时间:保险到期前多少天', prop: 'noticeDay' }
|
|
|
+ attributes: {},
|
|
|
+ formItemAttributes: { label: '到期提醒时间:保险到期前多少天', prop: 'overNum' }
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
md: 8,
|
|
|
- formItemAttributes: { label: '企业id', prop: 'corpId' }
|
|
|
+ attributes: {},
|
|
|
+ formItemAttributes: { label: '发件人昵称', prop: 'sendName' }
|
|
|
},
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
md: 8,
|
|
|
- formItemAttributes: { label: '发件人昵称', prop: 'sendName' }
|
|
|
+ attributes: {},
|
|
|
+ formItemAttributes: { label: '发件人邮箱', prop: 'sendMailbox' }
|
|
|
},
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
md: 8,
|
|
|
- formItemAttributes: { label: '发件人邮箱', prop: 'sendEmail' }
|
|
|
+ attributes: {},
|
|
|
+ formItemAttributes: { label: '发件人密码', prop: 'sendPassword' }
|
|
|
},
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
md: 8,
|
|
|
- formItemAttributes: { label: '发件人密码', prop: 'sendPassword' }
|
|
|
+ attributes: {},
|
|
|
+ formItemAttributes: { label: '企业id', prop: 'companyId' }
|
|
|
},
|
|
|
-
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
- md: 8,
|
|
|
- formItemAttributes: { label: '应用的凭证密钥', prop: 'secret' }
|
|
|
+ md: 24,
|
|
|
+ attributes: {},
|
|
|
+ formItemAttributes: { label: '应用的凭证密钥', prop: 'appToken' }
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -98,7 +116,7 @@ export default {
|
|
|
insureEmailDetail().then(res => {
|
|
|
for (var key in res.data) {
|
|
|
if (key !== 'id') {
|
|
|
- this.formData[key] = res.data[key]
|
|
|
+ this.formData[key] = res.data[key] || ''
|
|
|
}
|
|
|
}
|
|
|
})
|