2023-02-11 00:44:00 +08:00
|
|
|
<template>
|
|
|
|
<ContentWrap>
|
2023-03-17 00:02:45 +08:00
|
|
|
<Search :schema="allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
|
|
|
|
</ContentWrap>
|
|
|
|
|
|
|
|
<ContentWrap>
|
|
|
|
<Table
|
|
|
|
v-model:pageSize="tableObject.pageSize"
|
|
|
|
v-model:currentPage="tableObject.currentPage"
|
|
|
|
:columns="allSchemas.tableColumns"
|
|
|
|
:data="tableObject.tableList"
|
|
|
|
:loading="tableObject.loading"
|
|
|
|
:pagination="{
|
|
|
|
total: tableObject.total
|
|
|
|
}"
|
|
|
|
@register="register"
|
|
|
|
>
|
|
|
|
<template #action="{ row }">
|
|
|
|
<ElButton type="danger" @click="delData(row, false)">
|
|
|
|
{{ t('exampleDemo.del') }}
|
|
|
|
</ElButton>
|
2023-02-11 00:44:00 +08:00
|
|
|
</template>
|
2023-03-17 00:02:45 +08:00
|
|
|
</Table>
|
2023-02-11 00:44:00 +08:00
|
|
|
</ContentWrap>
|
|
|
|
</template>
|
|
|
|
<script setup lang="ts" name="MailAccount">
|
2023-03-17 00:02:45 +08:00
|
|
|
import { allSchemas } from './account.data'
|
|
|
|
import { useTable } from '@/hooks/web/useTable'
|
|
|
|
import { Table } from '@/components/Table'
|
2023-02-11 00:44:00 +08:00
|
|
|
import * as MailAccountApi from '@/api/system/mail/account'
|
|
|
|
|
2023-03-17 00:02:45 +08:00
|
|
|
const { register, tableObject, methods } = useTable<MailAccountApi.MailAccountVO>({
|
2023-02-11 00:44:00 +08:00
|
|
|
getListApi: MailAccountApi.getMailAccountPageApi,
|
2023-03-17 00:02:45 +08:00
|
|
|
delListApi: MailAccountApi.deleteMailAccountApi
|
2023-02-11 00:44:00 +08:00
|
|
|
})
|
|
|
|
|
2023-03-17 00:02:45 +08:00
|
|
|
const { getList, setSearchParams } = methods
|
2023-02-11 00:44:00 +08:00
|
|
|
|
2023-03-17 00:02:45 +08:00
|
|
|
getList()
|
2023-02-11 00:44:00 +08:00
|
|
|
</script>
|