huangyinfeng
9 天以前 63d60873dad6a4767b1aa52791ee45c7235afcd9
src/views/email/HandlingEmailsOnBehalfOfOthers/index.vue
@@ -1,6 +1,8 @@
<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>
@@ -27,13 +29,27 @@
      return '';
    }
  });
  import { getMailListApi } from '@/api/email/userList';
  import { getHandleMailListApi } from '@/api/email/userList';
  const pageList = ref([]);
  function getDataList() {
    getMailListApi({}).then((res) => {
  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;
          pageList.value = res.data.list;
          pageData.value.total = res.data.total;
      }
      })
      .catch(() => {
        loading.value = false;
    });
  }
  provide('getDataList', getDataList);