From cb21a5aa46ecf7a58e3e6bee3fd7f3352ec909b5 Mon Sep 17 00:00:00 2001
From: huangyinfeng <1244041895@qq.com>
Date: 星期二, 24 九月 2024 13:50:47 +0800
Subject: [PATCH] 邮件配置黑名单功能

---
 src/views/email/Inbox/index.vue |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/src/views/email/Inbox/index.vue b/src/views/email/Inbox/index.vue
index 9d235ef..b03eeb8 100644
--- a/src/views/email/Inbox/index.vue
+++ b/src/views/email/Inbox/index.vue
@@ -1,7 +1,7 @@
 <template>
   <div>
-    <a-spin :spinning="loading" class="p-1">
-      <PageIndex :pageList="pageList" :mailType="1"></PageIndex>
+    <a-spin :spinning="loading" class="p-1" style="height: 100%;">
+      <PageIndex :pageList="pageList" :mailType="1" :pageData="pageData" > </PageIndex>
     </a-spin>
   </div>
 </template>
@@ -32,20 +32,27 @@
   import { getMailListApi } from '@/api/email/userList';
   const pageList = ref([]);
   const loading = ref(false);
-  function getDataList() {
+  const pageData = ref({
+    page: 1,
+    limit: 20,
+    total: 0,
+  });
+  function getDataList(page:1) {
     loading.value = true;
-    getMailListApi({ mail: routerId.value, mailType: 1 })
+    getMailListApi({ mail: routerId.value, mailType: 1,page })
       .then((res) => {
         loading.value = false;
-
         if (res.code == 0) {
-          pageList.value = res.data;
+          pageList.value = res.data.list;
+          pageData.value.total = res.data.total;
         }
       })
       .catch(() => {
         loading.value = false;
       });
   }
+
+  
   provide('getDataList', getDataList);
   onMounted(() => {
     getDataList();

--
Gitblit v1.8.0