|
|
@ -432,17 +432,6 @@ export default {
|
|
|
|
this.rightList = [];
|
|
|
|
this.rightList = [];
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
const teamId = row.teamId || this.ids
|
|
|
|
const teamId = row.teamId || this.ids
|
|
|
|
// listTeamMembers(this.queryParams).then(response => {
|
|
|
|
|
|
|
|
// console.log(response.rows);
|
|
|
|
|
|
|
|
// for(let i in response.rows){
|
|
|
|
|
|
|
|
// // 将返回的列表赋值于穿梭框左边列表
|
|
|
|
|
|
|
|
// this.leftList.push({
|
|
|
|
|
|
|
|
// id:response.rows[i].userId,
|
|
|
|
|
|
|
|
// key: response.rows[i].userId,
|
|
|
|
|
|
|
|
// label: response.rows[i].userName
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
console.log('this.leftList',this.leftList);
|
|
|
|
console.log('this.leftList',this.leftList);
|
|
|
|
getTeam(teamId).then(response => {
|
|
|
|
getTeam(teamId).then(response => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
@ -471,7 +460,9 @@ export default {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.form.rightData = this.rightList;
|
|
|
|
addTeam(this.form).then(response => {
|
|
|
|
addTeam(this.form).then(response => {
|
|
|
|
|
|
|
|
console.log("打印1",this.rightList,"打印2",this.form.rightData);
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
this.open = false;
|
|
|
|
this.open = false;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|