瀏覽代碼

✨ feat: 搜索词-分析页功能优化

WanGxC 9 月之前
父節點
當前提交
83a2d6b610

+ 1 - 1
src/views/searchTerm/analysisPage/IndicatorFunnel.vue

@@ -169,7 +169,7 @@ function initChart(opt) {
       </div>
     </div>
     <div v-show="!funnelLoading && !hasData" class="no-data-message" style="min-height: 500px">
-      <el-empty />
+      <el-empty :image-size="300" />
     </div>
     <div v-show="hasData" ref="chartRef" style="width: 100%; height: 500px"></div>
   </el-card>

+ 2 - 2
src/views/searchTerm/analysisPage/IndicatorHeatmap.vue

@@ -190,8 +190,8 @@ async function fetchHeatmapData() {
     </div>
 
     <div class="w-full">
-      <div v-show="!heatmapLoading && !hasData" class="no-data-message" style="min-height: 500px">
-        <el-empty />
+      <div v-show="!heatmapLoading && !hasData" style="min-height: 500px">
+        <el-empty :image-size="300" />
       </div>
       <div v-show="hasData" ref="chartRef" style="width: 100%; height: 500px"></div>
     </div>

+ 3 - 2
src/views/searchTerm/analysisPage/index.vue

@@ -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);