From 8477322adb238a81c46ffdc1fbf83628713aa389 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Sun, 07 Apr 2024 11:23:49 +0800
Subject: [PATCH] 提交页面备注
---
src/views/userlist/components/editCapitaluserdialog.vue | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/views/userlist/components/editCapitaluserdialog.vue b/src/views/userlist/components/editCapitaluserdialog.vue
index 79be9db..5efa897 100644
--- a/src/views/userlist/components/editCapitaluserdialog.vue
+++ b/src/views/userlist/components/editCapitaluserdialog.vue
@@ -47,7 +47,7 @@
export default {
components: {},
filters: {
- formatDate(value) {
+ formatDate (value) {
switch (value.accectType) {
case 'US':
return `美元(${value.symbol} ${value.availableBalance})`
@@ -57,54 +57,54 @@
default:
break
}
- },
+ }
},
props: {
getinit: {
type: Function,
- default: function () {},
+ default: function () {}
},
activeArr: {
type: Array,
- default: [],
- },
+ default: []
+ }
},
- data() {
+ data () {
return {
labelCol: {
xs: { span: 24 },
- sm: { span: 7 },
+ sm: { span: 7 }
},
wrapperCol: {
xs: { span: 24 },
- sm: { span: 13 },
+ sm: { span: 13 }
},
editUserform: this.$form.createForm(this),
editUserdialog: false,
editUserDialogloading: false,
fields: ['amt', 'direction', 'userId'],
- currentDetails: {},
+ currentDetails: {}
}
},
methods: {
- getEditorder(val) {
+ getEditorder (val) {
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))
},
- CanceleditUserdialog() {
+ CanceleditUserdialog () {
this.editUserdialog = false
const form = this.$refs.editUserform.form
form.resetFields()
},
- OkeditUserdialog() {
+ OkeditUserdialog () {
const form = this.$refs.editUserform.form
form.validateFields((errors, values) => {
console.log(values, 'from')
const arr = this.activeArr.filter((item) => item.accectType === values.accectType)
- let amt = values.direction == '1' ? 0 - Number(values.amt) : Number(values.amt)
+ const amt = values.direction == '1' ? 0 - Number(values.amt) : Number(values.amt)
if (!errors) {
this.editUserDialogloading = true
updateMoney({ id: arr[0].id, amt: amt }).then((res) => {
@@ -122,7 +122,7 @@
console.log(3333)
}
})
- },
- },
+ }
+ }
}
</script>
--
Gitblit v1.9.3