Commit 43c4c23b authored by zhengke's avatar zhengke

parent d4e66d1c
......@@ -186,3 +186,16 @@ export function UpdateEmployeeType(data) {
data
})
}
/**
* 获取用户角色下拉
* @param {查询参数} data
*/
export function GetUserRoleList(data) {
return request({
url: '/User/GetUserRoleList',
method: 'post',
data
})
}
......@@ -118,7 +118,8 @@
} from '../../../api/common/common'
import selectTree from '../../common/select-tree'
import {
queryEmployee //员工列表
queryEmployee, //员工列表
GetUserRoleList
} from '../../../api/users/user'
export default {
components: {},
......@@ -171,13 +172,7 @@
Id: 1,
Name: '女'
}],
roleList:[{
Id:1,
Name:'市场人员'
},{
Id:2,
Name:'课程顾问'
}],
roleList:[],
EducationList: [], //学历数组
LeaveStatusList: [], //在职状态
isEditShow: false, //是否显示修改应该隐藏
......@@ -206,11 +201,19 @@
this.getEducationList();
this.getLeaveState();
this.Employee();
this.getRoleList();
},
mounted() {
this.initObj();
},
methods: {
getRoleList(){
GetUserRoleList().then(res => {
if (res.Code == 1) {
this.roleList = res.Data;
}
})
},
Employee() {
var qMsg = {
EmployeeName: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment