|
|
@@ -760,11 +760,6 @@ export default {
|
|
|
this.$api.user.findHxUserList().then((res) => {
|
|
|
this.leaderOptions = res.data;
|
|
|
});
|
|
|
- this.$api.user
|
|
|
- .findBackListByDeptId({ deptId: this.deptId })
|
|
|
- .then((res) => {
|
|
|
- this.searchLeaderOptions = res.data;
|
|
|
- });
|
|
|
},
|
|
|
//联级选择器触发事件
|
|
|
handleChange(val) {
|
|
|
@@ -819,10 +814,6 @@ export default {
|
|
|
this.formData.userId = ''
|
|
|
}
|
|
|
},
|
|
|
- // 查询Start
|
|
|
- queryStaffInfo() {
|
|
|
- this.findPage();
|
|
|
- },
|
|
|
|
|
|
valids(data) {
|
|
|
this.detailValid = data;
|
|
|
@@ -915,16 +906,6 @@ export default {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
this.tableConfig.loading = false;
|
|
|
- // res.data.content.forEach(e=>{
|
|
|
- // this.levelOptions.filter(el=>{
|
|
|
- // if(el.value==e.type){
|
|
|
- // e.type= el.label
|
|
|
- // }
|
|
|
- // else{
|
|
|
- // e.type=''
|
|
|
- // }
|
|
|
- // })
|
|
|
- // })
|
|
|
this.pageResult = res.data.content;
|
|
|
this.pageData.pageNum = res.data.pageNum;
|
|
|
this.pageData.pageSize = res.data.pageSize;
|
|
|
@@ -938,7 +919,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleSearchList(data) {
|
|
|
- this.findPage(data);
|
|
|
+ // if(data &&data.level==0){
|
|
|
+ // data.level=''
|
|
|
+ // }
|
|
|
+ let dataP={
|
|
|
+ ... data,
|
|
|
+ level:data.level==0?'':data.level
|
|
|
+ }
|
|
|
+ this.findPage(dataP);
|
|
|
},
|
|
|
// 比例配置
|
|
|
proportionalAllocation(row){
|
|
|
@@ -1043,12 +1031,18 @@ export default {
|
|
|
},
|
|
|
onZTreeClick: function (evt, treeId, treeNode) {
|
|
|
// 点击事件
|
|
|
+ // this.currentTreeNode = evt;
|
|
|
+ // this.deptId = this.currentTreeNode.id;
|
|
|
+ // this.pdeptId = this.currentTreeNode.parentId;
|
|
|
+ // this.pageData.pageNum = 1;
|
|
|
+ // this.findPage();
|
|
|
+ // this.searchLeaderFun();
|
|
|
this.currentTreeNode = evt;
|
|
|
- this.deptId = this.currentTreeNode.id;
|
|
|
- this.pdeptId = this.currentTreeNode.parentId;
|
|
|
this.pageData.pageNum = 1;
|
|
|
+ this.pageData.pageSize = 10;
|
|
|
+ this.currentTreeNodeId = this.currentTreeNode.id
|
|
|
+ this.searchLeaderFun();
|
|
|
this.findPage();
|
|
|
- this.searchLeaderFun();
|
|
|
},
|
|
|
//新增人员
|
|
|
handleAddButton() {
|