From 14032ee411ef70a8219f23f49c2ed2fd7d6b3bcf Mon Sep 17 00:00:00 2001 From: lizhixin <382352532@qq.com> Date: Fri, 18 Jun 2021 00:26:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=84=E7=A7=8D=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 2 +- src/App.vue | 74 +++++++++++++ src/pages/ReCheck/OrderTable.vue | 160 +++++++++++++++++------------ src/pages/ReCheck/index.vue | 15 ++- src/pages/Robot/index.vue | 4 +- src/pages/RobotSec/Account.vue | 171 ++++++++++++++----------------- src/pages/prePages/js/columns.js | 22 ++++ src/utils/plugin/axios-plugin.js | 4 +- 8 files changed, 284 insertions(+), 168 deletions(-) diff --git a/public/index.html b/public/index.html index ba080ac..cee98ef 100644 --- a/public/index.html +++ b/public/index.html @@ -27,7 +27,7 @@ - +
diff --git a/src/App.vue b/src/App.vue index cd1fe2f..cd69c90 100644 --- a/src/App.vue +++ b/src/App.vue @@ -41,4 +41,78 @@ export default { .el-input { background-color: transparent; } + +.el-table th { + color: #a2a2a3; /* 字体颜色 */ + font-size: 16px; + background-color: transparent !important; /* 背景透明 */ + border: 0 !important; + height: 22px; + line-height: 22px; +} +.el-table tr, +.el-table td { + color: #a2a2a3; + font-size: 12px; + background-color: transparent !important; /* 背景透明 */ + border: 0 !important; + height: 22px; + line-height: 22px; +} + +.el-table, +.el-table__expanded-cell { + background-color: transparent !important; +} +.el-table th, +.el-table tr, +.el-table td { + background-color: transparent !important; +} + +/*去掉表格单元格边框*/ +.customer-no-border-table th { + border: none; +} +.customer-no-border-table td, +.customer-no-border-table th.is-leaf { + border: none; +} +/*表格最外边框*/ +.customer-no-border-table .el-table--border, +.el-table--group { + border: none; +} +/*头部边框*/ +.customer-no-border-table thead tr th.is-leaf { + border: 0px solid #ebeef5; + border-right: none; +} +.customer-no-border-table thead tr th:nth-last-of-type(2) { + border-right: 0px solid #ebeef5; +} +/*表格最外层边框-底部边框*/ +.customer-no-border-table .el-table--border::after, +.customer-no-border-table .el-table--group::after { + width: 0; +} +.customer-no-border-table::before { + width: 0; +} +.customer-no-border-table .el-table__fixed-right::before, +.el-table__fixed::before { + width: 0; +} +.customer-no-border-table .el-table__header tr th { + background: #fff; + padding: 3px; + font-weight: 550; + height: 36px; + border: 0px; + font-size: 15px; +} + +.el-table__expanded-cell[class*="cell"] { + padding: 0 20px; +} diff --git a/src/pages/ReCheck/OrderTable.vue b/src/pages/ReCheck/OrderTable.vue index 3312f82..8d1fbb4 100644 --- a/src/pages/ReCheck/OrderTable.vue +++ b/src/pages/ReCheck/OrderTable.vue @@ -16,76 +16,94 @@ > -买入
-卖出
- - - -- {{ - item.row.item.PurchaseKLineId - ? moment(item.row.item.PurchaseKLineId * 1000).format( - "YYYY-MM-DD HH:mm:ss" - ) - : "-" - }} -
-- {{ - item.row.item.SaleKLineId - ? moment(item.row.item.SaleKLineId * 1000).format( - "YYYY-MM-DD HH:mm:ss" - ) - : "-" - }} -
- - - -{{ item.row.item.PurchasePrice || "-" }}
-{{ item.row.item.SalePrice || "-" }}
- - - -{{ item.row.item.PurchaseCoinCount || "-" }}
-{{ item.row.item.SaleCoinCount || "-" }}
- - - -{{ item.row.item.MaxLossPrice || "-" }}
-{{ item.row.item.MaxLossRatio || "-" }}%
- - - -{{ item.row.item.Profit }}
-- {{ - ( - (item.row.item.Profit / item.row.item.TotalPurchasePrice) * - 100 - ).toFixed(2) - }}% -
--
- - - -{{ item.row.item.TotalProfit }}
-- {{ item.row.item.TotalProfitRatio }}% -
--
+ + +买入
+卖出
+{{ scope.row.CapitalAfterPurchase || 0 }}
+{{ scope.row.CapitalAfterSale || 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.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] }}
+