模板下单不需要计算

This commit is contained in:
shilin
2025-02-20 09:37:26 +08:00
parent 2afbcf2ceb
commit 77b683f3c9
3 changed files with 3 additions and 4 deletions

Binary file not shown.

View File

@ -449,7 +449,7 @@
</el-form-item>
<el-form-item label="主单减仓后止盈价百分比" prop="reduce_take_profit">
<el-input v-model.number="inForm.reduce_take_profit" type="number" placeholder="主单减仓后止盈价百分比">
<template #append>{{ re_take_profit_ratio }}</template>
<template v-if="form.type===1" #append>{{ re_take_profit_ratio }}</template>
</el-input>
</el-form-item>
<el-form-item label="主单减仓后止损价百分比" prop="reduce_stop_price">
@ -840,7 +840,7 @@ export default {
this.onchangePattern(false)
this.getListLineApiUser()
this.form.type === 2 && this.getSymbolGroup(this.inForm.symbol_type)
this.onCalculate()
this.form.type === 1 && this.onCalculate()
this.open = true
this.title = '修改委托下单模板'
this.isEdit = true

View File

@ -778,7 +778,7 @@
</el-form-item>
<el-form-item label="主单减仓后止盈价百分比" prop="reduce_take_profit">
<el-input v-model.number="form.reduce_take_profit" type="number" placeholder="主单减仓后止盈价百分比">
<template #append>{{ re_take_profit_ratio }}</template>
<template v-if="title!=='批量添加'" #append>{{ re_take_profit_ratio }}</template>
</el-input>
</el-form-item>
<el-form-item label="主单减仓后止损价百分比" prop="reduce_stop_price">
@ -1605,7 +1605,6 @@ export default {
},
// 获取交易对组
getSymbolGroup(type = 2, exchangeType) {
console.log(type, exchangeType, '??')
listLineSymbolGroup({ pageIndex: 1, pageSize: 999, beginTime: undefined, endTime: undefined, type, exchangeType: exchangeType || this.form.exchange_type }).then(res => {
this.symbolGroups = res.data.list
})