| | |
| | | :filter-config="{ showIcon: false }" |
| | | :row-config="{ isHover: true }" |
| | | :column-config="{ resizable: true }" |
| | | :edit-config="{ trigger: 'click', mode: 'cell' }" |
| | | > |
| | | <vxe-column width="60"> |
| | | <template #default> |
| | |
| | | <span style="margin-left: 10px; color: #3081fe; font-weight: 500">{{ row.email }}</span> |
| | | </template> |
| | | </vxe-column> |
| | | <vxe-column show-overflow field="companyName" title="显示名称" min-width="250"> |
| | | <vxe-column |
| | | show-overflow |
| | | field="aliasEmail" |
| | | title="显示名称" |
| | | min-width="250" |
| | | :edit-render="{}" |
| | | > |
| | | <template #default="{ row }"> |
| | | <span style="color: #999">{{ row.companyName }}</span> |
| | | <span style="color: #999">{{ row.aliasEmail }}</span> |
| | | </template> |
| | | <template #edit="{ row }"> |
| | | <vxe-input |
| | | ref="inputRef" |
| | | v-model="row.aliasEmail" |
| | | type="text" |
| | | @blur="fnInputHandle(row)" |
| | | ></vxe-input> |
| | | </template> |
| | | </vxe-column> |
| | | <vxe-column show-overflow field="status" title="邮箱状态" min-width="250"> |
| | | <template #default="{ row }"> |
| | | <div v-if="!isCheckAll"> |
| | | <a-tag color="orange" v-if="row.status === '正常'">正常</a-tag> |
| | | <a-tag color="success" v-if="row.mailStatus === '正常'">正常</a-tag> |
| | | <a-tag color="red" v-else>异常</a-tag> |
| | | </div> |
| | | <div v-else> |
| | |
| | | </template> |
| | | <a-input :disabled="typeAccount === 2" v-model:value="formData.email" /> |
| | | </a-form-item> |
| | | <a-form-item v-if="isCustom == 'custom'" name="password" label="邮箱密码"> |
| | | <!-- v-if="isCustom == 'custom'" --> |
| | | <a-form-item name="password" label="邮箱密码"> |
| | | <a-input-password |
| | | type="password" |
| | | v-model:value="formData.password" |
| | |
| | | deleteAccountApi, |
| | | getAccountListApi, |
| | | isEmailValidApi, |
| | | addLiasEmailApi, |
| | | } from '@/api/email/userList'; |
| | | const loading = ref(false); |
| | | import Sortable from 'sortablejs'; |
| | |
| | | aliasEmail: '', |
| | | biSyncFlag: false, |
| | | proxyFlag: true, |
| | | receiveProtocol: 'imap', |
| | | receiveProtocol: 'imaps', |
| | | receiveSSL: false, |
| | | receivePort: '', |
| | | receiveHost: '', |
| | | smtpSSL: false, |
| | | smtpSSL: true, |
| | | smtpPort: '', |
| | | smtpHost: '', |
| | | invalid: '', |
| | |
| | | const open = ref(false); |
| | | const fnHandleOk = () => { |
| | | formRef.value.validate().then(() => { |
| | | const data = formData.value; |
| | | const data = !isShow |
| | | ? formData.value |
| | | : { |
| | | email: formData.value.email, |
| | | password: formData.value.password, |
| | | }; |
| | | if (isShow.value == true) { |
| | | data.mailType = isCustom.value === 'onCustom' ? 1 : 2; |
| | | } |
| | |
| | | } |
| | | loading.value = false; |
| | | fnMailList(); |
| | | open.value = false; |
| | | }) |
| | | .catch((err) => { |
| | | loading.value = false; |
| | | open.value = false; |
| | | }); |
| | | open.value = false; |
| | | }); |
| | | }; |
| | | |
| | |
| | | } |
| | | function fnHandleDetailOk() { |
| | | openDrawerDetail.value = false; |
| | | deleteAccountApi({ accountId: accountId.value }) |
| | | deleteAccountApi(accountId.value ) |
| | | .then((res) => { |
| | | if (res.code === 0) { |
| | | createMessage.success(res.msg); |
| | |
| | | isEmailValidApi(email).then((res) => { |
| | | if (res.code == 0) { |
| | | isCheck.value = true; |
| | | checkStatus.value = res.data.status; |
| | | checkStatus.value = res.data.code == 0 ? true : false; |
| | | } |
| | | }); |
| | | } |
| | |
| | | isCheckAll.value = false; |
| | | }, 3000); |
| | | } |
| | | |
| | | function fnInputHandle(row) { |
| | | addLiasEmailApi({ aliasEmail: row.aliasEmail, accountId: row.accountId }).then((res) => {}); |
| | | } |
| | | </script> |
| | | <style scoped lang="less"> |
| | | .bullet { |