diff --git a/src/pages/system/list/staff.vue b/src/pages/system/list/staff.vue
index f9b204a..a813050 100644
--- a/src/pages/system/list/staff.vue
+++ b/src/pages/system/list/staff.vue
@@ -73,7 +73,7 @@
}">
@@ -160,7 +160,7 @@ export default {
isAdd: false,
teacherVisible: false,
roleList: [], // 角色列表
- majorList: [], // 员工组织架构列表
+ orgList: [], // 员工组织架构列表
teacherForm: {
accountId: "",
account: "",
@@ -303,8 +303,8 @@ export default {
this.isDetail = false;
this.isAdd = true;
this.teacherVisible = true;
- this.majorList = this.$refs.getSelectData.majorList;
- // console.log(JSON.stringify(this.majorList));
+ this.orgList = this.$refs.org.orgList;
+ // console.log(JSON.stringify(this.orgList));
},
getStaffDetail(accountId) { // 获取员工详情
this.$get(`${this.api.staffDetail}?accountId=${accountId}`).then(res => {
@@ -331,14 +331,14 @@ export default {
this.isDetail = false;
this.isAdd = false;
this.teacherVisible = true;
- this.majorList = this.$refs.getSelectData.majorList;
+ this.orgList = this.$refs.org.orgList;
this.getStaffDetail(row.accountId);
},
showTeacher(row) { // 处理查看
this.isDetail = true;
this.isAdd = false;
this.teacherVisible = true;
- this.majorList = this.$refs.getSelectData.majorList;
+ this.orgList = this.$refs.org.orgList;
this.getStaffDetail(row.accountId);
},
accountChange() { // 切换账号
@@ -600,10 +600,10 @@ export default {