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 | 2 | <ContentWrap> |
| 3 | 3 | <!-- 列表 --> |
| 4 | 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 | 16 | <template #toolbar_buttons> |
| 6 | 17 | <!-- 操作:新增 --> |
| 7 | 18 | <XButton |
| ... | ... | @@ -132,8 +143,12 @@ const { t } = useI18n() // 国际化 |
| 132 | 143 | const message = useMessage() // 消息弹窗 |
| 133 | 144 | |
| 134 | 145 | // 列表相关的变量 |
| 146 | +const queryParams = reactive({ | |
| 147 | + accountId: null | |
| 148 | +}) | |
| 135 | 149 | const [registerTable, { reload, deleteData }] = useXTable({ |
| 136 | 150 | allSchemas: allSchemas, |
| 151 | + params: queryParams, | |
| 137 | 152 | getListApi: MailTemplateApi.getMailTemplatePageApi, |
| 138 | 153 | deleteApi: MailTemplateApi.deleteMailTemplateApi |
| 139 | 154 | }) | ... | ... |
yudao-ui-admin-vue3/src/views/system/mail/template/template.data.ts
yudao-ui-admin/src/views/system/mail/template/index.vue