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

plp
YunaiV 3 years ago
parent 4996d05d1e
commit 86a884e3d2

@ -2,6 +2,17 @@
<ContentWrap> <ContentWrap>
<!-- 列表 --> <!-- 列表 -->
<XTable @register="registerTable"> <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> <template #toolbar_buttons>
<!-- 操作新增 --> <!-- 操作新增 -->
<XButton <XButton
@ -132,8 +143,12 @@ const { t } = useI18n() // 国际化
const message = useMessage() // const message = useMessage() //
// //
const queryParams = reactive({
accountId: null
})
const [registerTable, { reload, deleteData }] = useXTable({ const [registerTable, { reload, deleteData }] = useXTable({
allSchemas: allSchemas, allSchemas: allSchemas,
params: queryParams,
getListApi: MailTemplateApi.getMailTemplatePageApi, getListApi: MailTemplateApi.getMailTemplatePageApi,
deleteApi: MailTemplateApi.deleteMailTemplateApi deleteApi: MailTemplateApi.deleteMailTemplateApi
}) })

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

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

Loading…
Cancel
Save