模板新增加仓
新增减仓
This commit is contained in:
@ -410,7 +410,8 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="4"><el-form-item label="主单加仓配置" /></el-col>
|
<el-col :span="4"><el-form-item label="主单加仓配置" /></el-col>
|
||||||
<el-col :span="2"><el-button type="primary" size="mini" @click="onAddExt(0)">新增</el-button></el-col>
|
<el-col :span="2"><el-button type="primary" size="mini" @click="onAddExt(0)">新增加仓</el-button></el-col>
|
||||||
|
<el-col :span="2"><el-button type="primary" size="mini" @click="onAddExt(2)">新增减仓</el-button></el-col>
|
||||||
<el-col v-if="form.type === 1" :span="2"><el-button
|
<el-col v-if="form.type === 1" :span="2"><el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -675,6 +676,7 @@ export default {
|
|||||||
this.inForm.ext.splice(index, 1)
|
this.inForm.ext.splice(index, 1)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
console.log('ext',this.inForm.ext)
|
||||||
this.inForm.ext.push({
|
this.inForm.ext.push({
|
||||||
// 类型 订单类型 加仓类型 加仓数值 价格百分比 止盈百分比 止损百分比
|
// 类型 订单类型 加仓类型 加仓数值 价格百分比 止盈百分比 止损百分比
|
||||||
addType: type === 0 ? 1 : 2,
|
addType: type === 0 ? 1 : 2,
|
||||||
@ -688,9 +690,7 @@ export default {
|
|||||||
takeProfitNumRatio: 0,
|
takeProfitNumRatio: 0,
|
||||||
tpTpPriceRatio: 0,
|
tpTpPriceRatio: 0,
|
||||||
tpSlPriceRatio: 0
|
tpSlPriceRatio: 0
|
||||||
})
|
|
||||||
// if (type === 0) {
|
|
||||||
// this.inForm.ext.push({
|
|
||||||
// reducePriceRatio: undefined,
|
// reducePriceRatio: undefined,
|
||||||
// reduceNumRatio: undefined,
|
// reduceNumRatio: undefined,
|
||||||
// reduceTakeProfitRatio: undefined,
|
// reduceTakeProfitRatio: undefined,
|
||||||
@ -701,10 +701,7 @@ export default {
|
|||||||
// addPositionOrderType: 'LIMIT',
|
// addPositionOrderType: 'LIMIT',
|
||||||
// addPositionType: 1,
|
// addPositionType: 1,
|
||||||
// addPositionVal: undefined
|
// addPositionVal: undefined
|
||||||
// })
|
})
|
||||||
// return false
|
|
||||||
// }
|
|
||||||
// this.inForm.ext.splice(index, 1)
|
|
||||||
},
|
},
|
||||||
onchangeForm() {
|
onchangeForm() {
|
||||||
this.getListLineApiUser(this.inForm.exchange_type)
|
this.getListLineApiUser(this.inForm.exchange_type)
|
||||||
|
|||||||
Reference in New Issue
Block a user