|
|
|
@ -177,7 +177,7 @@ |
|
|
|
<input |
|
|
|
type="number" |
|
|
|
class="form-control" |
|
|
|
v-model="form.sl_trigger_price_buy" |
|
|
|
v-model="form.tp_trigger_price_buy" |
|
|
|
:placeholder="$t('contract.i7')" |
|
|
|
style="text-align:left;" |
|
|
|
/> |
|
|
|
@ -187,7 +187,7 @@ |
|
|
|
<input |
|
|
|
type="number" |
|
|
|
class="form-control" |
|
|
|
v-model="form.tp_trigger_price_buy" |
|
|
|
v-model="form.sl_trigger_price_buy" |
|
|
|
:placeholder="$t('contract.i8')" |
|
|
|
style="text-align:left;" |
|
|
|
/> |
|
|
|
@ -296,7 +296,7 @@ |
|
|
|
<input |
|
|
|
type="number" |
|
|
|
class="form-control" |
|
|
|
v-model="form.sl_trigger_price_sell" |
|
|
|
v-model="form.tp_trigger_price_sell" |
|
|
|
:placeholder="$t('contract.i7')" |
|
|
|
style="text-align:left;" |
|
|
|
/> |
|
|
|
@ -306,7 +306,7 @@ |
|
|
|
<input |
|
|
|
type="number" |
|
|
|
class="form-control" |
|
|
|
v-model="form.tp_trigger_price_sell" |
|
|
|
v-model="form.sl_trigger_price_sell" |
|
|
|
:placeholder="$t('contract.i8')" |
|
|
|
style="text-align:left;" |
|
|
|
/> |
|
|
|
@ -405,10 +405,10 @@ export default { |
|
|
|
amount_buy:"", |
|
|
|
amount_sell:"", |
|
|
|
lever_rate: "", |
|
|
|
sl_trigger_price_sell:'',//止盈 |
|
|
|
sl_trigger_price_buy:'',//止盈 |
|
|
|
tp_trigger_price_sell:'',//止损 |
|
|
|
tp_trigger_price_buy:'',//止损 |
|
|
|
sl_trigger_price_sell:'',//止损 |
|
|
|
sl_trigger_price_buy:'',//止损 |
|
|
|
tp_trigger_price_sell:'',//止盈 |
|
|
|
tp_trigger_price_buy:'',//止盈 |
|
|
|
}, |
|
|
|
// 最多可开张数 |
|
|
|
maxNum: 0, |
|
|
|
@ -678,8 +678,8 @@ export default { |
|
|
|
side: 1, |
|
|
|
symbol: this.symbol, |
|
|
|
type: this.form.type, |
|
|
|
sl_trigger_price: this.form.sl_trigger_price_buy,//止盈 |
|
|
|
tp_trigger_price: this.form.tp_trigger_price_buy,//止损 |
|
|
|
sl_trigger_price: this.form.sl_trigger_price_buy,//止损 |
|
|
|
tp_trigger_price: this.form.tp_trigger_price_buy,//止盈 |
|
|
|
} |
|
|
|
}else if(side==2){ |
|
|
|
data = { |
|
|
|
@ -689,8 +689,8 @@ export default { |
|
|
|
side: 2, |
|
|
|
symbol: this.symbol, |
|
|
|
type: this.form.type, |
|
|
|
sl_trigger_price: this.form.sl_trigger_price_sell,//止盈 |
|
|
|
tp_trigger_price: this.form.tp_trigger_price_sell,//止损 |
|
|
|
sl_trigger_price: this.form.sl_trigger_price_sell,//止损 |
|
|
|
tp_trigger_price: this.form.tp_trigger_price_sell,//止盈 |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.form.type==2){ |
|
|
|
@ -710,9 +710,9 @@ export default { |
|
|
|
this.form.amount = 0; |
|
|
|
this.form.amount_buy = 0; |
|
|
|
this.form.amount_sell = 0; |
|
|
|
this.form.sl_trigger_price_sell = 0;//止盈 |
|
|
|
this.form.sl_trigger_price_buy = 0;//止盈 |
|
|
|
this.form.tp_trigger_price_sell = 0;//止损 |
|
|
|
this.form.sl_trigger_price_sell = 0; |
|
|
|
this.form.sl_trigger_price_buy = 0; |
|
|
|
this.form.tp_trigger_price_sell = 0; |
|
|
|
this.form.tp_trigger_price_buy = 0; |
|
|
|
this.$message.success(this.$t("contract.f5")); |
|
|
|
this.$emit("position"); |
|
|
|
|