| | |
| | | <template> |
| | | <div> |
| | | <PageIndex :pageList="pageList"></PageIndex> |
| | | <a-spin :spinning="loading" class="p-1" style="height: 100%"> |
| | | <PageIndex :pageList="pageList" :mailType="1" :pageData="pageData"> </PageIndex> |
| | | </a-spin> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | return ''; |
| | | } |
| | | }); |
| | | import { getMailListApi } from '@/api/email/userList'; |
| | | import { getHandleMailListApi } from '@/api/email/userList'; |
| | | const pageList = ref([]); |
| | | function getDataList() { |
| | | getMailListApi({}).then((res) => { |
| | | if (res.code == 0) { |
| | | pageList.value = res.data; |
| | | } |
| | | }); |
| | | const loading = ref(false); |
| | | const pageData = ref({ |
| | | page: 1, |
| | | limit: 20, |
| | | total: 0, |
| | | }); |
| | | function getDataList(page: 1) { |
| | | loading.value = true; |
| | | |
| | | getHandleMailListApi({ page }) |
| | | .then((res) => { |
| | | loading.value = false; |
| | | if (res.code == 0) { |
| | | pageList.value = res.data.list; |
| | | pageData.value.total = res.data.total; |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | loading.value = false; |
| | | }); |
| | | } |
| | | provide('getDataList', getDataList); |
| | | onMounted(() => { |