Commit a1bfdb1a authored by zhengke's avatar zhengke

修改

parent 792fc6a6
......@@ -50,7 +50,7 @@
<div class="col-2 q-table__title">班级信息</div>
<q-space />
<div class="page-option">
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增班级" @click="EditCourse(null)" />
<q-btn color="accent" v-if="AuthorityObj.isShowAddBtn" size="sm" class="q-mr-md" icon="add" label="新增班级" @click="EditCourse(null)" />
</div>
</template>
<template v-slot:body-cell-CourseId="props">
......@@ -331,6 +331,7 @@
},
//权限显示对象
AuthorityObj: {
isShowAddBtn: false, //显示新增按钮
isShowDelBtn: false, //显示删除
isShowRestoreBtn: false, //显示恢复
isShowOtherCourseBtn: false, //显示关联其他课程
......@@ -351,6 +352,9 @@
//初始化权限信息
initAuth() {
if (this.authObj) {
if (this.authObj.isShowAddBtn != null && this.authObj.isShowAddBtn){
this.AuthorityObj.isShowAddBtn = this.authObj.isShowAddBtn;
}
if (this.authObj.isShowDelBtn != null && this.authObj.isShowDelBtn) {
this.AuthorityObj.isShowDelBtn = this.authObj.isShowDelBtn;
}
......
......@@ -114,6 +114,7 @@
pageCount: 0,
//权限判断
authObj: {
isShowAddBtn: true, //显示新增按钮
isShowDelBtn: true, //显示删除
isShowRestoreBtn: true, //显示恢复
isShowOtherCourseBtn: true, //显示关联其他课程
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment