优化了实时估值的功能

This commit is contained in:
Sebastian
2026-02-05 15:20:09 +08:00
parent d43cc40689
commit 37218ce237
5 changed files with 1446 additions and 5 deletions

View File

@@ -35,6 +35,13 @@
> >
💰 定投回测 💰 定投回测
</button> </button>
<button
class="mode-btn"
:class="{ active: viewMode === 'realtime' }"
@click="viewMode = 'realtime'"
>
📊 实时估值
</button>
</div> </div>
</div> </div>
</div> </div>
@@ -83,8 +90,8 @@
<!-- 其他模式 --> <!-- 其他模式 -->
<div v-else class="main-layout"> <div v-else class="main-layout">
<!-- 左侧自选列表 (筛选模式显示) --> <!-- 左侧自选列表 (筛选和实时估值模式显示) -->
<aside class="sidebar-left" v-if="viewMode !== 'screening'"> <aside class="sidebar-left" v-if="viewMode !== 'screening' && viewMode !== 'realtime'">
<FundWatchlist <FundWatchlist
@view-fund="handleFundSelected" @view-fund="handleFundSelected"
@add-to-compare="handleAddToCompare" @add-to-compare="handleAddToCompare"
@@ -96,7 +103,7 @@
</aside> </aside>
<!-- 右侧根据模式显示不同内容 --> <!-- 右侧根据模式显示不同内容 -->
<div class="content-area" :class="{ 'full-width': viewMode === 'screening' }"> <div class="content-area" :class="{ 'full-width': viewMode === 'screening' || viewMode === 'realtime' }">
<!-- 筛选模式 --> <!-- 筛选模式 -->
<template v-if="viewMode === 'screening'"> <template v-if="viewMode === 'screening'">
<FundScreening <FundScreening
@@ -111,6 +118,11 @@
:fundCode="selectedFundCode" :fundCode="selectedFundCode"
/> />
</template> </template>
<!-- 实时估值模式 -->
<template v-else-if="viewMode === 'realtime'">
<FundRealtime />
</template>
</div> </div>
</div> </div>
</main> </main>
@@ -129,6 +141,7 @@ import FundWatchlist from './components/FundWatchlist.vue'
import FundComparison from './components/FundComparison.vue' import FundComparison from './components/FundComparison.vue'
import FundScreening from './components/FundScreening.vue' import FundScreening from './components/FundScreening.vue'
import FundBacktest from './components/FundBacktest.vue' import FundBacktest from './components/FundBacktest.vue'
import FundRealtime from './components/FundRealtime.vue'
import MarketOverview from './components/MarketOverview.vue' import MarketOverview from './components/MarketOverview.vue'
import FlashNews from './components/FlashNews.vue' import FlashNews from './components/FlashNews.vue'
import SectorRank from './components/SectorRank.vue' import SectorRank from './components/SectorRank.vue'
@@ -142,6 +155,7 @@ export default {
FundComparison, FundComparison,
FundScreening, FundScreening,
FundBacktest, FundBacktest,
FundRealtime,
MarketOverview, MarketOverview,
FlashNews, FlashNews,
SectorRank SectorRank

File diff suppressed because it is too large Load Diff

View File

@@ -50,11 +50,11 @@ GoFundBot 是一个基于 Python (Flask) 和 Vue 3 构建的智能基金分析
- 基金经理能力评估调用东方财富API绘制经理能力雷达图。 - 基金经理能力评估调用东方财富API绘制经理能力雷达图。
- 同类基金涨幅榜:辅助挑选同类型优质基金。 - 同类基金涨幅榜:辅助挑选同类型优质基金。
![基金详情.png](https://github.com/Sebastian6848/GoFundBot/blob/master/docs/images/%E5%9F%BA%E9%87%91%E8%AF%A6%E6%83%85.png) ![基金详情.png](docs/images/基金详情.png)
- 使用LLM辅助分析基金情况结论仅供参考 - 使用LLM辅助分析基金情况结论仅供参考
![LLM分析](docs/images/LLM分析.png) ![LLM](docs/images/LLM分析.png)
#### 3基金筛选 #### 3基金筛选
@@ -88,6 +88,14 @@ GoFundBot 是一个基于 Python (Flask) 和 Vue 3 构建的智能基金分析
![回测结果.png](docs/images/回测结果.png) ![回测结果.png](docs/images/回测结果.png)
#### 6实时估值
- 可以对持有的基金进行实时估值并计算当日盈亏
![实时估值](docs/images/实时估值.png)
## 🛠 技术栈 ## 🛠 技术栈
### 后端 (Backend) ### 后端 (Backend)
@@ -104,6 +112,8 @@ GoFundBot 是一个基于 Python (Flask) 和 Vue 3 构建的智能基金分析
* **可视化**: ECharts * **可视化**: ECharts
* **Markdown**: 支持 AI 报告的 Markdown 渲染 * **Markdown**: 支持 AI 报告的 Markdown 渲染
## 📋 环境准备 ## 📋 环境准备
在运行项目之前,请确保您的本地环境已安装以下软件: 在运行项目之前,请确保您的本地环境已安装以下软件:
@@ -111,6 +121,8 @@ GoFundBot 是一个基于 Python (Flask) 和 Vue 3 构建的智能基金分析
* **Node.js** (推荐 LTS 版本) 和 `npm` * **Node.js** (推荐 LTS 版本) 和 `npm`
* **Python 3.8+****Anaconda/Miniconda** * **Python 3.8+****Anaconda/Miniconda**
## ⚡ 快速开始 ## ⚡ 快速开始
### 1. 配置环境变量 (重要) ### 1. 配置环境变量 (重要)
@@ -159,6 +171,8 @@ npm run dev
启动成功后,访问终端显示的本地地址(通常为 `http://localhost:5173`)。 启动成功后,访问终端显示的本地地址(通常为 `http://localhost:5173`)。
## 📂 项目结构 ## 📂 项目结构
```text ```text
@@ -178,6 +192,9 @@ MyBot/
│ │ └── ... │ │ └── ...
└── ... └── ...
``` ```
## 📝 免责声明 ## 📝 免责声明
本项目所有数据均来自公开接口,仅供个人学习及参考使用。数据可能存在延迟,不作为任何投资建议。 本项目所有数据均来自公开接口,仅供个人学习及参考使用。数据可能存在延迟,不作为任何投资建议。

View File

Before

Width:  |  Height:  |  Size: 171 KiB

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 KiB