大宝管理后台代码
xxx
dcc
2024-05-07 abcf89c0931fc453f4fd8e1d4d48b8b469d0f3c7
src/views/userlist/agentcomponents/editCapitalAgentdialog.vue
@@ -39,40 +39,40 @@
  props: {
    getinit: {
      type: Function,
      default: function () {},
    },
      default: function () {}
    }
  },
  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', 'agentId'],
      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({ agentId: 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) => {
        if (!errors) {
@@ -90,7 +90,7 @@
          })
        }
      })
    },
  },
    }
  }
}
</script>