Commit f9f290300f4f5baddb3136584db2f76dd4f1be88
1 parent
d2655d32
优化退押金 对话框没有关闭的bug
Showing
2 changed files
with
7 additions
and
14 deletions
src/components/fee/refundDepositFee.vue
| 1 | 1 | <template> |
| 2 | - <el-dialog | |
| 3 | - :title="$t('refundDepositFee.title')" | |
| 4 | - :visible.sync="dialogVisible" | |
| 5 | - width="30%" | |
| 6 | - @close="handleClose" | |
| 7 | - > | |
| 8 | - <el-alert | |
| 9 | - :title="$t('refundDepositFee.alertText')" | |
| 10 | - type="warning" | |
| 11 | - :closable="false" | |
| 12 | - ></el-alert> | |
| 2 | + <el-dialog :title="$t('refundDepositFee.title')" :visible.sync="dialogVisible" width="30%" @close="handleClose"> | |
| 3 | + <el-alert :title="$t('refundDepositFee.alertText')" type="warning" :closable="false"></el-alert> | |
| 13 | 4 | |
| 14 | 5 | <div slot="footer" class="dialog-footer"> |
| 15 | 6 | <el-button @click="dialogVisible = false">{{ $t('common.cancel') }}</el-button> |
| ... | ... | @@ -41,10 +32,11 @@ export default { |
| 41 | 32 | async refundDepositFee() { |
| 42 | 33 | try { |
| 43 | 34 | this.refundData.communityId = await getCommunityId() |
| 44 | - | |
| 35 | + | |
| 45 | 36 | const response = await refundFeeDeposit(this.refundData) |
| 46 | 37 | if (response.code === 0) { |
| 47 | 38 | this.$message.success(this.$t('common.operationSuccess')) |
| 39 | + this.close() | |
| 48 | 40 | this.$emit('success') |
| 49 | 41 | } else { |
| 50 | 42 | this.$message.error(response.data.msg) |
| ... | ... | @@ -65,6 +57,7 @@ export default { |
| 65 | 57 | .el-alert { |
| 66 | 58 | margin-bottom: 20px; |
| 67 | 59 | } |
| 60 | + | |
| 68 | 61 | .dialog-footer { |
| 69 | 62 | text-align: right; |
| 70 | 63 | } | ... | ... |