|
|
|
@ -73,7 +73,7 @@ |
|
|
|
|
}"> |
|
|
|
|
<el-cascader |
|
|
|
|
v-model="item.cascaderValue" |
|
|
|
|
:options="majorList" |
|
|
|
|
:options="orgList" |
|
|
|
|
style="width: 100%" |
|
|
|
|
></el-cascader> |
|
|
|
|
</el-form-item> |
|
|
|
@ -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 { |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.wrap { |
|
|
|
|
display: flex; |
|
|
|
|
padding: 24px; |
|
|
|
|
padding: 0 24px; |
|
|
|
|
.side { |
|
|
|
|
width: 300px; |
|
|
|
|
padding-right: 10px; |
|
|
|
|
padding: 24px 10px 24px 0; |
|
|
|
|
margin-right: 24px; |
|
|
|
|
border-right: 1px solid rgba(0, 0, 0, 0.06); |
|
|
|
|
} |
|
|
|
|