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
03d80291
Commit
03d80291
authored
Apr 18, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
37ceddb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
6 deletions
+37
-6
student-Assit.vue
src/components/school/student/student-Assit.vue
+37
-6
No files found.
src/components/school/student/student-Assit.vue
View file @
03d80291
...
...
@@ -33,7 +33,7 @@
<
template
>
<div>
<!--课程顾问 或有教师权限-->
<template
v-if=
"userInfo.IsCourseConsultant == 1||isHaveTeacherEdit"
>
<template
v-if=
"userInfo.IsCourseConsultant == 1||isHaveTeacherEdit
||isHaveXueManager
"
>
<q-btn
label=
"新增"
color=
"accent q-mb-lg"
size=
"sm"
@
click=
"isShowAdd = true"
/>
</
template
>
<
template
v-else
>
...
...
@@ -70,7 +70,7 @@
<td>
{{ item.AssistTypeName }}
</td>
<td>
{{ item.AssistName }}
</td>
<td>
<
template
v-if=
"userInfo.IsCourseConsultant == 1||isHaveTeacherEdit"
>
<
template
v-if=
"userInfo.IsCourseConsultant == 1||isHaveTeacherEdit
||isHaveXueManager
"
>
<div
v-if=
"userInfo.IsCourseConsultant == 1&&item.AssistType != 2 && item.AssistType != 4"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"修改"
@
click=
"getEditInfo(item)"
></q-btn>
...
...
@@ -83,6 +83,12 @@
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
style=
"font-weight:400"
label=
"删除"
@
click=
"deleteAssits(item.Id)"
/>
</div>
<div
v-if=
"isHaveXueManager &&item.AssistType ==6"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"修改"
@
click=
"getEditInfo(item)"
></q-btn>
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
style=
"font-weight:400"
label=
"删除"
@
click=
"deleteAssits(item.Id)"
/>
</div>
<div
v-if=
"isShowBian(item)"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"修改"
@
click=
"getGuwenEditInfo(item)"
></q-btn>
...
...
@@ -170,6 +176,24 @@
}
}
return
false
;
},
//是否有新增班主任权限
isHaveXueManager
(
state
)
{
if
(
state
.
user
.
userInfo
&&
state
.
user
.
userInfo
.
ActionMenuList
&&
state
.
user
.
userInfo
.
ActionMenuList
.
length
>
0
)
{
let
action
=
state
.
user
.
userInfo
.
ActionMenuList
.
find
(
x
=>
{
if
(
x
.
FunctionCode
==
"Add_TeacherManager"
)
{
return
x
;
}
});
if
(
action
)
{
return
true
;
}
}
return
false
;
}
}),
mounted
()
{
...
...
@@ -193,9 +217,16 @@
if
(
x
.
Id
!=
1
&&
x
.
Id
!=
4
)
{
this
.
AssistDropList
.
push
(
x
);
}
}
else
if
(
this
.
userInfo
.
IsCourseConsultant
==
0
&&
this
.
isHaveTeacherEdit
)
{
if
(
x
.
Id
==
4
)
{
this
.
AssistDropList
.
push
(
x
);
}
else
if
(
this
.
userInfo
.
IsCourseConsultant
==
0
)
{
if
(
this
.
isHaveTeacherEdit
)
{
if
(
x
.
Id
==
4
)
{
this
.
AssistDropList
.
push
(
x
);
}
}
if
(
this
.
isHaveXueManager
)
{
if
(
x
.
Id
==
6
)
{
this
.
AssistDropList
.
push
(
x
);
}
}
}
});
...
...
@@ -268,7 +299,7 @@
let
isShow
=
false
;
if
(
item
.
AssistTypeName
==
'课程顾问'
)
{
// if (this.userInfo.AccountName == item.AssistName) {
isShow
=
true
isShow
=
true
// }
}
return
isShow
;
...
...
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