Commit 8ee337db authored by Mac's avatar Mac

1

parent 12429021
...@@ -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
});
}
...@@ -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})
} }
......
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