diff --git a/src/pages/business/CRM/customer/customerAudit.vue b/src/pages/business/CRM/customer/customerAudit.vue
index 533fcf5..7fbf62d 100644
--- a/src/pages/business/CRM/customer/customerAudit.vue
+++ b/src/pages/business/CRM/customer/customerAudit.vue
@@ -17,12 +17,12 @@
-
-
-
-
+
+
+
+
-
+
{
// 下拉刷新
const downCallback = async (mescroll) => {
- try {
- uni.showLoading();
- cssFlag.value = true;
- setTimeout(async () => {
+
+ uni.showLoading();
+ cssFlag.value = true;
+ setTimeout(async () => {
+ try {
// 重置页码为第一页
const res = await getList(1, mescroll.size || upOption.page.size);
@@ -144,17 +145,21 @@ const downCallback = async (mescroll) => {
// 正确传递 total 参数
mescroll.endSuccess(res.list.length, res.total > (mescroll.size || upOption.page.size));
uni.hideLoading();
+
+ } catch (error) {
+ console.log(error)
+ mescroll.endErr();
+ } finally {
cssFlag.value = false;
- }, 500);
- } catch (error) {
- console.log(error)
- mescroll.endErr();
- }
+ }
+ }, 500);
+
}
// 上拉加载更多
const upCallback = async (mescroll) => {
- try {
- setTimeout(async () => {
+
+ setTimeout(async () => {
+ try {
// 使用 mescroll 提供的页码和大小参数
const res = await getList(mescroll.num, mescroll.size);
if (mescroll.num === 1) {
@@ -165,11 +170,11 @@ const upCallback = async (mescroll) => {
mescroll.endBySize(res.list.length, res.total);
// 正确判断是否还有更多数据
mescroll.endSuccess(res.list.length, res.total > mescroll.num * mescroll.size);
- }, 500);
- } catch (error) {
- console.log(error)
- mescroll.endErr();
- }
+ } catch (error) {
+ mescroll.endErr();
+ }
+ }, 500);
+
}
// 获取数据列表
@@ -180,12 +185,17 @@ const getList = (pageIndex, pageSize) => {
pageSize,
searchContent: searchValue.value
}
-
- let res = await getCusUserApprovalList(param);
- resolve({
- list: res.rows,
- total: res.total
- });
+ try {
+ let res = await getCusUserApprovalList(param);
+ resolve({
+ list: res.rows,
+ total: res.total
+ });
+ } catch (e) {
+ console.log(e, "客户人员审核任务列表获取失败");
+ } finally {
+ uni.hideLoading();
+ }
});
}
@@ -210,12 +220,12 @@ let handleDetail = (item) => {