From 9b29f5e7fbdb2055b2137300112ec8886bb0b865 Mon Sep 17 00:00:00 2001 From: lld <15027638633@163.com> Date: Wed, 11 Mar 2026 03:20:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- colorui/main.css | 3 -- pages.json | 6 ++- pages/home/control/automatic.vue | 69 +++++++++++++++++++++----------- pages/home/control/index.vue | 14 +++++-- pages/home/control/manual.vue | 7 ++-- pages/mine/index.vue | 16 +++++++- 6 files changed, 78 insertions(+), 37 deletions(-) diff --git a/colorui/main.css b/colorui/main.css index 7ef0074..7965708 100644 --- a/colorui/main.css +++ b/colorui/main.css @@ -4108,7 +4108,6 @@ movable-view.indexBar-item::before { .cu-draw-box { width: 632rpx; - box-shadow: -6px 8px 81px 0px rgb(255, 192, 203, 0.73), 0px 0px 24px 0px #ffffff inset; border-radius: 30rpx; box-sizing: border-box; padding: 9rpx; @@ -4118,7 +4117,6 @@ movable-view.indexBar-item::before { .cu-draw-b_box { width: 614rpx; border-radius: 30rpx; - box-shadow: 0px 0px 10px 0px rgb(255, 192, 203, 0.53), 0px 0px 27px 0px #ffffff inset; box-sizing: border-box; padding: 19rpx 15rpx; } @@ -4190,7 +4188,6 @@ movable-view.indexBar-item::before { content: ''; width: 280rpx; height: 280rpx; - background: rgb(48, 124, 237, 0.79); border-radius: 50%; top: 50%; left: 50%; diff --git a/pages.json b/pages.json index 8fa7d89..7ac4efb 100644 --- a/pages.json +++ b/pages.json @@ -64,7 +64,11 @@ { "path": "control/index", "style": { - "navigationBarTitleText": "控制中心" + "navigationBarTitleText": "控制中心", + "usingComponents": { + "auto-page": "/pages/home/control/automatic", + "manual-page": "/pages/home/control/manual" + } } } // , diff --git a/pages/home/control/automatic.vue b/pages/home/control/automatic.vue index 54eb6a4..7c9cd5f 100644 --- a/pages/home/control/automatic.vue +++ b/pages/home/control/automatic.vue @@ -52,6 +52,7 @@ @@ -79,11 +80,11 @@ 运行时间开始 - {{ item.startTime }} + {{ item.startTime || '请选择时间' }} 运行时间终止 - {{ item.endTime }} + {{ item.endTime || '请选择时间' }} @@ -109,11 +110,9 @@ - - 一键同步卷膜所有配置 + + 一键同步卷膜所有配置 @@ -292,6 +291,9 @@ import { checkTimeConflict } from "../../../utils/agri" import {getAgriTerm, saveAgriTerm} from "../../../api/control/autoTerm"; export default { + options: { + styleIsolation: 'shared' + }, dicts: ['sys_data_map'], name: "manual", props: { @@ -845,10 +847,10 @@ export default { const index = this.current + 1 this.termList[this.current]['terms'].push({ id: generateUniqueId(), - startTime: '请选择时间', - endTime: '请选择时间', - temp: '选择', - vent: '选择', + startTime: null, + endTime: null, + temp: 0, + vent: 0, imei: this.value, roller: `jm${index}` }); @@ -941,7 +943,7 @@ export default { min: 0, max: 40, unit: '℃', - value: fillerTerm.temp==='选择'?0:fillerTerm.temp, + value: fillerTerm.temp, mode: tag } } else if (tag === 'vent') { @@ -950,7 +952,7 @@ export default { min: 0, max: 100, unit: 'cm', - value: fillerTerm.vent==='选择'?0:fillerTerm.vent, + value: fillerTerm.vent, mode: tag } } @@ -1029,11 +1031,11 @@ export default { }, { tip: '温度控制适宜温度填写不完整,请填写后重新尝试!', - validate: (rollerParam, term) => term.some(item => !(item.temp && item.temp!=='选择')) + validate: (rollerParam, term) => term.some(item => !(item.temp && item.temp>0)) }, { tip: '温度控制风口开合大小填写不完整,请填写后重新尝试!', - validate: (rollerParam, term) => term.some(item => !(item.vent && item.vent!=='选择')) + validate: (rollerParam, term) => term.some(item => !(item.vent && item.vent>0)) } ]; @@ -1047,10 +1049,11 @@ export default { '参数设置失败,请下拉刷新后重试!', false, null, 'none', 3000) return; - } else if (rule.validate(rollerParam, term)) { - rollerList.push(filmRoller); - showTips = rule.tip; } + // else if (rule.validate(rollerParam, term)) { + // rollerList.push(filmRoller); + // showTips = rule.tip; + // } } if (rollerList.length>0) { this.$tn.message.toast(`【${rollerList.join(",")}】${showTips}`); @@ -1103,10 +1106,6 @@ export default { }; diff --git a/pages/home/control/index.vue b/pages/home/control/index.vue index b0be9f5..2952d02 100644 --- a/pages/home/control/index.vue +++ b/pages/home/control/index.vue @@ -7,7 +7,7 @@ - +