From 2df134deae4601dd7182c1b95a6663ce03785854 Mon Sep 17 00:00:00 2001
From: jiang <1354748262@qq.com>
Date: 星期三, 24 一月 2024 10:03:20 +0800
Subject: [PATCH] 更新配瓦规则

---
 jcdm-ui/src/views/index.vue |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/jcdm-ui/src/views/index.vue b/jcdm-ui/src/views/index.vue
index fc6881d..727f870 100644
--- a/jcdm-ui/src/views/index.vue
+++ b/jcdm-ui/src/views/index.vue
@@ -2,16 +2,22 @@
   <div class="dashboard-editor-container">
 
     <panel-group @handleSetLineChartData="handleSetLineChartData" />
-
+    <el-row style="margin-top: 12px" >
     <el-row style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">
       <el-col :xs="24" :sm="12">
-        <pie-chart />
+        <el-card>
+          <pie-chart />
+        </el-card>
       </el-col>
+
       <el-col :xs="24" :sm="12">
-        <line-chart :chart-data="lineChartData" />
+        <el-card>
+          <line-chart :chart-data="lineChartData" />
+        </el-card>
+
       </el-col>
     </el-row>
-
+    </el-row>
   </div>
 </template>
 
@@ -19,6 +25,7 @@
 import PanelGroup from './dashboard/PanelGroup'
 import LineChart from './dashboard/LineChart'
 import PieChart from './dashboard/PieChart'
+import pieChart from "@/views/dashboard/PieChart.vue";
 
 const lineChartData = {
   newVisitis: {
@@ -41,6 +48,11 @@
 
 export default {
   name: 'Index',
+  computed: {
+    pieChart() {
+      return pieChart
+    }
+  },
   components: {
     PanelGroup,
     LineChart,

--
Gitblit v1.9.3