Commit 86a884e3d23554fed4a2a6b6ba25f2eca2c06de5
1 parent
4996d05d
邮箱模块:vue3 邮件模版的管理
Showing
3 changed files
with
21 additions
and
1 deletions
yudao-ui-admin-vue3/src/views/system/mail/template/index.vue
| @@ -2,6 +2,17 @@ | @@ -2,6 +2,17 @@ | ||
| 2 | <ContentWrap> | 2 | <ContentWrap> |
| 3 | <!-- 列表 --> | 3 | <!-- 列表 --> |
| 4 | <XTable @register="registerTable"> | 4 | <XTable @register="registerTable"> |
| 5 | + <template #accountId_search> | ||
| 6 | + <el-select v-model="queryParams.accountId"> | ||
| 7 | + <el-option :key="undefined" label="全部" :value="undefined" /> | ||
| 8 | + <el-option | ||
| 9 | + v-for="item in accountOptions" | ||
| 10 | + :key="item.id" | ||
| 11 | + :label="item.mail" | ||
| 12 | + :value="item.id" | ||
| 13 | + /> | ||
| 14 | + </el-select> | ||
| 15 | + </template> | ||
| 5 | <template #toolbar_buttons> | 16 | <template #toolbar_buttons> |
| 6 | <!-- 操作:新增 --> | 17 | <!-- 操作:新增 --> |
| 7 | <XButton | 18 | <XButton |
| @@ -132,8 +143,12 @@ const { t } = useI18n() // 国际化 | @@ -132,8 +143,12 @@ const { t } = useI18n() // 国际化 | ||
| 132 | const message = useMessage() // 消息弹窗 | 143 | const message = useMessage() // 消息弹窗 |
| 133 | 144 | ||
| 134 | // 列表相关的变量 | 145 | // 列表相关的变量 |
| 146 | +const queryParams = reactive({ | ||
| 147 | + accountId: null | ||
| 148 | +}) | ||
| 135 | const [registerTable, { reload, deleteData }] = useXTable({ | 149 | const [registerTable, { reload, deleteData }] = useXTable({ |
| 136 | allSchemas: allSchemas, | 150 | allSchemas: allSchemas, |
| 151 | + params: queryParams, | ||
| 137 | getListApi: MailTemplateApi.getMailTemplatePageApi, | 152 | getListApi: MailTemplateApi.getMailTemplatePageApi, |
| 138 | deleteApi: MailTemplateApi.deleteMailTemplateApi | 153 | deleteApi: MailTemplateApi.deleteMailTemplateApi |
| 139 | }) | 154 | }) |
yudao-ui-admin-vue3/src/views/system/mail/template/template.data.ts
| @@ -55,6 +55,11 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -55,6 +55,11 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 55 | slots: { | 55 | slots: { |
| 56 | default: 'accountId_default' | 56 | default: 'accountId_default' |
| 57 | } | 57 | } |
| 58 | + }, | ||
| 59 | + search: { | ||
| 60 | + slots: { | ||
| 61 | + default: 'accountId_search' | ||
| 62 | + } | ||
| 58 | } | 63 | } |
| 59 | }, | 64 | }, |
| 60 | { | 65 | { |
yudao-ui-admin/src/views/system/mail/template/index.vue
| @@ -320,7 +320,7 @@ export default { | @@ -320,7 +320,7 @@ export default { | ||
| 320 | this.sendForm = { | 320 | this.sendForm = { |
| 321 | content: undefined, | 321 | content: undefined, |
| 322 | params: undefined, | 322 | params: undefined, |
| 323 | - mobile: undefined, | 323 | + mail: undefined, |
| 324 | templateCode: undefined, | 324 | templateCode: undefined, |
| 325 | templateParams: {} | 325 | templateParams: {} |
| 326 | }; | 326 | }; |