From 454511a44805acb1077a148e52e4f46352d5f16d Mon Sep 17 00:00:00 2001 From: zhangsir Date: Fri, 11 Oct 2024 11:15:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=A2=E6=8E=88=E4=BF=AE=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=85=88=E7=BD=AE=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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;