|
|
|
@ -334,10 +334,10 @@ export default { |
|
|
|
// return math.omitTo(this.form.amount*this.unit_amount / this.form.lever_rate, 4); |
|
|
|
// }, |
|
|
|
amount(){ |
|
|
|
console.info(this.form.lever_rate) |
|
|
|
console.info(this.margin) |
|
|
|
// console.info(this.form.lever_rate) |
|
|
|
// console.info(this.margin) |
|
|
|
if (!this.form.lever_rate || !this.margin) return 0; |
|
|
|
let p=this.margin*this.form.lever_rate; |
|
|
|
let p = Math.round(this.margin*this.form.lever_rate); |
|
|
|
|
|
|
|
this.form.amount=p; |
|
|
|
return p |
|
|
|
|