|
@@ -9,14 +9,15 @@ import QueryCondition from './QueryCondition.vue';
|
|
|
import IndicatorOverview from './IndicatorOverview.vue';
|
|
|
import IndicatorChart from './IndicatorChart.vue';
|
|
|
import QuerySummary from './QuerySummary.vue';
|
|
|
+import dayjs from 'dayjs'
|
|
|
|
|
|
const filter = ref({
|
|
|
// 初始化 QueryCondition组件的filter
|
|
|
layerType: 'asin_view',
|
|
|
searchTerm: '',
|
|
|
reportType: 'MONTHLY',
|
|
|
- reportDate: ['2024-04-01', '2024-06-01'],
|
|
|
- variable: 'B00TEST0001',
|
|
|
+ reportDate: [dayjs().format('YYYY-MM-DD'), dayjs().subtract(1, 'month').format('YYYY-MM-DD')],
|
|
|
+ variable: 'B00TEST01',
|
|
|
metric: 'Search_Query_Score',
|
|
|
});
|
|
|
provide('filter', filter);
|