update
This commit is contained in:
parent
65b2150acd
commit
e84fd312f4
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>后台管理 - Tradus</title>
|
||||
<title>后台管理 - XClaw</title>
|
||||
|
||||
<!-- Global Styles -->
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
@ -395,7 +395,7 @@
|
||||
<!-- Sidebar -->
|
||||
<div class="admin-sidebar">
|
||||
<div class="admin-logo">
|
||||
<h2>Tradus 管理后台</h2>
|
||||
<h2>XClaw 管理后台</h2>
|
||||
</div>
|
||||
<ul class="admin-nav">
|
||||
<li class="admin-nav-item"
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Tradus|AI 金融智能体</title>
|
||||
<title>XClaw|AI 金融智能体</title>
|
||||
|
||||
<!-- Global Styles -->
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
@ -481,7 +481,7 @@
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
|
||||
<path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z" fill="currentColor"/>
|
||||
</svg>
|
||||
<span>Tradus AI</span>
|
||||
<span>XClaw AI</span>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<!-- Model Display -->
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>登录 - Tradus AI</title>
|
||||
<title>登录 - XClaw AI</title>
|
||||
|
||||
<!-- Global Styles -->
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
@ -193,7 +193,7 @@
|
||||
<path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z" fill="currentColor"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h1 class="login-title">Tradus AI</h1>
|
||||
<h1 class="login-title">XClaw AI</h1>
|
||||
</div>
|
||||
|
||||
<form class="login-form" @submit.prevent="handleLogin">
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>实盘交易 - Tradus</title>
|
||||
<title>实盘交易 - XClaw</title>
|
||||
|
||||
<!-- Global Styles -->
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>交易信号 - Tradus</title>
|
||||
<title>交易信号 - XClaw</title>
|
||||
|
||||
<!-- Global Styles -->
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>模拟交易 - Tradus</title>
|
||||
<title>XClaw AI</title>
|
||||
|
||||
<!-- Global Styles -->
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
@ -159,10 +159,10 @@
|
||||
<div class="page-header">
|
||||
<div>
|
||||
<div class="page-title">
|
||||
模拟交易
|
||||
<span class="paper-badge">PAPER</span>
|
||||
XClaw
|
||||
<span class="paper-badge">AI</span>
|
||||
</div>
|
||||
<div class="page-subtitle">Tradus AI Auto Trading</div>
|
||||
<div class="page-subtitle">XClaw AI Auto Trading</div>
|
||||
</div>
|
||||
<div class="header-actions">
|
||||
<button class="btn btn-secondary" @click="refreshData">刷新</button>
|
||||
@ -531,8 +531,14 @@
|
||||
async fetchOrders() {
|
||||
try {
|
||||
const response = await axios.get('/api/trading/orders');
|
||||
console.log('API Response:', response.data);
|
||||
if (response.data.success) {
|
||||
this.orders = response.data.orders;
|
||||
this.orders = response.data.orders || [];
|
||||
console.log('Orders loaded:', this.orders.length);
|
||||
console.log('Orders data:', this.orders);
|
||||
console.log('Open positions:', this.orders.filter(o => o.status === 'open'));
|
||||
console.log('Pending orders:', this.orders.filter(o => o.status === 'pending'));
|
||||
console.log('Order history:', this.orders.filter(o => o.status === 'closed'));
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取订单失败:', error);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user