From e8a7beb5455d0c9f50f93004b600dd2781ad6bfd Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期一, 30 六月 2025 09:36:56 +0800 Subject: [PATCH] feat(空调控制): 实现空调控制功能并优化 SVG 数据加载- 新增 AirCondConstants 类,定义空调控制常量 - 修改 AirConditionerServiceImpl,使用常量替代硬编码值 - 更新 MQTT 消息发送逻辑,使用常量定义主题 - 优化 SVG 数据加载和处理逻辑,改进标签值更新方式 - 调整域名地址配置,支持生产环境 API --- zhitan-vue/src/views/comprehensive/comps/LineChart.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/zhitan-vue/src/views/comprehensive/comps/LineChart.vue b/zhitan-vue/src/views/comprehensive/comps/LineChart.vue index e9cc744..75914f3 100644 --- a/zhitan-vue/src/views/comprehensive/comps/LineChart.vue +++ b/zhitan-vue/src/views/comprehensive/comps/LineChart.vue @@ -31,6 +31,10 @@ } ) +onMounted(() => { + initChart() +}) + function initChart(value) { const chartDom = document.getElementById("ChartDom") if (echarts.getInstanceByDom(chartDom)) { @@ -45,7 +49,7 @@ color: "#2979ff", }, }, - color: ["#2979ff", "#19be6b", "#ff9900", "#fa3534"], + color: ["#40c2ff", "#2979ff", "#ff9900", "#fa3534"], tooltip: { trigger: "axis", axisPointer: { @@ -61,7 +65,7 @@ }, }, grid: { - top: "40", + top: "60", left: "50", right: "40", bottom: "20", -- Gitblit v1.9.3