Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
This commit is contained in:
TIANHE
2025-12-30 18:47:42 +08:00
parent 9d4ffb9931
commit d8e093bd60
4 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -88,12 +88,12 @@ def get_market_types():
data = (cfg.get('market', {}) or {}).get('types')
if not isinstance(data, list) or not data:
data = [
{'value': 'AShare', 'i18nKey': 'dashboard.analysis.market.AShare'},
{'value': 'USStock', 'i18nKey': 'dashboard.analysis.market.USStock'},
{'value': 'HShare', 'i18nKey': 'dashboard.analysis.market.HShare'},
{'value': 'Crypto', 'i18nKey': 'dashboard.analysis.market.Crypto'},
{'value': 'Forex', 'i18nKey': 'dashboard.analysis.market.Forex'},
{'value': 'Futures', 'i18nKey': 'dashboard.analysis.market.Futures'}
{'value': 'Futures', 'i18nKey': 'dashboard.analysis.market.Futures'},
{'value': 'AShare', 'i18nKey': 'dashboard.analysis.market.AShare'},
{'value': 'HShare', 'i18nKey': 'dashboard.analysis.market.HShare'}
]
return jsonify({'code': 1, 'msg': 'success', 'data': data})
@@ -527,12 +527,12 @@ export default {
},
getMarketColor (market) {
const colors = {
'AShare': 'blue',
'USStock': 'green',
'HShare': 'orange',
'Crypto': 'purple',
'Forex': 'gold',
'Futures': 'cyan'
'Futures': 'cyan',
'AShare': 'blue',
'HShare': 'orange'
}
return colors[market] || 'default'
},
@@ -1452,12 +1452,12 @@ export default {
// 获取市场颜色
const getMarketColor = (market) => {
const colors = {
'AShare': 'blue',
'USStock': 'green',
'HShare': 'orange',
'Crypto': 'purple',
'Forex': 'gold',
'Futures': 'cyan'
'Futures': 'cyan',
'AShare': 'blue',
'HShare': 'orange'
}
return colors[market] || 'default'
}
@@ -1164,12 +1164,12 @@ export default {
},
getMarketColor (market) {
const colors = {
AShare: 'blue',
USStock: 'green',
HShare: 'orange',
Crypto: 'purple',
Forex: 'gold',
Futures: 'cyan'
Futures: 'cyan',
AShare: 'blue',
HShare: 'orange'
}
return colors[market] || 'default'
},