From b2cb479468e340d28240cb3cf13a129cb0356d9c Mon Sep 17 00:00:00 2001 From: lizhixin <382352532@qq.com> Date: Thu, 27 May 2021 22:59:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=BB=E8=B5=84=E9=87=91=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/dashboard/DashboardLayout.vue | 5 + src/pages/Profit/index.vue | 121 +++++++++++++++++++++++ src/pages/WinRate/index.vue | 10 +- src/router/routes.js | 6 ++ 4 files changed, 140 insertions(+), 2 deletions(-) create mode 100644 src/pages/Profit/index.vue diff --git a/src/layout/dashboard/DashboardLayout.vue b/src/layout/dashboard/DashboardLayout.vue index 834cbb0..000a06d 100644 --- a/src/layout/dashboard/DashboardLayout.vue +++ b/src/layout/dashboard/DashboardLayout.vue @@ -22,6 +22,11 @@ :name="'短线胜率测试'" icon="tim-icons icon-single-02" /> + 触发止损点`, this.data[i]); let lostPercent = ((stopLost - buyPrice) / buyPrice) * 100; - // console.log("做多亏损比", lostPercent); + // console.log("做多亏损比", lostPercent, buyPrice, timeStamp); result = lostPercent; break; } else { @@ -314,7 +314,13 @@ export default { } else if (this.data[i][2] > stopLost) { // console.log(`---->触发止损点`, this.data[i]); let lostPercent = ((buyPrice - stopLost) / buyPrice) * 100; - // console.log("做空亏损比", lostPercent, buyPrice, stopLost); + // console.log( + // "做空亏损比", + // lostPercent, + // buyPrice, + // stopLost, + // timeStamp + // ); result = lostPercent; break; } else { diff --git a/src/router/routes.js b/src/router/routes.js index b92db23..9626100 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -15,6 +15,7 @@ const Account = () => import("@/pages/Account"); const Edit = () => import("@/pages/Robot/edit.vue"); const WinRate = () => import("@/pages/WinRate"); const ReCheck = () => import("@/pages/ReCheck"); +const Capital = () => import("@/pages/Profit"); const routes = [ { path: "/", @@ -45,6 +46,11 @@ const routes = [ path: "reCheck", name: "reCheck", component: ReCheck + }, + { + path: "capital", + name: "capital", + component: Capital } // { // path: "profile",