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 @@ + diff --git a/src/pages/MainSec/SignalTable.vue b/src/pages/MainSec/SignalTable.vue index 8572063..e74c783 100644 --- a/src/pages/MainSec/SignalTable.vue +++ b/src/pages/MainSec/SignalTable.vue @@ -1,40 +1,148 @@ + + diff --git a/src/pages/MainSec/index.vue b/src/pages/MainSec/index.vue index 3e8a222..2354ffc 100644 --- a/src/pages/MainSec/index.vue +++ b/src/pages/MainSec/index.vue @@ -2,8 +2,12 @@
- - + + + +
@@ -18,6 +22,14 @@ export default { OrderTable, SignalTable, Summary + }, + data() { + return { + RobotId: "" + }; + }, + created() { + this.RobotId = this.$route.params.id; } }; diff --git a/src/pages/ReCheck/OrderTable.vue b/src/pages/ReCheck/OrderTable.vue index 6e05b42..4dd8fd9 100644 --- a/src/pages/ReCheck/OrderTable.vue +++ b/src/pages/ReCheck/OrderTable.vue @@ -33,8 +33,20 @@
-

{{ 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 + }} +

@@ -74,18 +86,22 @@
-
-

{{ 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) || "-" }}%

diff --git a/src/pages/ReCheck/index.vue b/src/pages/ReCheck/index.vue index 8dadbc3..a0a84c5 100644 --- a/src/pages/ReCheck/index.vue +++ b/src/pages/ReCheck/index.vue @@ -139,10 +139,13 @@ > - +
启用增购 @@ -279,8 +282,9 @@ export default { TradeCoinCount: 10, IsEnableAdditionalQuantity: false, Balance: 10000, - MaxBorrowRatio: 20, - IsEnableRemedyForErrorCrossSignal: false + MaxLoanRatio: 20, + IsEnableRemedyForErrorCrossSignal: false, + MaxFollowPurchaseRatio: 20 }, logData: [], PositionFund: 1, @@ -797,10 +801,11 @@ export default { TradeCoinCount: parseFloat(this.vTForm.TradeCoinCount), IsEnableAdditionalQuantity: this.vTForm .IsEnableAdditionalQuantity, - MaxBorrowRatio: this.vTForm.MaxBorrowRatio, + MaxLoanRatio: this.vTForm.MaxLoanRatio, Balance: this.vTForm.Balance, IsEnableRemedyForErrorCrossSignal: this.vTForm .IsEnableRemedyForErrorCrossSignal, + MaxFollowPurchaseRatio: this.vTForm.MaxFollowPurchaseRatio, SymbolList: newExcelData } : { diff --git a/src/pages/RobotSec/Account.vue b/src/pages/RobotSec/Account.vue index 310be88..7c226f3 100644 --- a/src/pages/RobotSec/Account.vue +++ b/src/pages/RobotSec/Account.vue @@ -22,6 +22,7 @@ :key="item.props" :label="item.label" :prop="item.props" + :width="item.width" > 删除 @@ -50,9 +51,6 @@ > 操作 - 添加API Key 资金划转 @@ -314,19 +312,19 @@ const MainColumns = [ { label: "登录名", props: "LoginName" }, { label: "UID", props: "UID" }, - { label: "账户类型", props: "AccountType" }, - { label: "账户余额", props: "Balance" }, - { label: "保底运营资金", props: "Balance1" }, - { label: "可转资金", props: "account5" }, - { label: "交易所借款金额", props: "account6" } + { label: "账户类型", props: "AccountType", width: 200 }, + { label: "账户余额", props: "Balance", width: 200 }, + { label: "保底运营资金", props: "Balance1", width: 200 }, + { label: "可转资金", props: "account5", width: 200 }, + { label: "交易所借款金额", props: "account6", width: 200 } ]; const SubColumns = [ - { label: "API Key", props: "AccessKey" }, - { label: "交易对", props: "Symbol" }, - { label: "账户余额", props: "Balance" }, - { label: "保底运营资金", props: "MinimumWorkingCapital" }, - { label: "可转资金", props: "RobotId" } + { label: "API Key", props: "AccessKey", width: 370 }, + { label: "交易对", props: "Symbol", width: 200 }, + { label: "账户余额", props: "Balance", width: 190 }, + { label: "保底运营资金", props: "MinimumWorkingCapital", width: 190 }, + { label: "可转资金", props: "R", width: 200 } ]; import { Modal } from "@/components"; diff --git a/src/pages/RobotSec/Modal/RobotSetting.vue b/src/pages/RobotSec/Modal/RobotSetting.vue index c081c06..422cee0 100644 --- a/src/pages/RobotSec/Modal/RobotSetting.vue +++ b/src/pages/RobotSec/Modal/RobotSetting.vue @@ -25,6 +25,10 @@ label="初始交易量" v-model="form.TradeCoinCount" > + 交易周期