From 397d9ca52fbc2e674cf14ec408f7120142d3f398 Mon Sep 17 00:00:00 2001 From: shilin Date: Sat, 22 Feb 2025 17:52:59 +0800 Subject: [PATCH] code --- .../admin/line-order-template-logs/index.vue | 16 +++++++--------- src/views/admin/line-pre-order/index.vue | 12 ++++++------ 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/src/views/admin/line-order-template-logs/index.vue b/src/views/admin/line-order-template-logs/index.vue index b852f0c..7f2283e 100644 --- a/src/views/admin/line-order-template-logs/index.vue +++ b/src/views/admin/line-order-template-logs/index.vue @@ -323,7 +323,7 @@ /> - + - + @@ -631,7 +631,7 @@ export default { // (this.form.price-?)/? *100 + '%' // 主单委托实际价下 获取交易对行情价 const { symbol, price, price_pattern } = this.inForm - if (symbol && price_pattern === 'mixture') { + if (symbol && price_pattern !== 'percentage') { const s = this.comSymbols.find(item => item.symbol === symbol) if (s) { const res = ((price - s.lastPrice) / s.lastPrice) * 100 @@ -693,7 +693,7 @@ export default { } }, onchangeAicoin() { - this.inForm.price = this.aicoinPrice + this.inForm.price = this.aicoinPrice || 0 }, onAddExt(type, index) { if (type === 0) { @@ -864,9 +864,7 @@ export default { this.form.type === 2 && this.getSymbolGroup(this.inForm.symbol_type) this.form.type === 1 && this.onCalculate() // 获取交易对用于计算 - if (this.inForm.price_pattern === 'mixture') { - this.getSymbol(this.inForm.symbol) - } + this.getSymbol(this.inForm.symbol) this.open = true this.title = '修改委托下单模板' this.isEdit = true diff --git a/src/views/admin/line-pre-order/index.vue b/src/views/admin/line-pre-order/index.vue index f9fa09b..c8760fa 100644 --- a/src/views/admin/line-pre-order/index.vue +++ b/src/views/admin/line-pre-order/index.vue @@ -654,7 +654,7 @@ /> - + - + @@ -1502,7 +1502,7 @@ export default { // (this.form.price-?)/? *100 + '%' // 主单委托实际价下 获取交易对行情价 const { symbol, price, price_pattern } = this.form - if (symbol && price_pattern === 'mixture') { + if (symbol && price_pattern !== 'percentage') { const s = this.comSymbols.find(item => item.symbol === symbol) if (s) { const res = ((price - s.lastPrice) / s.lastPrice) * 100 @@ -1582,7 +1582,7 @@ export default { } }, onchangeAicoin() { - this.form.price = this.aicoinPrice + this.form.price = this.aicoinPrice || 0 }, onAddExt(type, index) { if (type === 0) {