Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
43c4c23b
Commit
43c4c23b
authored
Dec 17, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一
parent
d4e66d1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
8 deletions
+24
-8
user.js
src/api/users/user.js
+13
-0
manager-form.vue
src/components/school/manager/manager-form.vue
+11
-8
No files found.
src/api/users/user.js
View file @
43c4c23b
...
@@ -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
})
}
src/components/school/manager/manager-form.vue
View file @
43c4c23b
...
@@ -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
:
''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment