| | |
| | | getDeptUserList: id => get('/api/admin/department/' + id + '/user-list'), |
| | | // 获取当前用户管理的部门 |
| | | getDeptAdmins: id => get('/api/admin/department/getDeptAdmins'), |
| | | // 获取当前用户管理的部门(不分层级关系) |
| | | getCurrentDeptId: id => get('/api/admin/department/getCurrentDeptId'), |
| | | // 修改部门管理员 |
| | | updateDeptAdmin: data => post('/api/admin/department/update-admin', data), |
| | | cascaderList: () => get('/api/admin/department/cascader') |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | departmentApi.getCurrentDeptId().then(res => { |
| | | if (res.response && res.response[0]) { |
| | | this.form.deptId = res.response[0]; |
| | | } |
| | | }); |
| | | let id = this.$route.query.id; |
| | | let _this = this; |
| | | this.initSubject(function () { |
| | |
| | | }); |
| | | }, |
| | | async mounted() { |
| | | departmentApi.getCurrentDeptId().then(res => { |
| | | if (res.response && res.response[0]) { |
| | | this.form.deptId = res.response[0]; |
| | | } |
| | | }); |
| | | |
| | | let id = this.$route.query.id; |
| | | let _this = this; |