新版交易所前段管理后台
1
admin
2026-02-01 d841e83acfd09a5c4f455a2cc74c615ac30c049d
src/views/modules/recharge/finance-add-or-update.vue
@@ -1,15 +1,15 @@
<template>
  <el-dialog
    :title="!dataForm.id ? '新增' : '修改'"
    :title="!dataForm.uuid ? '新增' : '修改'"
    :close-on-click-modal="false"
    :visible.sync="visible">
    <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
      <el-form-item label="地址" prop="address">
        <el-input v-model="dataForm.address" placeholder="地址"></el-input>
      </el-form-item>
      <el-form-item label="加密密码" prop="password">
      <!-- <el-form-item label="加密密码" prop="password">
        <el-input v-model="dataForm.password" placeholder="加密密码"></el-input>
      </el-form-item>
      </el-form-item> -->
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="visible = false">取消</el-button>
@@ -32,9 +32,10 @@
        },
        dataForm: {
          coin: '',
        chain: '',
            blockchainName: '',
          address: '',
          password: ''
          password: '',
          uuid: '',
        },
        dataRule: {
          address: [
@@ -55,7 +56,8 @@
        this.dataForm.address = item.address
        this.dataForm.password = item.password
        this.dataForm.coin = item.coin
        this.dataForm.chain = item.blockchain_name
        this.dataForm.blockchainName = item.blockchain_name
      this.dataForm.uuid = item.uuid
      },
      // 表单提交
      dataFormSubmit: Debounce(function () {
@@ -66,9 +68,10 @@
              method: 'post',
              data: this.$http.adornData({
                'coin': this.dataForm.coin,
                'chain': this.dataForm.chain,
                'blockchainName': this.dataForm.blockchainName,
                'address': this.dataForm.address,
                'password':this.dataForm.password,
                'id':this.dataForm.uuid,
              })
            }).then(({data}) => {
              if(data.code==0){