邮箱模块:vue3 邮件模版的管理

This commit is contained in:
YunaiV 2023-01-27 17:10:15 +08:00
parent 4996d05d1e
commit 86a884e3d2
3 changed files with 21 additions and 1 deletions

View File

@ -2,6 +2,17 @@
<ContentWrap>
<!-- 列表 -->
<XTable @register="registerTable">
<template #accountId_search>
<el-select v-model="queryParams.accountId">
<el-option :key="undefined" label="全部" :value="undefined" />
<el-option
v-for="item in accountOptions"
:key="item.id"
:label="item.mail"
:value="item.id"
/>
</el-select>
</template>
<template #toolbar_buttons>
<!-- 操作新增 -->
<XButton
@ -132,8 +143,12 @@ const { t } = useI18n() // 国际化
const message = useMessage() //
//
const queryParams = reactive({
accountId: null
})
const [registerTable, { reload, deleteData }] = useXTable({
allSchemas: allSchemas,
params: queryParams,
getListApi: MailTemplateApi.getMailTemplatePageApi,
deleteApi: MailTemplateApi.deleteMailTemplateApi
})

View File

@ -55,6 +55,11 @@ const crudSchemas = reactive<VxeCrudSchema>({
slots: {
default: 'accountId_default'
}
},
search: {
slots: {
default: 'accountId_search'
}
}
},
{

View File

@ -320,7 +320,7 @@ export default {
this.sendForm = {
content: undefined,
params: undefined,
mobile: undefined,
mail: undefined,
templateCode: undefined,
templateParams: {}
};