更新班组
This commit is contained in:
@@ -31,7 +31,6 @@ export default {
|
||||
components: { treeTransfer },
|
||||
data() {
|
||||
return {
|
||||
groupId: undefined,
|
||||
title: ['待选', '已选'],
|
||||
mode: 'transfer',
|
||||
fromData: [], //左边内容
|
||||
@@ -39,10 +38,10 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
init(id) {
|
||||
init(val) {
|
||||
this._pageIndex = val._pageIndex-1;
|
||||
this.fromData = [];
|
||||
this.toData = [];
|
||||
this.groupId = id;
|
||||
getGroupPlanTree().then((res) => {
|
||||
this.fromData = res.data;
|
||||
this.fromData.forEach((item) => {
|
||||
@@ -62,7 +61,7 @@ export default {
|
||||
},
|
||||
// 表单提交
|
||||
dataFormSubmit() {
|
||||
this.$emit('refreshTableData',this.toData);
|
||||
this.$emit('refreshTableData', this._pageIndex,this.toData);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user