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