Compare commits

...

2 Commits

Author SHA1 Message Date
Orange
dd7c492965 fix: 修复批量更新组件的问题 2020-11-23 14:01:07 +08:00
Orange
7c21a6f156 fix: 修复批量批量更新组件的问题 2020-11-22 16:53:52 +08:00
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,5 @@
<template>
<Dialog
v-if="dialogSetting.dialogVisible"
:title="this.$t('common.updateSelected')"
:visible.sync="dialogSetting.dialogVisible"
width="70%"
@@ -99,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 => {

View File

@@ -9,6 +9,7 @@
:selected-rows="updateSelectedDialogSetting.selectedRows"
:form-setting="updateSelectedDialogSetting.formSetting"
:dialog-setting="updateSelectedDialogSetting.dialogSetting"
@update="handleDialogUpdate"
/>
<InviteUsersDialog :setting="InviteDialogSetting" @close="handleInviteDialogClose" />
</div>
@@ -288,6 +289,9 @@ export default {
handleInviteDialogClose() {
this.InviteDialogSetting.InviteDialogVisible = false
this.$refs.GenericListPage.$refs.ListTable.reloadTable()
},
handleDialogUpdate() {
this.$refs.GenericListPage.$refs.ListTable.reloadTable()
}
}
}