diff --git a/src/views/admin/line-order-template-logs/index.vue b/src/views/admin/line-order-template-logs/index.vue
index ddb85b9..ca1dc86 100644
--- a/src/views/admin/line-order-template-logs/index.vue
+++ b/src/views/admin/line-order-template-logs/index.vue
@@ -477,14 +477,14 @@
加仓下跌百分比
加仓数值
加仓后止盈价百分比
- {{ ext.length ? ext[index].reTakeProfitRatio : 0 }}
+ {{ ext[index] ? ext[index].reTakeProfitRatio : 0 }}
减仓下跌百分比
减仓数量百分比
减仓后止盈价百分比
- {{ ext.length ? ext[index].reduceReTakeProfitRatio : 0 }}
+ {{ ext[index] ? ext[index].reduceReTakeProfitRatio : 0 }}
减仓后止损价百分比
删除
@@ -848,6 +848,10 @@ export default {
if (!valided) return false
const params = JSON.stringify({
...this.inForm,
+ reduce_price: this.inForm.reduce_price || 0,
+ reduce_num: this.inForm.reduce_num || 0,
+ reduce_take_profit: this.inForm.reduce_take_profit || 0,
+ reduce_stop_price: this.inForm.reduce_stop_price || 0,
symbol_group_id: String(this.inForm.symbol_group_id),
api_id: this.inForm.api_id.toString(),
hedge_trigger_percent: Number(this.inForm.hedge_trigger_percent),
diff --git a/src/views/admin/line-pre-order/index.vue b/src/views/admin/line-pre-order/index.vue
index 7993e9c..05ba06d 100644
--- a/src/views/admin/line-pre-order/index.vue
+++ b/src/views/admin/line-pre-order/index.vue
@@ -806,14 +806,14 @@
加仓下跌百分比
加仓数值
加仓后止盈价百分比
- {{ ext.length ? ext[index].reTakeProfitRatio : 0 }}
+ {{ ext[index] ? ext[index].reTakeProfitRatio : 0 }}
减仓下跌百分比
减仓数量百分比
减仓后止盈价百分比
- {{ ext.length ? ext[index].reduceReTakeProfitRatio : 0 }}
+ {{ ext[index] ? ext[index].reduceReTakeProfitRatio : 0 }}
减仓后止损价百分比
删除
@@ -1853,7 +1853,7 @@ export default {
sign_price: undefined,
price_type: 'new',
rate: undefined,
- price: undefined,
+ price: 0,
num: undefined,
buy_price: undefined,
site: 'BUY',
@@ -1867,6 +1867,10 @@ export default {
close_type: undefined,
direction: undefined,
+ reduce_price: 0,
+ reduce_num: 0,
+ reduce_take_profit: 0,
+ reduce_stop_price: 0,
ext: [],
symbol_type: 1,
hedge_buy_type: 1,
@@ -1886,7 +1890,7 @@ export default {
profit_rate: '',
cover_type: 0,
price_pattern: 'percentage',
- profit: '',
+ profit: 0,
stop_price: '',
save_template: '0',
template_name: ''
@@ -1987,7 +1991,14 @@ export default {
})
return false
}
- addOrder({ ...this.form, api_id: this.form.api_id.toString() }).then(response => {
+ addOrder({
+ ...this.form,
+ reduce_price: this.form.reduce_price || 0,
+ reduce_num: this.form.reduce_num || 0,
+ reduce_take_profit: this.form.reduce_take_profit || 0,
+ reduce_stop_price: this.form.reduce_stop_price || 0,
+ api_id: this.form.api_id.toString()
+ }).then(response => {
if (response.code === 200) {
this.msgSuccess(response.msg)
this.open = false