From feac9214a7e7b37d589605c7a153afae35f17593 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Mon, 14 Oct 2024 16:42:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=A2=E6=8E=88=E7=AE=A1=E7=90=86=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B9=9F=E5=81=9A=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 1b68f3ec..f93ebafe 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -3201,7 +3201,7 @@ function onFocusEnd(){ "Y-M-D" ); } - let res = await list({ + await list({ pageNo: state.currentPage1, pageSize: state.pageSize1, auditStatus: state.auditStatus, @@ -3212,11 +3212,17 @@ function onFocusEnd(){ createName: state.createName, endTime: endTime, beginTime: startTime, - }); - const { rows, total } = res.data.data; - state.tableData1 = rows; - state.tableDataTotal1 = total; - state.tableLoading = false; + }).then(res=>{ + const { rows, total } = res.data.data; + state.tableData1 = rows; + state.tableDataTotal1 = total; + state.tableLoading = false; + }).catch(err=>{ + state.tableData1 = []; + state.tableLoading = false; + state.tableDataTotal1 = 0; + message.error(err.message=='timeout of 15000ms exceeded'?'系统超时,请稍后再试':err.data.msg) + }) // itm.pageNo = pageNo; // itm.contentTxt = findClassFullName(sysTypeOptions.value, itm.sysTypeId) || "-"; console.log("state.tableData1", state.tableData1);