|
|
|
@ -11,22 +11,10 @@
|
|
|
|
|
<a-form :form="form">
|
|
|
|
|
<a-row>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="类型" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-select
|
|
|
|
|
placeholder="请选择类型"
|
|
|
|
|
v-decorator="['typeCode', { rules: [{ required: true, message: '请选择类型!' }] }]"
|
|
|
|
|
>
|
|
|
|
|
<a-select-option v-for="item in TypeData" :key="item.code" :value="item.code">
|
|
|
|
|
{{ item.value }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="账号" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-form-item label="邮箱账号" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-input
|
|
|
|
|
placeholder="请输入账号"
|
|
|
|
|
v-decorator="['account', { rules: [{ required: true, message: '请输入账号!' }] }]"
|
|
|
|
|
placeholder="请输入邮箱账号"
|
|
|
|
|
v-decorator="['mailAccount', { rules: [{ required: true, message: '请输入邮箱账号!' }] }]"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -38,9 +26,73 @@
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="19">
|
|
|
|
|
<a-form-item label="备注" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
|
|
|
|
|
<a-input placeholder="请输入备注" v-decorator="['remark']" />
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="使用IMAP4" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-switch
|
|
|
|
|
:style="{ marginRight: '50px' }"
|
|
|
|
|
checked-children="开"
|
|
|
|
|
un-checked-children="关"
|
|
|
|
|
v-decorator="['useImap']"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="收件服务器" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-input
|
|
|
|
|
placeholder="请输入收件服务器"
|
|
|
|
|
v-decorator="['receiveServer', { rules: [{ required: true, message: '请输入收件服务器!' }] }]"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="收件端口" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-input
|
|
|
|
|
placeholder="请输入收件端口"
|
|
|
|
|
v-decorator="['receivePort', { rules: [{ required: true, message: '请输入收件端口!' }] }]"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="收件SSL" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-switch
|
|
|
|
|
:style="{ marginRight: '50px' }"
|
|
|
|
|
checked-children="开"
|
|
|
|
|
un-checked-children="关"
|
|
|
|
|
v-decorator="['receiveSSL']"
|
|
|
|
|
@change="FnChangeReceive"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="发件服务器" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-input
|
|
|
|
|
placeholder="请输入发件服务器"
|
|
|
|
|
v-decorator="['smtpServer', { rules: [{ required: true, message: '请输入发件服务器!' }] }]"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="发件端口" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-input
|
|
|
|
|
placeholder="请输入发件端口"
|
|
|
|
|
v-decorator="['smtpPort', { rules: [{ required: true, message: '请输入发件端口!' }] }]"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="发件SSL" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-switch
|
|
|
|
|
:style="{ marginRight: '50px' }"
|
|
|
|
|
checked-children="开"
|
|
|
|
|
un-checked-children="关"
|
|
|
|
|
v-decorator="['smtpSSL']"
|
|
|
|
|
@change="FnChangeSmtp"
|
|
|
|
|
/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="显示名" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-input placeholder="请输入显示名" v-decorator="['showName']" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
@ -82,10 +134,15 @@ export default {
|
|
|
|
|
mounted() {
|
|
|
|
|
sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '349716496130117' }).then(res => {
|
|
|
|
|
this.TypeData = res.data.rows
|
|
|
|
|
console.log(this.TypeData)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
FnChangeSmtp(value) {
|
|
|
|
|
console.log(value)
|
|
|
|
|
},
|
|
|
|
|
FnChangeReceive(value) {
|
|
|
|
|
console.log(value)
|
|
|
|
|
},
|
|
|
|
|
// 初始化方法
|
|
|
|
|
edit(record) {
|
|
|
|
|
this.data = record
|
|
|
|
@ -95,10 +152,16 @@ export default {
|
|
|
|
|
this.typeData = typeOption.filters['dictData']('edi_type')
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
|
typeCode: record.typeCode,
|
|
|
|
|
account: record.account,
|
|
|
|
|
mailAccount: record.mailAccount,
|
|
|
|
|
password: record.password,
|
|
|
|
|
remark: record.remark
|
|
|
|
|
useImap: record.useImap,
|
|
|
|
|
receiveServer: record.receiveServer,
|
|
|
|
|
receivePort: record.receivePort,
|
|
|
|
|
receiveSSL: record.receiveSSL,
|
|
|
|
|
smtpServer: record.smtpServer,
|
|
|
|
|
smtpPort: record.smtpPort,
|
|
|
|
|
smtpSSL: record.smtpSSL,
|
|
|
|
|
showName: record.showName
|
|
|
|
|
})
|
|
|
|
|
console.log(this.form.getFieldsValue())
|
|
|
|
|
}, 100)
|
|
|
|
|