fix: 将固定日期替换为动态计算最近7天的日期范围
This commit is contained in:
parent
69fffec976
commit
19b2583c57
|
|
@ -260,8 +260,8 @@ async function getLineDataFn() {
|
||||||
if (lineTabIndex.value == 0) {
|
if (lineTabIndex.value == 0) {
|
||||||
// 行业
|
// 行业
|
||||||
getTopIndustryPeriod({
|
getTopIndustryPeriod({
|
||||||
start_time: "2025-09-06",
|
start_time: dayjs().subtract(7, 'day').format("YYYY-MM-DD"),
|
||||||
end_time: "2025-09-13",
|
end_time: dayjs().format("YYYY-MM-DD"),
|
||||||
limit_num: 10,
|
limit_num: 10,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
lineTopData.value = res;
|
lineTopData.value = res;
|
||||||
|
|
@ -269,8 +269,8 @@ async function getLineDataFn() {
|
||||||
} else if (lineTabIndex.value == 1) {
|
} else if (lineTabIndex.value == 1) {
|
||||||
// 概念
|
// 概念
|
||||||
getTopConceptPeriod({
|
getTopConceptPeriod({
|
||||||
start_time: "2025-09-06",
|
start_time: dayjs().subtract(7, 'day').format("YYYY-MM-DD"),
|
||||||
end_time: "2025-09-13",
|
end_time: dayjs().format("YYYY-MM-DD"),
|
||||||
limit_num: 10,
|
limit_num: 10,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
lineTopData.value = res;
|
lineTopData.value = res;
|
||||||
|
|
@ -278,8 +278,8 @@ async function getLineDataFn() {
|
||||||
} else if (lineTabIndex.value == 2) {
|
} else if (lineTabIndex.value == 2) {
|
||||||
// 媒体
|
// 媒体
|
||||||
getTopSourcePeriod({
|
getTopSourcePeriod({
|
||||||
start_time: "2025-09-06",
|
start_time: dayjs().subtract(7, 'day').format("YYYY-MM-DD"),
|
||||||
end_time: "2025-09-13",
|
end_time: dayjs().format("YYYY-MM-DD"),
|
||||||
limit_num: 10,
|
limit_num: 10,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
lineTopData.value = res;
|
lineTopData.value = res;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue