From 00c25ed423a7fc90179e539bbc815f75e53b500c Mon Sep 17 00:00:00 2001
From: lizhixin <382352532@qq.com>
Date: Wed, 14 Jul 2021 18:49:29 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AF=A5=E5=BD=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/MainSec/OrderTable.vue | 424 ++++++++++++++++------
src/pages/MainSec/SignalTable.vue | 154 ++++++--
src/pages/MainSec/index.vue | 16 +-
src/pages/ReCheck/OrderTable.vue | 32 +-
src/pages/ReCheck/index.vue | 15 +-
src/pages/RobotSec/Account.vue | 24 +-
src/pages/RobotSec/Modal/RobotSetting.vue | 4 +
src/utils/plugin/axios-plugin.js | 4 +-
8 files changed, 501 insertions(+), 172 deletions(-)
diff --git a/src/pages/MainSec/OrderTable.vue b/src/pages/MainSec/OrderTable.vue
index 0ad45d5..a9df900 100644
--- a/src/pages/MainSec/OrderTable.vue
+++ b/src/pages/MainSec/OrderTable.vue
@@ -1,132 +1,140 @@
- 买入 卖出 {{ scope.row.CapitalAfterPurchase.toFixed(2) || 0 }} {{ scope.row.CapitalAfterSale.toFixed(2) || 0 }}
- {{
- scope.row.PurchaseKLineId
- ? moment(scope.row.PurchaseKLineId * 1000).format(
- "YYYY-MM-DD HH:mm:ss"
- )
- : "-"
- }}
-
- {{
- scope.row.SaleKLineId
- ? moment(scope.row.SaleKLineId * 1000).format(
- "YYYY-MM-DD HH:mm:ss"
- )
- : "-"
- }}
- {{ scope.row.PurchasePrice }} {{ scope.row.SalePrice }} {{ scope.row.PurchaseCoinCount || "-" }} {{ scope.row.SaleCoinCount || "-" }} {{ scope.row.TotalPurchasePrice || "-" }} {{ scope.row.TotalSalePrice || "-" }} {{ scope.row.BorrowAmount.toFixed(2) || "-" }} {{ scope.row.BorrowFee.toFixed(2) || "-" }} {{ scope.row.BorrowRatio.toFixed(2) || "-" }}% {{ scope.row.MaxLossPrice || "-" }} {{ scope.row.MaxLossRatio || "-" }}% {{ scope.row.Profit }}
- {{
- (
- (scope.row.Profit / scope.row.TotalPurchasePrice) *
- 100
- ).toFixed(2)
- }}%
- - {{ scope.row.TotalProfit }}
- {{ scope.row.TotalProfitRatio }}%
- - {{ scope.row[i.prop] }} {{ scope.row[i.prop] }}账号配置信息
+
{{ scope.row.CapitalAfterPurchase.toFixed(2) || 0 }}
-{{ scope.row.CapitalAfterSale.toFixed(2) || 0 }}
++ {{ + (scope.row.CapitalAfterPurchase && + scope.row.CapitalAfterPurchase.toFixed(2)) || + 0 + }} +
++ {{ + (scope.row.CapitalAfterSale && + scope.row.CapitalAfterSale.toFixed(2)) || + 0 + }} +
{{ scope.row.BorrowAmount.toFixed(2) || "-" }}
++ {{ scope.row.LoanAmount.toFixed(2) || "-" }} +
{{ scope.row.BorrowFee.toFixed(2) || "-" }}
++ {{ scope.row.LoanFee.toFixed(2) || "-" }} +
{{ scope.row.BorrowRatio.toFixed(2) || "-" }}%
+{{ scope.row.LoanRatio.toFixed(2) || "-" }}%