From 2cb2e1a29cba671c083825f19bd7d871c5cc6477 Mon Sep 17 00:00:00 2001 From: zlt Date: Fri, 14 Aug 2026 16:04:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=BA=93=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E8=87=AA=E5=B8=A6(Vue=E7=94=9F=E4=BA=A7=E7=89=88/ElementPlus?= =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E7=89=88,=E5=8E=BBunpkg=E4=BE=9D=E8=B5=96);?= =?UTF-8?q?=20=E7=AD=96=E7=95=A5=E6=9C=AF=E8=AF=AD=E6=94=B9=E5=86=99(?= =?UTF-8?q?=E5=B7=B2=E6=AD=A6=E8=A3=85=E2=86=92=E5=9B=9E=E8=90=BD=E5=8D=B3?= =?UTF-8?q?=E6=AD=A2=E7=9B=88,=E6=9C=AA=E5=B9=B3=E5=9B=9E=E2=86=92?= =?UTF-8?q?=E5=9C=A8=E6=89=8BT=E4=BB=93=E7=AD=89)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/strategy_runner.py | 2 +- app/web/static/index.html | 12 +++---- app/web/static/vendor/axios.min.js | 5 +++ app/web/static/vendor/element-plus.css | 1 + app/web/static/vendor/element-plus.js | 49 ++++++++++++++++++++++++++ app/web/static/vendor/vue.global.js | 14 ++++++++ 6 files changed, 76 insertions(+), 7 deletions(-) create mode 100644 app/web/static/vendor/axios.min.js create mode 100644 app/web/static/vendor/element-plus.css create mode 100644 app/web/static/vendor/element-plus.js create mode 100644 app/web/static/vendor/vue.global.js diff --git a/app/services/strategy_runner.py b/app/services/strategy_runner.py index 105f442..9e6c0c4 100644 --- a/app/services/strategy_runner.py +++ b/app/services/strategy_runner.py @@ -449,7 +449,7 @@ def _eval_trail(st, pos, day, now, ctx): state["high_water"] = round(hw, 3) if not state.get("armed") and profit >= start_line: state["armed"] = True - ctx["notes"].append(f"{st['ts_code']} 跟踪止盈已武装(浮盈 {profit:.1%} ≥ 启动线 {start_line:.1%})") + ctx["notes"].append(f"{st['ts_code']} 跟踪止盈已启动(浮盈 {profit:.1%} ≥ 启动线 {start_line:.1%})") if avail < LOT: return None # 无 T+1 可卖, 只更新高水位 diff --git a/app/web/static/index.html b/app/web/static/index.html index 95d4d67..6838f38 100644 --- a/app/web/static/index.html +++ b/app/web/static/index.html @@ -4,10 +4,10 @@ PMS 持仓管理系统 - - - - + + + +