Commit 03d80291 authored by 黄奎's avatar 黄奎

页面修改

parent 37ceddb7
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<template> <template>
<div> <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" /> <q-btn label="新增" color="accent q-mb-lg" size="sm" @click="isShowAdd = true" />
</template> </template>
<template v-else> <template v-else>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<td>{{ item.AssistTypeName }}</td> <td>{{ item.AssistTypeName }}</td>
<td>{{ item.AssistName }}</td> <td>{{ item.AssistName }}</td>
<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"> <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="修改" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="修改"
@click="getEditInfo(item)"></q-btn> @click="getEditInfo(item)"></q-btn>
...@@ -83,6 +83,12 @@ ...@@ -83,6 +83,12 @@
<q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" label="删除" <q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" label="删除"
@click="deleteAssits(item.Id)" /> @click="deleteAssits(item.Id)" />
</div> </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)"> <div v-if="isShowBian(item)">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="修改" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="修改"
@click="getGuwenEditInfo(item)"></q-btn> @click="getGuwenEditInfo(item)"></q-btn>
...@@ -170,6 +176,24 @@ ...@@ -170,6 +176,24 @@
} }
} }
return false; 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() { mounted() {
...@@ -193,9 +217,16 @@ ...@@ -193,9 +217,16 @@
if (x.Id != 1 && x.Id != 4) { if (x.Id != 1 && x.Id != 4) {
this.AssistDropList.push(x); this.AssistDropList.push(x);
} }
} else if (this.userInfo.IsCourseConsultant == 0 && this.isHaveTeacherEdit) { } else if (this.userInfo.IsCourseConsultant == 0) {
if (x.Id == 4) { if (this.isHaveTeacherEdit) {
this.AssistDropList.push(x); if (x.Id == 4) {
this.AssistDropList.push(x);
}
}
if (this.isHaveXueManager) {
if (x.Id == 6) {
this.AssistDropList.push(x);
}
} }
} }
}); });
...@@ -268,7 +299,7 @@ ...@@ -268,7 +299,7 @@
let isShow = false; let isShow = false;
if (item.AssistTypeName == '课程顾问') { if (item.AssistTypeName == '课程顾问') {
// if (this.userInfo.AccountName == item.AssistName) { // if (this.userInfo.AccountName == item.AssistName) {
isShow = true isShow = true
// } // }
} }
return isShow; return isShow;
......
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