diff --git a/stock-html/static/css/scan.css b/stock-html/static/css/scan.css index e65a413..adb7909 100644 --- a/stock-html/static/css/scan.css +++ b/stock-html/static/css/scan.css @@ -655,6 +655,32 @@ .scan-pagination button:disabled { opacity: 0.3; cursor: not-allowed; } .scan-pagination span { font-size: 13px; color: var(--text-secondary); } +/* 结果列表可收起 header */ +.full-scan-list-section { + margin-top: 8px; +} +.scan-list-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 8px 12px; + cursor: pointer; + border-radius: 8px; + background: rgba(255,255,255,0.03); + transition: background 0.15s; +} +.scan-list-header:hover { background: rgba(255,255,255,0.06); } +.scan-list-title { + font-size: 13px; + font-weight: 600; + color: var(--text-secondary); +} +.scan-list-title small { + font-weight: 400; + color: var(--text-muted); + margin-left: 4px; +} + .admin-link-btn { display: block; text-align: center; diff --git a/stock-html/static/js/app.js b/stock-html/static/js/app.js index bb90703..5234c85 100644 --- a/stock-html/static/js/app.js +++ b/stock-html/static/js/app.js @@ -86,10 +86,12 @@ fullScanLoading: false, fullScanPage: 1, fullScanTotalPages: 1, + fullScanPerPage: 5, // 每页显示5只股票 fullScanFilter: 'all', fullScanFilterTypes: [], fullScanFilterRecommend: '买入', // 扫描结果打开时缺省显示买入列表;all|买入|加仓|卖出|持有|关注|观察|观望 scanSummaryCollapsed: false, + scanResultsCollapsed: false, // 结果列表可收起 fullScanSignalDist: [], // 找牛股(保留兼容) @@ -2253,7 +2255,7 @@ const resp = await axios.get('/api/scan_results', { params: { page: this.fullScanPage, - per_page: 50, + per_page: this.fullScanPerPage, min_triggered: minTriggered, signal_type: signalTypes, holding_codes: (this.holdingStocks || []).join(','), diff --git a/stock-html/templates/index.html b/stock-html/templates/index.html index 7e10663..de7b866 100644 --- a/stock-html/templates/index.html +++ b/stock-html/templates/index.html @@ -25,7 +25,7 @@ - +
@@ -883,7 +883,12 @@ -