From 0e2a09d77ba66ed26759acce691f9b44056d6a34 Mon Sep 17 00:00:00 2001 From: "2090205686@qq.com" Date: Wed, 21 May 2025 10:46:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=96=87=E4=BB=B6=E5=A4=B9?= =?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=8C=E8=B7=AF=E7=94=B1=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sub-operation-service/src/router/index.js | 10 +- .../src/views/smartFarm/components/common.vue | 12 +-- .../smartFarm/components/controlDevices.vue | 11 +- .../drainageControl.vue} | 101 +++--------------- .../growSeedlings.vue} | 0 .../irrigationSystem.vue} | 0 .../openCurtain.vue} | 34 +++--- .../pestPrevention.vue} | 0 8 files changed, 48 insertions(+), 120 deletions(-) rename sub-operation-service/src/views/smartFarm/{drainageControl/index.vue => manageControl/drainageControl.vue} (65%) rename sub-operation-service/src/views/smartFarm/{growSeedlings/index.vue => manageControl/growSeedlings.vue} (100%) rename sub-operation-service/src/views/smartFarm/{irrigationSystem/index.vue => manageControl/irrigationSystem.vue} (100%) rename sub-operation-service/src/views/smartFarm/{openCurtain/index.vue => manageControl/openCurtain.vue} (88%) rename sub-operation-service/src/views/smartFarm/{pestPrevention/index.vue => manageControl/pestPrevention.vue} (100%) diff --git a/sub-operation-service/src/router/index.js b/sub-operation-service/src/router/index.js index 5a20d78..ab498ce 100644 --- a/sub-operation-service/src/router/index.js +++ b/sub-operation-service/src/router/index.js @@ -135,31 +135,31 @@ export const constantRoutes = [ }, { path: '/sub-operation-service/smartFarm/growSeedlings', - component: () => import('@/views/smartFarm/growSeedlings/index.vue'), + component: () => import('@/views/smartFarm/manageControl/growSeedlings.vue'), name: 'growSeedlings', meta: { title: '一体育苗' }, }, { path: '/sub-operation-service/smartFarm/pestPrevention', - component: () => import('@/views/smartFarm/pestPrevention/index.vue'), + component: () => import('@/views/smartFarm/manageControl/pestPrevention.vue'), name: 'pestPrevention', meta: { title: '病虫害防治' }, }, { path: '/sub-operation-service/smartFarm/irrigationSystem', - component: () => import('@/views/smartFarm/irrigationSystem/index.vue'), + component: () => import('@/views/smartFarm/manageControl/irrigationSystem.vue'), name: 'irrigationSystem', meta: { title: '喷灌滴灌' }, }, { path: '/sub-operation-service/smartFarm/drainageControl', - component: () => import('@/views/smartFarm/drainageControl/index.vue'), + component: () => import('@/views/smartFarm/manageControl/drainageControl.vue'), name: 'drainageControl', meta: { title: '排集水控制' }, }, { path: '/sub-operation-service/smartFarm/openCurtain', - component: () => import('@/views/smartFarm/openCurtain/index.vue'), + component: () => import('@/views/smartFarm/manageControl/openCurtain.vue'), name: 'openCurtain', meta: { title: '开窗卷帘' }, }, diff --git a/sub-operation-service/src/views/smartFarm/components/common.vue b/sub-operation-service/src/views/smartFarm/components/common.vue index 81308e1..847afce 100644 --- a/sub-operation-service/src/views/smartFarm/components/common.vue +++ b/sub-operation-service/src/views/smartFarm/components/common.vue @@ -51,38 +51,38 @@ const menus = reactive([ name: 'control', title: '生产管理控制', icon: 'menu3.png', - path: '/sub-operation-service/ecommerce-purchaser', + path: '', isOpen: false, children: [ { name: 'control', title: '一体育苗', icon: 'menu3.png', - path: '/sub-operation-service/smartFarm/growSeedlings', + path: '/sub-operation-service/smartFarm/manageControl/growSeedlings', }, { name: 'control', title: '病虫害预防', icon: 'menu3.png', - path: '/sub-operation-service/smartFarm/pestPrevention', + path: '/sub-operation-service/smartFarm/manageControl/pestPrevention', }, { name: 'control', title: '喷灌滴灌', icon: 'menu3.png', - path: '/sub-operation-service/smartFarm/irrigationSystem', + path: '/sub-operation-service/smartFarm/manageControl/irrigationSystem', }, { name: 'control', title: '排集水控制', icon: 'menu3.png', - path: '/sub-operation-service/smartFarm/drainageControl', + path: '/sub-operation-service/smartFarm/manageControl/drainageControl', }, { name: 'control', title: '开窗卷帘', icon: 'menu3.png', - path: '/sub-operation-service/smartFarm/openCurtain', + path: '/sub-operation-service/smartFarm/manageControl/openCurtain', }, ], }, diff --git a/sub-operation-service/src/views/smartFarm/components/controlDevices.vue b/sub-operation-service/src/views/smartFarm/components/controlDevices.vue index 42e1b5e..ffb1771 100644 --- a/sub-operation-service/src/views/smartFarm/components/controlDevices.vue +++ b/sub-operation-service/src/views/smartFarm/components/controlDevices.vue @@ -39,13 +39,8 @@ const getDeviceSwitchStatus = (device) => { }); }; -const broadcast = ref([ - '2025年01月01日10:10:10,排水泵P567789456发生异常关机,请检查设备情况!', - '2025年02月02日11:14:55,排水泵P567789478发生异常故障,请检查设备情况!', -]); - onMounted(() => { - console.info('broadcastData', props.broadcastData); + // console.info('broadcastData', props.broadcastData); }); @@ -55,8 +50,8 @@ onMounted(() => {
- - + +
{{ item }}
diff --git a/sub-operation-service/src/views/smartFarm/drainageControl/index.vue b/sub-operation-service/src/views/smartFarm/manageControl/drainageControl.vue similarity index 65% rename from sub-operation-service/src/views/smartFarm/drainageControl/index.vue rename to sub-operation-service/src/views/smartFarm/manageControl/drainageControl.vue index ad06448..271c9c6 100644 --- a/sub-operation-service/src/views/smartFarm/drainageControl/index.vue +++ b/sub-operation-service/src/views/smartFarm/manageControl/drainageControl.vue @@ -9,8 +9,7 @@