|
|
|
@ -18,15 +18,15 @@ |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
<div> |
|
|
|
|
<el-button v-auth="'员工管理:新增员工'" |
|
|
|
|
<el-button v-auth="'教师管理:新增教师'" |
|
|
|
|
type="info" |
|
|
|
|
round |
|
|
|
|
@click="addTeacher">新增教师</el-button> |
|
|
|
|
<el-button v-auth="'员工管理:批量导入'" |
|
|
|
|
<el-button v-auth="'教师管理:批量导入'" |
|
|
|
|
type="primary" |
|
|
|
|
round |
|
|
|
|
@click="batchImport">批量导入</el-button> |
|
|
|
|
<el-button v-auth="'员工管理:批量删除'" |
|
|
|
|
<el-button v-auth="'教师管理:批量删除'" |
|
|
|
|
type="primary" |
|
|
|
|
round |
|
|
|
|
@click="delAllSelection">批量删除</el-button> |
|
|
|
@ -68,16 +68,16 @@ |
|
|
|
|
width="200" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button v-auth="'员工管理:员工查看'" |
|
|
|
|
<el-button v-auth="'教师管理:教师查看'" |
|
|
|
|
type="text" |
|
|
|
|
@click="showTeacher(scope.row)">查看</el-button> |
|
|
|
|
<el-button v-auth="'员工管理:员工编辑'" |
|
|
|
|
<el-button v-auth="'教师管理:教师编辑'" |
|
|
|
|
type="text" |
|
|
|
|
@click="editTeacher(scope.row)">编辑</el-button> |
|
|
|
|
<el-button v-auth="'员工管理:重置密码'" |
|
|
|
|
<el-button v-auth="'教师管理:重置密码'" |
|
|
|
|
type="text" |
|
|
|
|
@click="resetPassword(scope.row)">重置密码</el-button> |
|
|
|
|
<el-button v-auth="'员工管理:员工删除'" |
|
|
|
|
<el-button v-auth="'教师管理:教师删除'" |
|
|
|
|
type="text" |
|
|
|
|
@click="delTeacher(scope.row)">删除</el-button> |
|
|
|
|
</template> |
|
|
|
@ -218,7 +218,7 @@ export default { |
|
|
|
|
isAdd: false, |
|
|
|
|
teacherVisible: false, |
|
|
|
|
roleList: [], // 角色列表 |
|
|
|
|
orgList: [], // 员工组织架构列表 |
|
|
|
|
orgList: [], // 教师组织架构列表 |
|
|
|
|
casProps: { |
|
|
|
|
value: 'id' |
|
|
|
|
}, |
|
|
|
@ -267,7 +267,7 @@ export default { |
|
|
|
|
phoneRepeat: false, |
|
|
|
|
emailRepeat: false, |
|
|
|
|
|
|
|
|
|
listData: [], // 员工列表数据 |
|
|
|
|
listData: [], // 教师列表数据 |
|
|
|
|
keyword: "", |
|
|
|
|
page: 1, |
|
|
|
|
pageSize: 10, |
|
|
|
@ -278,9 +278,9 @@ export default { |
|
|
|
|
uploadList: [], // 上传文件列表 |
|
|
|
|
uploadFaild: false, // 上传失败 |
|
|
|
|
|
|
|
|
|
gradeId: "", // 员工年级ID |
|
|
|
|
staffArchitectureId: "", // 员工部门ID |
|
|
|
|
submiting: false // 新增编辑员工防抖标识 |
|
|
|
|
gradeId: "", // 教师年级ID |
|
|
|
|
staffArchitectureId: "", // 教师部门ID |
|
|
|
|
submiting: false // 新增编辑教师防抖标识 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
components: { |
|
|
|
@ -325,7 +325,7 @@ export default { |
|
|
|
|
this.page = 1 |
|
|
|
|
this.getData() |
|
|
|
|
}, |
|
|
|
|
getData () { // 获取员工列表数据 |
|
|
|
|
getData () { // 获取教师列表数据 |
|
|
|
|
let data = { |
|
|
|
|
keyWord: this.keyword, |
|
|
|
|
pageNum: this.page, |
|
|
|
@ -351,7 +351,7 @@ export default { |
|
|
|
|
// this.roleList = res.rolePage.records; |
|
|
|
|
}).catch(res => { }); |
|
|
|
|
}, |
|
|
|
|
closeTeacher () { // 关闭新增/编辑员工对话框 |
|
|
|
|
closeTeacher () { // 关闭新增/编辑教师对话框 |
|
|
|
|
this.form = { |
|
|
|
|
accountId: "", |
|
|
|
|
account: "", |
|
|
|
@ -366,13 +366,13 @@ export default { |
|
|
|
|
this.$refs.form.clearValidate(); |
|
|
|
|
this.teacherVisible = false; |
|
|
|
|
}, |
|
|
|
|
addTeacher () { // 新增员工 |
|
|
|
|
addTeacher () { // 新增教师 |
|
|
|
|
this.isDetail = false; |
|
|
|
|
this.isAdd = true; |
|
|
|
|
this.teacherVisible = true; |
|
|
|
|
this.orgList = this.$refs.org.orgList; |
|
|
|
|
}, |
|
|
|
|
getStaffDetail (accountId) { // 获取员工详情 |
|
|
|
|
getStaffDetail (accountId) { // 获取教师详情 |
|
|
|
|
this.$get(`${this.api.staffDetail}?accountId=${accountId}`).then(res => { |
|
|
|
|
let { data } = res; |
|
|
|
|
this.form = data; |
|
|
|
|