From dd7c4929659048e35663cad27658e7c6b80fe95d Mon Sep 17 00:00:00 2001 From: Orange Date: Sun, 22 Nov 2020 21:44:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=84=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/GenericUpdateFormDialog/index.vue | 1 + src/views/users/User/UserList.vue | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/layout/components/GenericUpdateFormDialog/index.vue b/src/layout/components/GenericUpdateFormDialog/index.vue index 7e2d5e44c..1fc00968c 100644 --- a/src/layout/components/GenericUpdateFormDialog/index.vue +++ b/src/layout/components/GenericUpdateFormDialog/index.vue @@ -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 => { diff --git a/src/views/users/User/UserList.vue b/src/views/users/User/UserList.vue index 27c5bd80c..dfe86aea6 100644 --- a/src/views/users/User/UserList.vue +++ b/src/views/users/User/UserList.vue @@ -9,6 +9,7 @@ :selected-rows="updateSelectedDialogSetting.selectedRows" :form-setting="updateSelectedDialogSetting.formSetting" :dialog-setting="updateSelectedDialogSetting.dialogSetting" + @update="handleDialogUpdate" /> @@ -288,6 +289,9 @@ export default { handleInviteDialogClose() { this.InviteDialogSetting.InviteDialogVisible = false this.$refs.GenericListPage.$refs.ListTable.reloadTable() + }, + handleDialogUpdate() { + this.$refs.GenericListPage.$refs.ListTable.reloadTable() } } }