From b083467f5552863b614c33c6fdec53521e0986f6 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Fri, 25 Feb 2022 16:44:36 +0800
Subject: [PATCH] =?UTF-8?q?=E5=91=98=E5=B7=A5=E7=BB=84=E7=BB=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/system/list/staff.vue | 16 ++++++++--------
src/pages/system/list/staffSide.vue | 2 +-
src/setting.js | 4 ++--
3 files changed, 11 insertions(+), 11 deletions(-)
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 {