校工会活动管理员设置活动组别,可以查看且设置所有人
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="search-item" v-if="is_sysadmin || is_A06">
|
||||
<div class="search-item" v-if="has_school_scope_view_permission">
|
||||
<div class="search-item-label">所属工会</div>
|
||||
<div class="search-item-option">
|
||||
<el-select
|
||||
@@ -196,6 +196,12 @@ module.exports = {
|
||||
is_A06() {
|
||||
return this.roleData.is_A06
|
||||
},
|
||||
is_school_union_activity_admin() {
|
||||
return this.roleData.is_school_union_activity_admin
|
||||
},
|
||||
has_school_scope_view_permission() {
|
||||
return this.is_sysadmin || this.is_A06 || this.is_school_union_activity_admin
|
||||
},
|
||||
is_H04() {
|
||||
return this.roleData.is_H04
|
||||
},
|
||||
@@ -292,7 +298,7 @@ module.exports = {
|
||||
},
|
||||
async flushUnits() {
|
||||
this.$set(this.pageForm, "unitId", "")
|
||||
if (this.is_A06 || this.is_sysadmin) {
|
||||
if (this.has_school_scope_view_permission) {
|
||||
this.units = await this.$businessTool.listUnit(this.pageForm.unionId)
|
||||
// this.ActivityUnits = await getActivityUnits(this.pageForm.activityUnionId)
|
||||
} else {
|
||||
@@ -328,11 +334,11 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
await this.getRolesAndUnion()
|
||||
this.unions = await this.$businessTool.listUnion()
|
||||
// this.ActivityUnions = await getActivityUnions()
|
||||
await this.flushUnits()
|
||||
await this.getActivityGroup()
|
||||
await this.getRolesAndUnion()
|
||||
this.viewGroupName()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user