|
@@ -3,8 +3,8 @@
|
|
|
* @Version: 1.0
|
|
|
* @Autor: XuTongZhang
|
|
|
* @Date: 2020-08-03 09:38:03
|
|
|
- * @LastEditors: XuTongZhang
|
|
|
- * @LastEditTime: 2020-08-10 19:59:58
|
|
|
+ * @LastEditors : yuanrunwei
|
|
|
+ * @LastEditTime : 2021-03-31 14:51:39
|
|
|
-->
|
|
|
<template>
|
|
|
<div class="mailManage">
|
|
@@ -63,6 +63,24 @@
|
|
|
<el-button type="primary" @click="determine(2)">验证并使用</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
+ <el-form ref="formboss" :model="formboss" :rules="rules" label-width="140px" label-position="left">
|
|
|
+ <el-form-item label="boss邮箱" prop="cmpMailAccount">
|
|
|
+ <el-input v-model.trim="formboss.cmpMailAccount" maxlength="32" show-word-limit></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="密码" prop="cmpMailPassword">
|
|
|
+ <el-input v-model.trim="formboss.cmpMailPassword" show-password maxlength="32" show-word-limit></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="邮箱类型" prop="cmpMailType">
|
|
|
+ <el-radio-group v-model="formboss.cmpMailType">
|
|
|
+ <el-radio :label="0">阿里</el-radio>
|
|
|
+ <el-radio :label="1">网易</el-radio>
|
|
|
+ <el-radio :label="2">QQ</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item class="button-grounp">
|
|
|
+ <el-button type="primary" @click="determine(3)">验证并使用</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
</el-card>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -72,13 +90,14 @@ export default {
|
|
|
data () {
|
|
|
let determine = (val) => {
|
|
|
let a
|
|
|
- this.$refs[val === 0 ? 'form51' : val === 1 ? 'formzl' : 'form58'].validate((valid) => {
|
|
|
+ this.$refs[val === 0 ? 'form51' : val === 1 ? 'formzl' : (val === 2 ? 'form58' : 'formboss')].validate((valid) => {
|
|
|
a = valid
|
|
|
})
|
|
|
if (!a) return
|
|
|
- let reqdata = val === 0 ? this.form51 : val === 1 ? this.formzl : this.form58
|
|
|
+ let reqdata = val === 0 ? this.form51 : val === 1 ? this.formzl : (val === 2 ? this.form58 : this.formboss)
|
|
|
reqdata.companyId = 2
|
|
|
reqdata.useType = 0
|
|
|
+ reqdata.platformType = val + 1
|
|
|
// reqdata.cmpMailType = 0
|
|
|
// reqdata.cmpMailType = val
|
|
|
let url = reqdata.id ? '/companyAccount/updateCompanyAccount' : '/companyAccount/saveReceiverMail'
|
|
@@ -104,9 +123,10 @@ export default {
|
|
|
// this.$set(this.$data, 'form51', list[0] ? list[0] : this.form51)
|
|
|
// this.$set(this.$data, 'formzl', list[1] ? list[1] : this.formzl)
|
|
|
// this.$set(this.$data, 'form58', list[2] ? list[2] : this.form58)
|
|
|
- list[0] && Object.assign(this.form51, list[0])
|
|
|
- list[1] && Object.assign(this.formzl, list[1])
|
|
|
- list[2] && Object.assign(this.form58, list[2])
|
|
|
+ list.filter(item => item.platformType === 1)[0] && Object.assign(this.form51, list.filter(item => item.platformType === 1)[0])
|
|
|
+ list.filter(item => item.platformType === 2)[0] && Object.assign(this.formzl, list.filter(item => item.platformType === 2)[0])
|
|
|
+ list.filter(item => item.platformType === 3)[0] && Object.assign(this.form58, list.filter(item => item.platformType === 3)[0])
|
|
|
+ list.filter(item => item.platformType === 4)[0] && Object.assign(this.formboss, list.filter(item => item.platformType === 4)[0])
|
|
|
// this.form = res.list.some(item => item.useType === 1) ? res.list.find(item => item.useType === 1) : {}
|
|
|
})
|
|
|
}
|
|
@@ -146,6 +166,11 @@ export default {
|
|
|
cmpMailPassword: '',
|
|
|
cmpMailType: 0
|
|
|
},
|
|
|
+ formboss: {
|
|
|
+ cmpMailAccount: '',
|
|
|
+ cmpMailPassword: '',
|
|
|
+ cmpMailType: 0
|
|
|
+ },
|
|
|
// form: {
|
|
|
// cmpMailAccount: '',
|
|
|
// cmpMailPassword: '',
|