Skip to content

Commit

Permalink
fix: 修复批量更新组件的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
orangemio authored and BaiJiangJie committed Nov 23, 2020
1 parent 7c21a6f commit dd7c492
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/layout/components/GenericUpdateFormDialog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default {
const url = this.url
const msg = this.updateSuccessMsg
this.$axios.patch(url, validValues).then((res) => {
vm.$emit('update')
this.$message.success(msg)
vm.dialogSetting.dialogVisible = false
}).catch(error => {
Expand Down
4 changes: 4 additions & 0 deletions src/views/users/User/UserList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
:selected-rows="updateSelectedDialogSetting.selectedRows"
:form-setting="updateSelectedDialogSetting.formSetting"
:dialog-setting="updateSelectedDialogSetting.dialogSetting"
@update="handleDialogUpdate"
/>
<InviteUsersDialog :setting="InviteDialogSetting" @close="handleInviteDialogClose" />
</div>
Expand Down Expand Up @@ -288,6 +289,9 @@ export default {
handleInviteDialogClose() {
this.InviteDialogSetting.InviteDialogVisible = false
this.$refs.GenericListPage.$refs.ListTable.reloadTable()
},
handleDialogUpdate() {
this.$refs.GenericListPage.$refs.ListTable.reloadTable()
}
}
}
Expand Down

0 comments on commit dd7c492

Please sign in to comment.