Commit 43c4c23b authored by zhengke's avatar zhengke

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