-
+
@@ -29,8 +29,7 @@ export default {
staff: '员工管理',
role: '角色权限',
organization: '架构管理'
- },
- showTabs: true
+ }
};
},
components: {
@@ -48,18 +47,23 @@ export default {
Setting.dynamicRoute && this.initTabs()
},
methods: {
- tabChange(index){
+ tabChange(index){
this.active = index
- this.$refs.breadcrumb.update('系统分管设置/' + this.tabs[this.active])
+ this.$refs.breadcrumb.update('系统设置/' + this.tabs[this.active])
},
initTabs(){
- let showStaff = this.btns.includes('系统分管设置:员工管理')
- let showRole = this.btns.includes('系统分管设置:角色权限')
+ let tab1 = this.btns.includes('系统设置:员工管理')
+ let tab2 = this.btns.includes('系统设置:角色权限')
+ let tab3 = this.btns.includes('系统设置:架构管理')
- if(!showStaff || !showRole){
- this.showTabs = false
+ if(!tab1 && tab2){
+ this.active = 'role'
+ }else if(!tab1 && !tab2 && tab3){
+ this.active = 'organization'
}
- !showStaff && showRole && (this.activeName = 'role')
+ if(!tab1) delete this.tabs.staff
+ if(!tab2) delete this.tabs.role
+ if(!tab3) delete this.tabs.organization
}
}
};
diff --git a/src/pages/system/list/organization.vue b/src/pages/system/list/organization.vue
index deb5fee..c2c18c9 100644
--- a/src/pages/system/list/organization.vue
+++ b/src/pages/system/list/organization.vue
@@ -30,7 +30,7 @@
@@ -42,7 +42,7 @@
@@ -132,7 +132,7 @@ export default {
}
},
async majorChange(){
- let res = await this.$get(this.api.queryStaffPAN, { name: this.Form.majorName,schoolId: this.schoolId });
+ let res = await this.$get(this.api.queryStaffPAN, { name: this.Form.majorName,schoolId: this.clientId });
if(res.data.StaffProfessionalArchitecture != null){
util.warningMsg('该一级部门已存在');
this.majorNoAdd = false
@@ -155,7 +155,7 @@ export default {
let data = {
staffProfessionalArchitectureName: this.Form.majorName,
staffProfessionalArchitectureId: this.Form.MajorId,
- schoolId: this.schoolId,
+ schoolId: this.clientId,
}
if(this.Form.MajorId){
this.$post(this.api.updateStaffPro,data).then(res => {
@@ -178,11 +178,11 @@ export default {
this.isAddDepartment = true
this.Form.MajorId = item.staffProfessionalArchitectureId
},
- sureDepartment(Form){
+ sureDepartment(){
if(!this.Form.departmentName) return util.warningMsg('请输入部门名称');
if(!this.depNoAdd) return util.warningMsg('该二级部门已存在');
let data = {
- schoolId: this.schoolId,
+ schoolId: this.clientId,
staffGradeName: this.Form.departmentName,
staffProfessionalArchitectureId: this.Form.MajorId,
staffGradeId: this.Form.departmentId
diff --git a/src/pages/system/list/role.vue b/src/pages/system/list/role.vue
index df49c64..379c9df 100644
--- a/src/pages/system/list/role.vue
+++ b/src/pages/system/list/role.vue
@@ -39,9 +39,8 @@