diff --git a/src/views/course/Courseware.vue b/src/views/course/Courseware.vue index d489243b..5f7e2e63 100644 --- a/src/views/course/Courseware.vue +++ b/src/views/course/Courseware.vue @@ -12,7 +12,7 @@ --> - + - + - + @@ -346,18 +346,17 @@ export default { } } }, - created() { - this.getSearch(); - }, mounted() { this.loadResOwners(); this.getResOwnerTree().then(rs => { this.resOwnerListMap = rs; }); + this.search(); }, methods: { search(){ - this.params.pageIndex = 1; + //this.params.pageIndex = 1; + this.page.pageIndex=1; this.getSearch(); }, reset() { @@ -369,7 +368,8 @@ export default { this.params.resOwner1 = ''; this.params.resOwner2 = ''; this.params.resOwner3 = ''; - this.params.pageIndex = 1; + //this.params.pageIndex = 1; + this.page.pageIndex=1; this.getSearch(); }, ...mapActions({ diff --git a/src/views/portal/course/Detail.vue b/src/views/portal/course/Detail.vue index e5e70664..a973cb70 100644 --- a/src/views/portal/course/Detail.vue +++ b/src/views/portal/course/Detail.vue @@ -213,6 +213,9 @@ export default { this.showQrimage(); this.isSignUp(); }else{ + if(rs.status==204){ //无查看此课程的权限 + this.courseInfo.name=rs.result.course.name; + } this.$message.error(rs.message); } }) diff --git a/src/views/portal/course/Micro.vue b/src/views/portal/course/Micro.vue index 158271ea..26e60f8c 100644 --- a/src/views/portal/course/Micro.vue +++ b/src/views/portal/course/Micro.vue @@ -447,6 +447,9 @@ export default { //study info this.loadStudyInfo(); } else { + if(rs.status==204){ //无查看此课程的权限 + this.courseInfo.name=rs.result.course.name; + } this.$message.error(rs.message); } });