| | |
| | | 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) |
| | | } |