提交测试

This commit is contained in:
daihh
2022-07-22 10:51:13 +08:00
parent 0b9acf52fb
commit e8d1361c8d
3 changed files with 17 additions and 11 deletions

View File

@@ -346,18 +346,17 @@ export default {
} }
} }
}, },
created() {
this.getSearch();
},
mounted() { mounted() {
this.loadResOwners(); this.loadResOwners();
this.getResOwnerTree().then(rs => { this.getResOwnerTree().then(rs => {
this.resOwnerListMap = rs; this.resOwnerListMap = rs;
}); });
this.search();
}, },
methods: { methods: {
search(){ search(){
this.params.pageIndex = 1; //this.params.pageIndex = 1;
this.page.pageIndex=1;
this.getSearch(); this.getSearch();
}, },
reset() { reset() {
@@ -369,7 +368,8 @@ export default {
this.params.resOwner1 = ''; this.params.resOwner1 = '';
this.params.resOwner2 = ''; this.params.resOwner2 = '';
this.params.resOwner3 = ''; this.params.resOwner3 = '';
this.params.pageIndex = 1; //this.params.pageIndex = 1;
this.page.pageIndex=1;
this.getSearch(); this.getSearch();
}, },
...mapActions({ ...mapActions({

View File

@@ -213,6 +213,9 @@ export default {
this.showQrimage(); this.showQrimage();
this.isSignUp(); this.isSignUp();
}else{ }else{
if(rs.status==204){ //无查看此课程的权限
this.courseInfo.name=rs.result.course.name;
}
this.$message.error(rs.message); this.$message.error(rs.message);
} }
}) })

View File

@@ -447,6 +447,9 @@ export default {
//study info //study info
this.loadStudyInfo(); this.loadStudyInfo();
} else { } else {
if(rs.status==204){ //无查看此课程的权限
this.courseInfo.name=rs.result.course.name;
}
this.$message.error(rs.message); this.$message.error(rs.message);
} }
}); });