diff --git a/src/api/system/mail/account/index.ts b/src/api/system/mail/account/index.ts index 7f3b5382..9e10c92a 100644 --- a/src/api/system/mail/account/index.ts +++ b/src/api/system/mail/account/index.ts @@ -11,31 +11,31 @@ export interface MailAccountVO { } // 查询邮箱账号列表 -export const getMailAccountPageApi = async (params: PageParam) => { +export const getMailAccountPage = async (params: PageParam) => { return await request.get({ url: '/system/mail-account/page', params }) } // 查询邮箱账号详情 -export const getMailAccountApi = async (id: number) => { +export const getMailAccount = async (id: number) => { return await request.get({ url: '/system/mail-account/get?id=' + id }) } // 新增邮箱账号 -export const createMailAccountApi = async (data: MailAccountVO) => { +export const createMailAccount = async (data: MailAccountVO) => { return await request.post({ url: '/system/mail-account/create', data }) } // 修改邮箱账号 -export const updateMailAccountApi = async (data: MailAccountVO) => { +export const updateMailAccount = async (data: MailAccountVO) => { return await request.put({ url: '/system/mail-account/update', data }) } // 删除邮箱账号 -export const deleteMailAccountApi = async (id: number) => { +export const deleteMailAccount = async (id: number) => { return await request.delete({ url: '/system/mail-account/delete?id=' + id }) } // 获得邮箱账号精简列表 -export const getSimpleMailAccounts = async () => { +export const getSimpleMailAccountList = async () => { return request.get({ url: '/system/mail-account/list-all-simple' }) } diff --git a/src/views/system/mail/account/account.data.ts b/src/views/system/mail/account/account.data.ts index 5d018cb9..24017dc0 100644 --- a/src/views/system/mail/account/account.data.ts +++ b/src/views/system/mail/account/account.data.ts @@ -77,7 +77,6 @@ const crudSchemas = reactive([ { label: '操作', field: 'action', - width: '260px', form: { show: false } diff --git a/src/views/system/mail/account/form.vue b/src/views/system/mail/account/form.vue index ba6a31d8..6160dd98 100644 --- a/src/views/system/mail/account/form.vue +++ b/src/views/system/mail/account/form.vue @@ -31,7 +31,7 @@ const openModal = async (type: string, id?: number) => { if (id) { formLoading.value = true try { - const data = await MailAccountApi.getMailAccountApi(id) + const data = await MailAccountApi.getMailAccount(id) formRef.value.setValues(data) } finally { formLoading.value = false @@ -52,10 +52,10 @@ const submitForm = async () => { try { const data = formRef.value.formModel as MailAccountApi.MailAccountVO if (formType.value === 'create') { - await MailAccountApi.createMailAccountApi(data) + await MailAccountApi.createMailAccount(data) message.success(t('common.createSuccess')) } else { - await MailAccountApi.updateMailAccountApi(data) + await MailAccountApi.updateMailAccount(data) message.success(t('common.updateSuccess')) } modelVisible.value = false diff --git a/src/views/system/mail/account/index.vue b/src/views/system/mail/account/index.vue index 8bc29f6d..ec88d60b 100644 --- a/src/views/system/mail/account/index.vue +++ b/src/views/system/mail/account/index.vue @@ -1,28 +1,31 @@