From 02c9c69ee42a918719790e7ee454507c8fad28f9 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Sun, 06 Jul 2025 15:50:03 +0800
Subject: [PATCH] 1
---
src/views/userlist/components/editCapitaluserdialog.vue | 56 ++++++++++++++------------------------------------------
1 files changed, 14 insertions(+), 42 deletions(-)
diff --git a/src/views/userlist/components/editCapitaluserdialog.vue b/src/views/userlist/components/editCapitaluserdialog.vue
index 47e932c..7dc7c13 100644
--- a/src/views/userlist/components/editCapitaluserdialog.vue
+++ b/src/views/userlist/components/editCapitaluserdialog.vue
@@ -34,8 +34,7 @@
placeholder="请选择账户"
v-decorator="['accectType', { rules: [{ required: true, message: '请选择账户' }] }]"
>
- <a-select-option v-for="item in activeArr" :key="item.id" :value="item.accectType">
- {{
+ <a-select-option v-for="item in activeArr" :key="item.id" :value="item.accectType">{{
item | formatDate
}}</a-select-option>
</a-select>
@@ -62,10 +61,6 @@
return `印度(${value.symbol} ${value.availableBalance})`
case 'SGP':
return `新加坡(${value.symbol} ${value.availableBalance})`
- case 'ST':
- return `沙特(${value.symbol} ${value.availableBalance})`
- case 'USDT':
- return `USDT( ${value.availableBalance})`
default:
break
}
@@ -85,20 +80,12 @@
data() {
return {
labelCol: {
- xs: {
- span: 24,
- },
- sm: {
- span: 7,
- },
+ xs: { span: 24 },
+ sm: { span: 7 },
},
wrapperCol: {
- xs: {
- span: 24,
- },
- sm: {
- span: 13,
- },
+ xs: { span: 24 },
+ sm: { span: 13 },
},
editUserform: this.$form.createForm(this),
editUserdialog: false,
@@ -109,19 +96,12 @@
},
methods: {
getEditorder(val) {
- val.accectType = 'ST'
+ val.accectType = 'IN'
this.currentDetails = val
this.editUserdialog = true
this.fields.forEach((v) => this.editUserform.getFieldDecorator(v))
this.editUserform.setFieldsValue(pick(val, this.fields))
- this.editUserform.setFieldsValue(
- pick(
- {
- userId: val.id,
- },
- this.fields
- )
- )
+ this.editUserform.setFieldsValue(pick({ userId: val.id }, this.fields))
},
CanceleditUserdialog() {
this.editUserdialog = false
@@ -130,25 +110,19 @@
},
OkeditUserdialog() {
const form = this.$refs.editUserform.form
+ console.log(form)
+ console.log(this.activeArr);
form.validateFields((errors, values) => {
- console.log(values, 'from', !errors, this.activeArr)
+ console.log('Errors', errors)
+ console.log(values, 'from', !errors)
const arr = this.activeArr.filter((item) => item.accectType === values.accectType)
const amt = values.amt
console.log(arr)
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,
- accectType: values.accectType,
- })
+ 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
@@ -156,9 +130,7 @@
form.resetFields()
this.getinit()
} else {
- this.$message.error({
- content: res.msg || '划转成功',
- })
+ this.$message.error({ content: res.msg || '划转成功' })
}
this.editUserDialogloading = false
})
--
Gitblit v1.9.3