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);