工作组连续选人bug
This commit is contained in:
@@ -261,7 +261,6 @@ export default {
|
||||
this.workData = res.data.records;
|
||||
this.total = res.data.total;
|
||||
}, e => {
|
||||
console.log(e);
|
||||
});
|
||||
},
|
||||
workChange(data) {
|
||||
@@ -306,7 +305,6 @@ export default {
|
||||
this.addForm = this.workChangeList[0];
|
||||
this.addModel = true;
|
||||
}
|
||||
console.log(this.workChangeList);
|
||||
|
||||
},
|
||||
//批量删除
|
||||
@@ -342,7 +340,11 @@ export default {
|
||||
},
|
||||
//取消新增
|
||||
cancelModel() {
|
||||
this.addForm = {};
|
||||
this.addForm = {
|
||||
workGroup: "",
|
||||
workPeopleGroup: [],
|
||||
workLeaderGroup: []
|
||||
};
|
||||
this.addModel = false;
|
||||
},
|
||||
//确定新增
|
||||
@@ -384,7 +386,6 @@ export default {
|
||||
}, e => {
|
||||
});
|
||||
this.addModel = false;
|
||||
this.addForm = {};
|
||||
this.nodeList = [];
|
||||
this.nodeList2 = [];
|
||||
}
|
||||
@@ -446,6 +447,11 @@ export default {
|
||||
}
|
||||
},
|
||||
checkedRole(data) {
|
||||
this.addForm = {
|
||||
workGroup: this.addForm.workGroup || "",
|
||||
workPeopleGroup: this.addForm.workPeopleGroup || [],
|
||||
workLeaderGroup: this.addForm.workLeaderGroup || []
|
||||
};
|
||||
data.forEach(item => {
|
||||
if (this.addForm.workLeaderGroup.findIndex(item1 => {
|
||||
return item1.id === item.id;
|
||||
@@ -456,8 +462,14 @@ export default {
|
||||
});
|
||||
}
|
||||
});
|
||||
this.roleModal = false
|
||||
},
|
||||
checkedRole2(data) {
|
||||
this.addForm = {
|
||||
workGroup: this.addForm.workGroup || "",
|
||||
workPeopleGroup: this.addForm.workPeopleGroup || [],
|
||||
workLeaderGroup: this.addForm.workLeaderGroup || []
|
||||
};
|
||||
data.forEach(item => {
|
||||
if (this.addForm.workPeopleGroup.findIndex(item2 => {
|
||||
return item2.id === item.id;
|
||||
@@ -468,6 +480,7 @@ export default {
|
||||
});
|
||||
}
|
||||
});
|
||||
this.roleModal2 = false
|
||||
},
|
||||
pageChange(page) {
|
||||
this.page = page;
|
||||
|
||||
Reference in New Issue
Block a user