mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 01:32:03 +08:00
邮箱模块:vue3 邮件模版的管理
This commit is contained in:
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…
Reference in New Issue
Block a user