From 01cb633562174ae7390d12b85690a45997f34be7 Mon Sep 17 00:00:00 2001 From: yyt <306727702@qq.com> Date: 星期三, 24 一月 2024 11:17:20 +0800 Subject: [PATCH] 更新OPCUA --- 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