工作组编辑人员列表人员消失 51848
This commit is contained in:
@@ -244,7 +244,9 @@ export default {
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
res.data.records.map(item => {
|
||||
this.workData = res.data.records
|
||||
let work = res.data.records
|
||||
work.map(item => {
|
||||
item.workLeaderGroup = [];
|
||||
item.workPeopleGroup = [];
|
||||
var workLeaderArray = item.workLeader.split(",");
|
||||
@@ -258,8 +260,8 @@ export default {
|
||||
item.workPeopleGroup.push({ name: workPeopleArray[j], id: workPeopleIdArray[j] });
|
||||
}
|
||||
});
|
||||
this.workData = res.data.records;
|
||||
this.total = res.data.total;
|
||||
this.Loading = false
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
@@ -340,11 +342,14 @@ export default {
|
||||
},
|
||||
//取消新增
|
||||
cancelModel() {
|
||||
this.Loading = true
|
||||
this.addForm = {
|
||||
workGroup: "",
|
||||
workPeopleGroup: [],
|
||||
workLeaderGroup: []
|
||||
};
|
||||
this.getWorkData();
|
||||
this.$refs.workGroup.clearSelection()
|
||||
this.addModel = false;
|
||||
},
|
||||
//确定新增
|
||||
@@ -357,6 +362,7 @@ export default {
|
||||
} else if (!this.addForm.workPeopleGroup.length) {
|
||||
this.$message.warning("请选择工作组组员");
|
||||
} else {
|
||||
this.Loading = true
|
||||
let workLeader = "", workLeaderId = "";
|
||||
this.addForm.workLeaderGroup.map(item => {
|
||||
workLeader += item.name;
|
||||
@@ -395,6 +401,7 @@ export default {
|
||||
} else if (!this.addForm.workPeopleGroup.length) {
|
||||
this.$message.warning("请选择工作组组员");
|
||||
} else {
|
||||
this.Loading = true
|
||||
let workLeader = "";
|
||||
let workLeaderId = "";
|
||||
this.addForm.workLeaderGroup.map(item => {
|
||||
|
||||
Reference in New Issue
Block a user