From ec3abb9901c701ac52a0ddcae892bb791e1a681d Mon Sep 17 00:00:00 2001 From: zhangsir Date: Thu, 4 Jul 2024 16:42:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E5=88=97=E8=A1=A8=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseForm.vue | 4 ---- src/views/course/ManageList.vue | 6 +++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 1a8bfa50..8163331c 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -1483,10 +1483,6 @@ export default { teachers: saveTeachers, crowds:crowds }; - let localKey = "user_" + this.userInfo.sysId + "_gids"; - let hasIds = sessionStorage.getItem(localKey); - postData.audiences = hasIds ?? '' - postData.isCreateCourse = true this.btnLoading = true; let $this = this; //2023-1-5 对于默认管理员,不需要提交hrbp。直接提交并发布 diff --git a/src/views/course/ManageList.vue b/src/views/course/ManageList.vue index 13c10939..3a9399be 100644 --- a/src/views/course/ManageList.vue +++ b/src/views/course/ManageList.vue @@ -661,7 +661,11 @@ export default { if(this.audiences && this.audiences.length > 0){ this.params.audiences = this.audiences.join(','); } - this.params.isCreateCourse = false + if(this.pageManage){ + this.params.isCreateCourse = false + }else{ + this.params.isCreateCourse = true + } apiCourse.pageList(this.params).then(rs=>{ if(rs.status==200){ this.pageData = rs.result.list;