提交权限控制

This commit is contained in:
daihh
2023-01-06 16:02:21 +08:00
parent 3237d67af2
commit 153be9e6af
2 changed files with 21 additions and 20 deletions

View File

@@ -27,6 +27,7 @@
<el-menu-item index="/examine/notapproved">
<span class="textl"><el-badge :value="messagesBeReviewed" class="item" :hidden="messagesBeReviewed == 0">待审核的课程</el-badge></span>
</el-menu-item>
<!-- 毛继禹 110858,只有这个人才可以看到这个菜单当前-->
<el-menu-item index="/course/opencourse/audit">
<span class="textl">公开课审核</span>
</el-menu-item>

View File

@@ -587,27 +587,27 @@ export default {
},
// 课程查询
async searchData(pageReset) {
if(pageReset){
this.page.pageIndex=1;
}
this.params.resOwner1 = this.resOwner[0];
this.params.resOwner2 = this.resOwner[1];
this.params.resOwner3 = this.resOwner[2];
this.params.pageIndex = this.page.pageIndex;
this.params.pageSize = this.page.pageSize;
this.params.sysType1 = this.sysTypeList[0];
this.params.sysType2 = this.sysTypeList[1];
this.params.sysType3 = this.sysTypeList[2];
try {
const {result, status} = await apiCourse.pageList(this.params);
if(status === 200) {
this.pageData = result.list;
this.page.count = result.count;
}
} catch (error) {
console.log(error);
searchData(pageReset) {
if(pageReset){
this.page.pageIndex=1;
}
this.params.resOwner1 = this.resOwner[0];
this.params.resOwner2 = this.resOwner[1];
this.params.resOwner3 = this.resOwner[2];
this.params.pageIndex = this.page.pageIndex;
this.params.pageSize = this.page.pageSize;
this.params.sysType1 = this.sysTypeList[0];
this.params.sysType2 = this.sysTypeList[1];
this.params.sysType3 = this.sysTypeList[2];
apiCourse.pageList(this.params).then(rs=>{
if(rs.status==200){
this.pageData = rs.result.list;
this.page.count = rs.result.count;
}else{
return this.$message.error(rs.message);
}
})
},
viewTopic(row) {
if(row.status == 1) {