|
@@ -28,6 +28,7 @@
|
28
|
28
|
|
29
|
29
|
<groupDialog
|
30
|
30
|
:dialogVisible="groupDialogVisible"
|
|
31
|
+ :group_id="currentGroupId"
|
31
|
32
|
@confirm="onConfirmGroupDialog"
|
32
|
33
|
@cancel="onCancelGroupDialog"
|
33
|
34
|
/>
|
|
@@ -57,6 +58,7 @@ export default {
|
57
|
58
|
groupList: [],
|
58
|
59
|
|
59
|
60
|
groupDialogVisible: false,
|
|
61
|
+ currentGroupId: '',
|
60
|
62
|
}
|
61
|
63
|
},
|
62
|
64
|
created () {
|
|
@@ -102,6 +104,7 @@ export default {
|
102
|
104
|
},
|
103
|
105
|
// 监听点击“创建组”
|
104
|
106
|
onClickCreateGroup() {
|
|
107
|
+ this.currentGroupId = ''
|
105
|
108
|
this.groupDialogVisible = true
|
106
|
109
|
},
|
107
|
110
|
// 监听点击“编辑组”
|
|
@@ -109,7 +112,11 @@ export default {
|
109
|
112
|
console.log('onClickEditGroup row => ', row)
|
110
|
113
|
this.groupDialogVisible = true
|
111
|
114
|
},
|
112
|
|
- onConfirmGroupDialog() {
|
|
115
|
+ onConfirmGroupDialog({ isEdit }) {
|
|
116
|
+ if (!isEdit){
|
|
117
|
+ this.pagination.page = 1
|
|
118
|
+ }
|
|
119
|
+ this.handleGetGroupList()
|
113
|
120
|
this.groupDialogVisible = false
|
114
|
121
|
},
|
115
|
122
|
onCancelGroupDialog() {
|