瀏覽代碼

feat: 微调智慧大屏历史统计悬浮展示;

liujia 1 月之前
父節點
當前提交
8f980f3ffb

+ 2 - 2
src/views/dashboard/components/AlertFallCompareCard/index.vue

@@ -1,9 +1,9 @@
 <template>
   <TechCard>
     <div class="card-header">
-      <div class="title">跌倒与告警统计</div>
+      <div class="title">今日跌倒与告警</div>
     </div>
-    <BaseChart :option="chartOption" :height="200" />
+    <BaseChart :option="chartOption" :height="180" />
   </TechCard>
 </template>
 

+ 2 - 2
src/views/dashboard/components/HistoryChartCard/index.vue

@@ -8,7 +8,7 @@
     </template>
 
     <div class="card-title">{{ title }}</div>
-    <BaseChart :option="chartOption" :height="175" />
+    <BaseChart :option="chartOption" :height="140" />
   </TechCard>
 </template>
 
@@ -49,7 +49,7 @@ const chartData = computed(() => {
 const chartOption = computed(() => ({
   grid: { top: 10, right: 20, bottom: 30, left: 30 },
   tooltip: {
-    trigger: 'axis',
+    trigger: 'item',
     axisPointer: { type: 'shadow' },
   },
   xAxis: {

+ 1 - 1
src/views/dashboard/components/ObjectDistributionCard/index.vue

@@ -1,7 +1,7 @@
 <template>
   <TechCard>
     <div class="card-title">检测对象分布</div>
-    <BaseChart :option="chartOption" :height="200" />
+    <BaseChart :option="chartOption" :height="180" />
   </TechCard>
 </template>