大宝管理后台代码
dcc
2024-06-11 d2a6b6f9de0589ef3e74e37eb138fbee097673c1
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)
        }