From d8b4bfed02ab1e0bdaf4494d68be8d20eabdc1e5 Mon Sep 17 00:00:00 2001 From: lizhixin <382352532@qq.com> Date: Thu, 24 Jun 2021 00:02:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=82=E6=95=B0/=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ReCheck/AccountInfo.vue | 62 ++++++++++++++++++++++++++++++- src/pages/ReCheck/OrderTable.vue | 27 ++++++++++---- src/pages/ReCheck/index.vue | 25 +++++++++++-- src/pages/prePages/js/columns.js | 46 ++++++++++++++++++----- 4 files changed, 137 insertions(+), 23 deletions(-) diff --git a/src/pages/ReCheck/AccountInfo.vue b/src/pages/ReCheck/AccountInfo.vue index df4e5a7..de5868f 100644 --- a/src/pages/ReCheck/AccountInfo.vue +++ b/src/pages/ReCheck/AccountInfo.vue @@ -30,7 +30,7 @@ :key="index + '12'" >{{ item.TotalPurchasePrice }} {{ - index == accountInfo.TotalPurchaseInfoList.length - 1 ? "" : "---" + index == accountInfo.TotalPurchaseInfoList.length - 1 ? "" : "→" }}

@@ -80,11 +80,62 @@

历史周转资金: {{ accountInfo.RealCost }}

+ +

+ K线涨幅榜:{{ item.Ratio.toFixed(2) }}% + ({{ item.Time }}) + {{ + index == accountInfo.KLineUpRatioList.length - 1 ? "" : " → " + }} +

+ +

+ K线跌幅榜:{{ item.Ratio.toFixed(2) }}% + ({{ item.Time }}) + {{ + index == accountInfo.KLineLossRatioList.length - 1 ? "" : " → " + }} +

+ +

+ 订单亏损榜:{{ item.Ratio.toFixed(2) }}% + ({{ item.Time }}) + {{ + index == accountInfo.LossOrderRankList.length - 1 ? "" : " → " + }} +

+ +

购买交易数: {{ accountInfo.PurchaseTradeCount }}

+

卖出交易数: {{ accountInfo.SaleTradeCount }}

+

持仓成本: {{ accountInfo.TotalPurchasePrice }}

波段盈亏 :{{ accountInfo.HistoryProfit }}

币本位盈亏: {{ accountInfo.BBWProfit }}

持币盈亏 : {{ accountInfo.TotalPriceGap }}

浮动盈亏金额 : {{ accountInfo.TotalPurchasePriceProfit }}

+

总借币利息 : {{ accountInfo.TotalBorrowFee }}

总盈亏 : {{ accountInfo.ZYK }}

@@ -99,4 +150,11 @@ export default { }; - + diff --git a/src/pages/ReCheck/OrderTable.vue b/src/pages/ReCheck/OrderTable.vue index 8d1fbb4..6e05b42 100644 --- a/src/pages/ReCheck/OrderTable.vue +++ b/src/pages/ReCheck/OrderTable.vue @@ -33,8 +33,8 @@
-

{{ scope.row.CapitalAfterPurchase || 0 }}

-

{{ scope.row.CapitalAfterSale || 0 }}

+

{{ scope.row.CapitalAfterPurchase.toFixed(2) || 0 }}

+

{{ scope.row.CapitalAfterSale.toFixed(2) || 0 }}

@@ -72,6 +72,22 @@

{{ scope.row.TotalPurchasePrice || "-" }}

{{ scope.row.TotalSalePrice || "-" }}

+ + +
+

{{ scope.row.BorrowAmount.toFixed(2) || "-" }}

+
+ + +
+

{{ scope.row.BorrowFee.toFixed(2) || "-" }}

+
+ + +
+

{{ scope.row.BorrowRatio.toFixed(2) || "-" }}%

+
+

{{ scope.row.MaxLossPrice || "-" }}

@@ -140,9 +156,4 @@ export default { } }; - + diff --git a/src/pages/ReCheck/index.vue b/src/pages/ReCheck/index.vue index 5298949..faf5d74 100644 --- a/src/pages/ReCheck/index.vue +++ b/src/pages/ReCheck/index.vue @@ -133,8 +133,16 @@ v-model="trendForm" >
- - + + + +
启用增购 @@ -261,7 +269,12 @@ export default { lineSelect: "", tradeColumns, logColumns, - vTForm: { TradeCoinCount: 10, IsEnableAdditionalQuantity: false }, + vTForm: { + TradeCoinCount: 10, + IsEnableAdditionalQuantity: false, + Balance: 10000, + MaxBorrowRatio: 20 + }, logData: [], PositionFund: 1, RobotPolicyType, @@ -759,6 +772,8 @@ export default { newExcelData.forEach(element => { delete element.data; delete element.accountInfo; + delete element.tradeData; + delete element.logData; }); // 文件测试大小-start // let content = JSON.stringify({ @@ -772,9 +787,11 @@ export default { let params = this.policyMode == 3 ? { - TradeCoinCount: this.vTForm.TradeCoinCount, + TradeCoinCount: parseFloat(this.vTForm.TradeCoinCount), IsEnableAdditionalQuantity: this.vTForm .IsEnableAdditionalQuantity, + MaxBorrowRatio: this.vTForm.MaxBorrowRatio, + Balance: this.vTForm.Balance, SymbolList: newExcelData } : { diff --git a/src/pages/prePages/js/columns.js b/src/pages/prePages/js/columns.js index ca99a34..d1584b8 100644 --- a/src/pages/prePages/js/columns.js +++ b/src/pages/prePages/js/columns.js @@ -194,10 +194,28 @@ export const tradeColumns = [ key: "Count", customSlot: "Count" }, + // { + // name: "订单投入本金", + // prop: "RealCost", + // key: "RealCost" + // }, { - name: "订单投入本金", - prop: "RealCost", - key: "RealCost" + name: "借币金额", + prop: "BorrowAmount", + key: "BorrowAmount", + customSlot: "BorrowAmount" + }, + { + name: "借币利息", + prop: "BorrowFee", + key: "BorrowFee", + customSlot: "BorrowFee" + }, + { + name: "借币比例", + prop: "BorrowRatio", + key: "BorrowRatio", + customSlot: "BorrowRatio" }, { name: "成交总价", @@ -205,18 +223,28 @@ export const tradeColumns = [ key: "Total", customSlot: "Total" }, - { - name: "历史周转资金", - prop: "HistoryRealCost", - key: "HistoryRealCost" - // customSlot: "HistoryRealCost" - }, + // { + // name: "历史周转资金", + // prop: "HistoryRealCost", + // key: "HistoryRealCost" + // // customSlot: "HistoryRealCost" + // }, { name: "最大浮亏", prop: "MaxLossRatio", key: "MaxLossRatio", customSlot: "MaxLossRatio" }, + { + name: "持币盈亏", + prop: "PriceGap", + key: "PriceGap" + }, + { + name: "累计持币盈亏", + prop: "HistoryTotalPriceGap", + key: "HistoryTotalPriceGap" + }, { name: "盈亏", prop: "Profit",