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
750c32a1
Commit
750c32a1
authored
Dec 23, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
edc27666
8ee337db
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
4 deletions
+32
-4
post.js
src/api/system/post.js
+10
-0
ApprovalProcess.vue
src/pages/administration/ApprovalProcess.vue
+22
-4
No files found.
src/api/system/post.js
View file @
750c32a1
...
...
@@ -67,3 +67,13 @@ export function queryDeptPostList(data) {
data
});
}
/**
* 获取部门岗位列表
*/
export
function
getDeptPostTree
(
data
)
{
return
request
({
url
:
'/User/GetDeptPostTree'
,
method
:
'post'
,
data
});
}
src/pages/administration/ApprovalProcess.vue
View file @
750c32a1
...
...
@@ -169,6 +169,7 @@
ref=
"treeRole"
show-checkbox
:filter-node-method=
"filterNode1"
node-key=
"PostId"
:props=
"defaultProps1"
@
check-change=
"checkedRole"
>
...
...
@@ -231,6 +232,9 @@
import
{
getEmployeeAddrBook
}
from
'../../api/users/user'
import
{
getDeptPostTree
,
}
from
'../../api/system/post'
export
default
{
data
()
{
...
...
@@ -470,9 +474,21 @@
getRole
()
{
this
.
outerVisible1
=
true
;
this
.
dialogTitle
=
'选择岗位'
;
this
.
apipost
(
'WorkFlow_get_GetDepartMentPost'
,
{},
res
=>
{
this
.
roleList
=
res
.
data
.
data
},
err
=>
{})
let
msg
=
{
pageIndex
:
1
,
pageSize
:
99999
,
PostName
:
""
,
//岗位名称
PostId
:
0
,
//岗位编号
Status
:
"-1"
,
}
getDeptPostTree
(
msg
).
then
(
res
=>
{
this
.
roleList
=
res
.
Data
}).
catch
(()
=>
{
})
// this.apipost('WorkFlow_get_GetDepartMentPost', {}, res => {
// this.roleList = res.data.data
// }, err => {})
},
handleNodeChange1
(
data
,
checked
)
{
data
.
IsCheck
=
checked
;
...
...
@@ -568,8 +584,10 @@
},
checkedRole
(
data
,
checked
){
console
.
log
(
data
,
checked
)
data
.
IsCheck
=
checked
;
if
(
data
.
Disabled
==
false
&&
data
.
IsCheck
){
// if(data.Disabled==false&&data.IsCheck){
if
(
data
.
IsCheck
){
this
.
showRole
=
[];
this
.
showRole
.
push
({
DeptName
:
data
.
DeptName
,
Id
:
data
.
DeptId
})
}
...
...
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