From f15a9f94f8f65bd27284fdd34a21c595c4aae050 Mon Sep 17 00:00:00 2001 From: 86156 <823267011@qq.com> Date: Fri, 31 Oct 2025 19:10:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=95=80=E9=94=8C=E7=BA=BFui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hand-factory/components/lines/acidity.vue | 25 +- apps/hand-factory/components/lines/paint.vue | 717 ++++++++++++---- apps/hand-factory/components/lines/zinc1.vue | 800 +++++++++++------- apps/hand-factory/components/lines/zinc2.vue | 769 +++++++++++------ apps/hand-factory/components/lines/zinc3.vue | 769 +++++++++++------ 5 files changed, 2061 insertions(+), 1019 deletions(-) diff --git a/apps/hand-factory/components/lines/acidity.vue b/apps/hand-factory/components/lines/acidity.vue index a19cfcf..75d6783 100644 --- a/apps/hand-factory/components/lines/acidity.vue +++ b/apps/hand-factory/components/lines/acidity.vue @@ -171,19 +171,36 @@ export default { color: ["#0066cc", "#409eff", "#66b1ff"], padding: [15, 15, 0, 15], enableScroll: false, - legend: {}, + legend: { + show: true, + position: "top", + fontSize: 10, + lineHeight: 14, + itemGap: 6 + }, + dataLabel: false, // 隐藏数据标签 + dataPointShape: false, // 隐藏数据点 xAxis: { disableGrid: true, - rotateLabel: true, // 启用标签旋转 - itemCount: 6, // 只显示6个标签,避免密集 - labelCount: 6 // 标签数量 + rotateLabel: true, + itemCount: 5, // 减少标签数量 + labelCount: 5, + fontSize: 10 }, yAxis: { gridType: "dash", dashLength: 4, gridColor: "#e4e7ed", showTitle: true, + fontSize: 10, data: [{ min: 0, title: "温度(°C)" }] + }, + extra: { + line: { + type: "curve", + width: 2, + activeType: "hollow" + } } }, plantStateDefines: [] // 缓存所有的状态定义 diff --git a/apps/hand-factory/components/lines/paint.vue b/apps/hand-factory/components/lines/paint.vue index b97bbfb..6fd60bc 100644 --- a/apps/hand-factory/components/lines/paint.vue +++ b/apps/hand-factory/components/lines/paint.vue @@ -1,267 +1,632 @@ diff --git a/apps/hand-factory/components/lines/zinc1.vue b/apps/hand-factory/components/lines/zinc1.vue index 84e8a73..37b7b3a 100644 --- a/apps/hand-factory/components/lines/zinc1.vue +++ b/apps/hand-factory/components/lines/zinc1.vue @@ -1,5 +1,5 @@ \ No newline at end of file + +.metric-unit { + display: block; + font-size: 22rpx; + color: #909399; +} + +/* 图表容器 */ +.chart-box { + background: #fff; + border: 1rpx solid #e4e7ed; + border-radius: 8rpx; + padding: 24rpx 16rpx; +} + diff --git a/apps/hand-factory/components/lines/zinc2.vue b/apps/hand-factory/components/lines/zinc2.vue index 213c517..84d7d11 100644 --- a/apps/hand-factory/components/lines/zinc2.vue +++ b/apps/hand-factory/components/lines/zinc2.vue @@ -1,5 +1,5 @@ \ No newline at end of file + diff --git a/apps/hand-factory/components/lines/zinc3.vue b/apps/hand-factory/components/lines/zinc3.vue index 213c517..ea0e18d 100644 --- a/apps/hand-factory/components/lines/zinc3.vue +++ b/apps/hand-factory/components/lines/zinc3.vue @@ -1,5 +1,5 @@ \ No newline at end of file +