diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 5a2bcea8..7f736a10 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -3557,6 +3557,7 @@ function onFocusEnd(){ // }; // 渲染开课操作 const getTableDate3 = async (type) => { + state.tableData6 = [] state.tableLoading = true; state.tableCoursePlanLoading = true // let datas = state.tableData6; @@ -3586,7 +3587,21 @@ function onFocusEnd(){ offcourseId: state.offcourseId, }; console.log("获取开obj", obj, state.selectTime); - let res = await planList(obj); + let res = null + await planList(obj).then(rs=>{ + res = rs + }).catch(err=>{ + message.error(err.message=='timeout of 15000ms exceeded'?'系统超时,请稍后再试':err.data.msg) + state.tableCoursePlanLoading = false + res ={ + data:{data:{ + "pageNo": "1", + "pageSize": "10", + "total": "0", + "pages": "0", + "rows": [] + }}} + }) state.tableLoading = false; console.log("开课res", res); const { rows, total, pageNo } = res.data.data;