From 5d0a077b235fa694bd356b94edbba7c2f483d36a Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 10 十一月 2024 19:42:06 +0800
Subject: [PATCH] 添加饼图
---
src/views/mdc/processParam/index.vue | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/views/mdc/processParam/index.vue b/src/views/mdc/processParam/index.vue
index 429f9b8..2808120 100644
--- a/src/views/mdc/processParam/index.vue
+++ b/src/views/mdc/processParam/index.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2024-04-09 22:11:21
* @LastEditors: gaoshp
- * @LastEditTime: 2024-11-10 19:36:53
+ * @LastEditTime: 2024-11-10 19:41:20
* @FilePath: /cps-web/src/views/mdc/processParam/index.vue
瀹炴椂鐪嬫澘
-->
@@ -50,8 +50,7 @@
<scEcharts v-if="!item.showPie" style="width:100%" :height="item.height"
:option="item?.dayCharts">
</scEcharts>
- <scEcharts v-else style="width:100%" :height="item.height"
- :option="item?.pieCharts">
+ <scEcharts v-else style="width:100%" height="300px" :option="item?.pieCharts">
</scEcharts>
</div>
<el-empty v-else description="鏆傛棤鏁版嵁" />
@@ -230,7 +229,7 @@
return {
...v,
name: name,
- height: ['ProcessProgram', 'DeviceStatus'].includes(v.name) ? '100px' : '200px'
+ height: v.paramChartType == 'distribute' ? '300px' : '200px'
}
})
this.queryChart()
--
Gitblit v1.9.3