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
8ee337db
Commit
8ee337db
authored
Dec 23, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
12429021
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 @
8ee337db
...
@@ -67,3 +67,13 @@ export function queryDeptPostList(data) {
...
@@ -67,3 +67,13 @@ export function queryDeptPostList(data) {
data
data
});
});
}
}
/**
* 获取部门岗位列表
*/
export
function
getDeptPostTree
(
data
)
{
return
request
({
url
:
'/User/GetDeptPostTree'
,
method
:
'post'
,
data
});
}
src/pages/administration/ApprovalProcess.vue
View file @
8ee337db
...
@@ -169,6 +169,7 @@
...
@@ -169,6 +169,7 @@
ref=
"treeRole"
ref=
"treeRole"
show-checkbox
show-checkbox
:filter-node-method=
"filterNode1"
:filter-node-method=
"filterNode1"
node-key=
"PostId"
:props=
"defaultProps1"
:props=
"defaultProps1"
@
check-change=
"checkedRole"
@
check-change=
"checkedRole"
>
>
...
@@ -231,6 +232,9 @@
...
@@ -231,6 +232,9 @@
import
{
import
{
getEmployeeAddrBook
getEmployeeAddrBook
}
from
'../../api/users/user'
}
from
'../../api/users/user'
import
{
getDeptPostTree
,
}
from
'../../api/system/post'
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -470,9 +474,21 @@
...
@@ -470,9 +474,21 @@
getRole
()
{
getRole
()
{
this
.
outerVisible1
=
true
;
this
.
outerVisible1
=
true
;
this
.
dialogTitle
=
'选择岗位'
;
this
.
dialogTitle
=
'选择岗位'
;
this
.
apipost
(
'WorkFlow_get_GetDepartMentPost'
,
{},
res
=>
{
let
msg
=
{
this
.
roleList
=
res
.
data
.
data
pageIndex
:
1
,
},
err
=>
{})
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
)
{
handleNodeChange1
(
data
,
checked
)
{
data
.
IsCheck
=
checked
;
data
.
IsCheck
=
checked
;
...
@@ -568,8 +584,10 @@
...
@@ -568,8 +584,10 @@
},
},
checkedRole
(
data
,
checked
){
checkedRole
(
data
,
checked
){
console
.
log
(
data
,
checked
)
data
.
IsCheck
=
checked
;
data
.
IsCheck
=
checked
;
if
(
data
.
Disabled
==
false
&&
data
.
IsCheck
){
// if(data.Disabled==false&&data.IsCheck){
if
(
data
.
IsCheck
){
this
.
showRole
=
[];
this
.
showRole
=
[];
this
.
showRole
.
push
({
DeptName
:
data
.
DeptName
,
Id
:
data
.
DeptId
})
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