工作组编辑人员列表人员消失 51848

This commit is contained in:
宋伟佳
2022-03-17 11:20:44 +08:00
parent 71d825f85b
commit 7f044c8640
@@ -244,7 +244,9 @@ export default {
}, { }, {
_this: this _this: this
}, res => { }, res => {
res.data.records.map(item => { this.workData = res.data.records
let work = res.data.records
work.map(item => {
item.workLeaderGroup = []; item.workLeaderGroup = [];
item.workPeopleGroup = []; item.workPeopleGroup = [];
var workLeaderArray = item.workLeader.split(","); var workLeaderArray = item.workLeader.split(",");
@@ -258,8 +260,8 @@ export default {
item.workPeopleGroup.push({ name: workPeopleArray[j], id: workPeopleIdArray[j] }); item.workPeopleGroup.push({ name: workPeopleArray[j], id: workPeopleIdArray[j] });
} }
}); });
this.workData = res.data.records;
this.total = res.data.total; this.total = res.data.total;
this.Loading = false
}, e => { }, e => {
}); });
}, },
@@ -340,11 +342,14 @@ export default {
}, },
//取消新增 //取消新增
cancelModel() { cancelModel() {
this.Loading = true
this.addForm = { this.addForm = {
workGroup: "", workGroup: "",
workPeopleGroup: [], workPeopleGroup: [],
workLeaderGroup: [] workLeaderGroup: []
}; };
this.getWorkData();
this.$refs.workGroup.clearSelection()
this.addModel = false; this.addModel = false;
}, },
//确定新增 //确定新增
@@ -357,6 +362,7 @@ export default {
} else if (!this.addForm.workPeopleGroup.length) { } else if (!this.addForm.workPeopleGroup.length) {
this.$message.warning("请选择工作组组员"); this.$message.warning("请选择工作组组员");
} else { } else {
this.Loading = true
let workLeader = "", workLeaderId = ""; let workLeader = "", workLeaderId = "";
this.addForm.workLeaderGroup.map(item => { this.addForm.workLeaderGroup.map(item => {
workLeader += item.name; workLeader += item.name;
@@ -395,6 +401,7 @@ export default {
} else if (!this.addForm.workPeopleGroup.length) { } else if (!this.addForm.workPeopleGroup.length) {
this.$message.warning("请选择工作组组员"); this.$message.warning("请选择工作组组员");
} else { } else {
this.Loading = true
let workLeader = ""; let workLeader = "";
let workLeaderId = ""; let workLeaderId = "";
this.addForm.workLeaderGroup.map(item => { this.addForm.workLeaderGroup.map(item => {