fix: 将固定日期替换为动态计算最近7天的日期范围

This commit is contained in:
34701892@qq.com 2025-10-24 16:01:06 +08:00
parent 69fffec976
commit 19b2583c57
1 changed files with 6 additions and 6 deletions

View File

@ -260,8 +260,8 @@ async function getLineDataFn() {
if (lineTabIndex.value == 0) {
//
getTopIndustryPeriod({
start_time: "2025-09-06",
end_time: "2025-09-13",
start_time: dayjs().subtract(7, 'day').format("YYYY-MM-DD"),
end_time: dayjs().format("YYYY-MM-DD"),
limit_num: 10,
}).then((res) => {
lineTopData.value = res;
@ -269,8 +269,8 @@ async function getLineDataFn() {
} else if (lineTabIndex.value == 1) {
//
getTopConceptPeriod({
start_time: "2025-09-06",
end_time: "2025-09-13",
start_time: dayjs().subtract(7, 'day').format("YYYY-MM-DD"),
end_time: dayjs().format("YYYY-MM-DD"),
limit_num: 10,
}).then((res) => {
lineTopData.value = res;
@ -278,8 +278,8 @@ async function getLineDataFn() {
} else if (lineTabIndex.value == 2) {
//
getTopSourcePeriod({
start_time: "2025-09-06",
end_time: "2025-09-13",
start_time: dayjs().subtract(7, 'day').format("YYYY-MM-DD"),
end_time: dayjs().format("YYYY-MM-DD"),
limit_num: 10,
}).then((res) => {
lineTopData.value = res;