From e624c205c53c0e082dc489e113ae9765b07a5e70 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Fri, 26 Apr 2024 15:34:14 +0800
Subject: [PATCH] first
---
src/views/userlist/components/editCapitaluserdialog.vue | 26 +++++++++++++++-----------
1 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/src/views/userlist/components/editCapitaluserdialog.vue b/src/views/userlist/components/editCapitaluserdialog.vue
index f46379b..6f06203 100644
--- a/src/views/userlist/components/editCapitaluserdialog.vue
+++ b/src/views/userlist/components/editCapitaluserdialog.vue
@@ -119,17 +119,21 @@
if (!errors) {
this.editUserDialogloading = true
console.log({ id: arr[0].id, amt: amt, type: this.direction })
- updateMoney({ id: arr[0].id, amt: amt, type: values.direction }).then((res) => {
- if (res.status == 0) {
- this.editUserdialog = false
- this.$message.success(res.msg)
- form.resetFields()
- this.getinit()
- } else {
- this.$message.error({ content: res.msg || '划转成功' })
- }
- this.editUserDialogloading = false
- })
+ updateMoney({ id: arr[0].id, amt: amt, type: values.direction })
+ .then((res) => {
+ if (res.status == 0) {
+ this.editUserdialog = false
+ this.$message.success(res.msg)
+ form.resetFields()
+ this.getinit()
+ } else {
+ this.$message.error({ content: res.msg || '划转成功' })
+ }
+ this.editUserDialogloading = false
+ })
+ .catch((res) => {
+ this.editUserDialogloading = false
+ })
} else {
console.log(3333)
}
--
Gitblit v1.9.3