From 0135e6137975b285b544e86886d9ae7c8782ed33 Mon Sep 17 00:00:00 2001 From: TorsenLi Date: Thu, 11 Jun 2026 06:14:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=82=A1=E7=A5=A8=E5=B9=B3?= =?UTF-8?q?=E4=BB=93=E5=92=8C=E5=85=A8=E5=B9=B3=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8=E4=BB=A5?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=B9=B3=E4=BB=93=E6=93=8D=E4=BD=9C=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E6=B7=BB=E5=8A=A0=E7=9B=B8=E5=BA=94=E7=9A=84=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E6=A1=86=E5=92=8C=E9=80=BB=E8=BE=91=E5=A4=84=E7=90=86?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/exchange.js | 10 + src/views/exchangeStock/order-list.vue | 283 ++++++++++++++++++++++++- 2 files changed, 292 insertions(+), 1 deletion(-) diff --git a/src/api/exchange.js b/src/api/exchange.js index e06ab01..7429eb7 100644 --- a/src/api/exchange.js +++ b/src/api/exchange.js @@ -41,6 +41,16 @@ class Exchange { static stockholdPosition(data, config) { return server.get('/stock/holdPosition', {params:data,config} ) } + + // 股票平仓(部分/指定数量) + static stockClosePosition(data, config) { + return server.post('/stock/closePosition', data, config); + } + + // 股票市价全平 + static stockCloseAllPosition(data, config) { + return server.post('/stock/closeAllPosition', data, config); + } } export default Exchange; \ No newline at end of file diff --git a/src/views/exchangeStock/order-list.vue b/src/views/exchangeStock/order-list.vue index 2520151..8837709 100644 --- a/src/views/exchangeStock/order-list.vue +++ b/src/views/exchangeStock/order-list.vue @@ -92,6 +92,7 @@ {{$t("exchange.a8")}} {{$t("exchange.a9")}} {{$t("exchange.a10")}} + {{ $t("common.action") }} @@ -104,6 +105,12 @@ {{item.dayProfit}} {{item.unRealProfit}} {{item.profitRate}} + + + + @@ -242,11 +249,54 @@ + + + + +
+ + + + {{ closeForm.type == 1 ? $t('contract.d9') : $t('contract.e0') }} + +
+
+ + + + +
+ {{ $t('contract.e9') }} {{ activePosition.usable_balance }} +
+ +
+
+ +