Commit 679575c6 authored by 夏敏伟's avatar 夏敏伟

修改bug

parent 786a5cb9
......@@ -168,7 +168,11 @@ export default {
leader: item.leader
};
item.teamMemberStateBOList.forEach((item1, index1) => {
obj.wpinfo.push(this.allData.filter(item2 => { return item2.account == item1.userId })[0]);
let tmpData = this.allData.filter(item2 => { return item2.account == item1.userId });
if (tmpData.length > 0) {
obj.wpinfo.push(tmpData[0]);
}
});
item.teamMemberStateBOList.forEach((item1, index1) => {
this.allData = this.allData.filter(item2 => { return item2.account != item1.userId });
......@@ -180,6 +184,7 @@ export default {
tmpList.unshift(tmpList.splice(index, 1)[0])
}
this.formData.teams = tmpList;
console.log(this.formData.teams);
}).catch(error => {
this.$message.error(error);
})
......
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