| | |
| | | <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> |
| | |
| | | }, |
| | | dataForm: { |
| | | coin: '', |
| | | chain: '', |
| | | blockchainName: '', |
| | | address: '', |
| | | password: '' |
| | | password: '', |
| | | uuid: '', |
| | | }, |
| | | dataRule: { |
| | | address: [ |
| | |
| | | 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 () { |
| | |
| | | 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){ |