Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
a1bfdb1a
Commit
a1bfdb1a
authored
Jul 27, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
792fc6a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
classlist.vue
src/components/course/classlist.vue
+5
-1
stuClassManage.vue
src/pages/stuMan/stuClassManage.vue
+1
-0
No files found.
src/components/course/classlist.vue
View file @
a1bfdb1a
...
...
@@ -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
;
}
...
...
src/pages/stuMan/stuClassManage.vue
View file @
a1bfdb1a
...
...
@@ -114,6 +114,7 @@
pageCount
:
0
,
//权限判断
authObj
:
{
isShowAddBtn
:
true
,
//显示新增按钮
isShowDelBtn
:
true
,
//显示删除
isShowRestoreBtn
:
true
,
//显示恢复
isShowOtherCourseBtn
:
true
,
//显示关联其他课程
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment