Commit 86a884e3d23554fed4a2a6b6ba25f2eca2c06de5

Authored by YunaiV
1 parent 4996d05d

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

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
... ... @@ -55,6 +55,11 @@ const crudSchemas = reactive&lt;VxeCrudSchema&gt;({
55 55 slots: {
56 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 320 this.sendForm = {
321 321 content: undefined,
322 322 params: undefined,
323   - mobile: undefined,
  323 + mail: undefined,
324 324 templateCode: undefined,
325 325 templateParams: {}
326 326 };
... ...