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