|
|
|
|
@ -1632,20 +1632,10 @@ function initTradeReview() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function trInitDefaultDate() {
|
|
|
|
|
try {
|
|
|
|
|
const res = await fetch(`${TR_API_BASE}/latest-trade-date`);
|
|
|
|
|
const json = await res.json();
|
|
|
|
|
if (json.success && json.data.trade_date) {
|
|
|
|
|
const dateStr = json.data.trade_date;
|
|
|
|
|
document.getElementById('tr-start-date').value = dateStr;
|
|
|
|
|
document.getElementById('tr-end-date').value = dateStr;
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
console.error('获取最后交易日失败', e);
|
|
|
|
|
}
|
|
|
|
|
// 初始化快捷日期按钮
|
|
|
|
|
trInitQuickDates();
|
|
|
|
|
trLoadAllData();
|
|
|
|
|
// 默认加载近一周数据
|
|
|
|
|
trSetDateRange('week');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function trInitQuickDates() {
|
|
|
|
|
|