Commit f9f290300f4f5baddb3136584db2f76dd4f1be88

Authored by wuxw
1 parent d2655d32

优化退押金 对话框没有关闭的bug

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 }
... ...
src/views/user/login/Login.vue
... ... @@ -44,8 +44,8 @@ export default {
44 44 logo: '',
45 45 companyName:'',
46 46 loginForm: {
47   - username: 'wuxw',
48   - passwd: 'admin',
  47 + username: '',
  48 + passwd: '',
49 49 validateCode: ''
50 50 },
51 51 captchaUrl: '',
... ...