Compare commits

..

No commits in common. "f72e2a2f14135925fca7a7617e3798bf74281bf7" and "15637ac3eed9569ac45765559a1bf7fc81d3fd11" have entirely different histories.

8 changed files with 120 additions and 48 deletions

View File

@ -141,31 +141,31 @@ export const constantRoutes = [
}, },
{ {
path: '/sub-operation-service/smartFarm/growSeedlings', path: '/sub-operation-service/smartFarm/growSeedlings',
component: () => import('@/views/smartFarm/manageControl/growSeedlings.vue'), component: () => import('@/views/smartFarm/growSeedlings/index.vue'),
name: 'growSeedlings', name: 'growSeedlings',
meta: { title: '一体育苗' }, meta: { title: '一体育苗' },
}, },
{ {
path: '/sub-operation-service/smartFarm/pestPrevention', path: '/sub-operation-service/smartFarm/pestPrevention',
component: () => import('@/views/smartFarm/manageControl/pestPrevention.vue'), component: () => import('@/views/smartFarm/pestPrevention/index.vue'),
name: 'pestPrevention', name: 'pestPrevention',
meta: { title: '病虫害防治' }, meta: { title: '病虫害防治' },
}, },
{ {
path: '/sub-operation-service/smartFarm/irrigationSystem', path: '/sub-operation-service/smartFarm/irrigationSystem',
component: () => import('@/views/smartFarm/manageControl/irrigationSystem.vue'), component: () => import('@/views/smartFarm/irrigationSystem/index.vue'),
name: 'irrigationSystem', name: 'irrigationSystem',
meta: { title: '喷灌滴灌' }, meta: { title: '喷灌滴灌' },
}, },
{ {
path: '/sub-operation-service/smartFarm/drainageControl', path: '/sub-operation-service/smartFarm/drainageControl',
component: () => import('@/views/smartFarm/manageControl/drainageControl.vue'), component: () => import('@/views/smartFarm/drainageControl/index.vue'),
name: 'drainageControl', name: 'drainageControl',
meta: { title: '排集水控制' }, meta: { title: '排集水控制' },
}, },
{ {
path: '/sub-operation-service/smartFarm/openCurtain', path: '/sub-operation-service/smartFarm/openCurtain',
component: () => import('@/views/smartFarm/manageControl/openCurtain.vue'), component: () => import('@/views/smartFarm/openCurtain/index.vue'),
name: 'openCurtain', name: 'openCurtain',
meta: { title: '开窗卷帘' }, meta: { title: '开窗卷帘' },
}, },

View File

@ -51,38 +51,38 @@ const menus = reactive([
name: 'control', name: 'control',
title: '生产管理控制', title: '生产管理控制',
icon: 'menu3.png', icon: 'menu3.png',
path: '', path: '/sub-operation-service/ecommerce-purchaser',
isOpen: false, isOpen: false,
children: [ children: [
{ {
name: 'control', name: 'control',
title: '一体育苗', title: '一体育苗',
icon: 'menu3.png', icon: 'menu3.png',
path: '/sub-operation-service/smartFarm/manageControl/growSeedlings', path: '/sub-operation-service/smartFarm/growSeedlings',
}, },
{ {
name: 'control', name: 'control',
title: '病虫害预防', title: '病虫害预防',
icon: 'menu3.png', icon: 'menu3.png',
path: '/sub-operation-service/smartFarm/manageControl/pestPrevention', path: '/sub-operation-service/smartFarm/pestPrevention',
}, },
{ {
name: 'control', name: 'control',
title: '喷灌滴灌', title: '喷灌滴灌',
icon: 'menu3.png', icon: 'menu3.png',
path: '/sub-operation-service/smartFarm/manageControl/irrigationSystem', path: '/sub-operation-service/smartFarm/irrigationSystem',
}, },
{ {
name: 'control', name: 'control',
title: '排集水控制', title: '排集水控制',
icon: 'menu3.png', icon: 'menu3.png',
path: '/sub-operation-service/smartFarm/manageControl/drainageControl', path: '/sub-operation-service/smartFarm/drainageControl',
}, },
{ {
name: 'control', name: 'control',
title: '开窗卷帘', title: '开窗卷帘',
icon: 'menu3.png', icon: 'menu3.png',
path: '/sub-operation-service/smartFarm/manageControl/openCurtain', path: '/sub-operation-service/smartFarm/openCurtain',
}, },
], ],
}, },

View File

@ -39,8 +39,13 @@ const getDeviceSwitchStatus = (device) => {
}); });
}; };
const broadcast = ref([
'2025年01月01日10:10:10,排水泵P567789456发生异常关机,请检查设备情况!',
'2025年02月02日11:14:55,排水泵P567789478发生异常故障,请检查设备情况!',
]);
onMounted(() => { onMounted(() => {
// console.info('broadcastData', props.broadcastData); console.info('broadcastData', props.broadcastData);
}); });
</script> </script>
@ -50,8 +55,8 @@ onMounted(() => {
<div v-if="isShowBroadcast" class="broadcast-box"> <div v-if="isShowBroadcast" class="broadcast-box">
<img :src="getAssetsFile('images/smartFarm/broadcast.png')" alt="" /> <img :src="getAssetsFile('images/smartFarm/broadcast.png')" alt="" />
<div style="flex: 1"> <div style="flex: 1">
<el-carousel height="32px" direction="vertical" :autoplay="true"> <el-carousel height="32px" direction="vertical" motion-blur :autoplay="true">
<el-carousel-item v-for="(item, index) in broadcastData" :key="index" style="line-height: 36px; font-size: 16px"> <el-carousel-item v-for="(item, index) in broadcast" :key="index" style="line-height: 36px; font-size: 16px">
<div text="2xl" justify="center">{{ item }}</div> <div text="2xl" justify="center">{{ item }}</div>
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>

View File

@ -9,7 +9,8 @@
</template> </template>
<script setup> <script setup>
import { onMounted, ref } from 'vue'; import { ref } from 'vue';
import { getAssetsFile } from '@/utils';
import Common from '../components/common.vue'; import Common from '../components/common.vue';
import ControlDevices from '@/views/smartFarm/components/controlDevices.vue'; import ControlDevices from '@/views/smartFarm/components/controlDevices.vue';
@ -59,8 +60,8 @@ const devices = ref([
title: '电动闸门', title: '电动闸门',
devices: [ devices: [
{ {
name: 'A-005', name: 'A-001',
serial: 'YM20250101005', // serial: 'YM20250101001', //
icon: 'gate', // pump gate sensor icon: 'gate', // pump gate sensor
isOpen: 1, // 0: 1: isOpen: 1, // 0: 1:
isOperation: 0, // 0: 1: isOperation: 0, // 0: 1:
@ -68,8 +69,8 @@ const devices = ref([
id: 0, id: 0,
}, },
{ {
name: 'A-006', name: 'A-002',
serial: 'YM20250101006', serial: 'YM20250101002',
icon: 'gate', icon: 'gate',
isOpen: 0, isOpen: 0,
isOperation: 1, isOperation: 1,
@ -77,8 +78,8 @@ const devices = ref([
id: 1, id: 1,
}, },
{ {
name: 'A-007', name: 'A-003',
serial: 'YM20250101007', serial: 'YM20250101003',
icon: 'gate', icon: 'gate',
isOpen: 0, isOpen: 0,
isOperation: 0, isOperation: 0,
@ -86,8 +87,8 @@ const devices = ref([
id: 2, id: 2,
}, },
{ {
name: 'A-008', name: 'A-004',
serial: 'YM20250101008', serial: 'YM20250101004',
icon: 'gate', icon: 'gate',
isOpen: 1, isOpen: 1,
isOperation: 0, isOperation: 0,
@ -100,8 +101,8 @@ const devices = ref([
title: '水位传感器', title: '水位传感器',
devices: [ devices: [
{ {
name: 'A-009', name: 'A-001',
serial: 'YM20250101009', // serial: 'YM20250101001', //
icon: 'sensor', // pump gate sensor icon: 'sensor', // pump gate sensor
isOpen: 1, // 0: 1: isOpen: 1, // 0: 1:
isOperation: 0, // 0: 1: isOperation: 0, // 0: 1:
@ -109,8 +110,8 @@ const devices = ref([
id: 0, id: 0,
}, },
{ {
name: 'A-010', name: 'A-002',
serial: 'YM20250101010', serial: 'YM20250101002',
icon: 'sensor', icon: 'sensor',
isOpen: 0, isOpen: 0,
isOperation: 1, isOperation: 1,
@ -118,8 +119,8 @@ const devices = ref([
id: 1, id: 1,
}, },
{ {
name: 'A-011', name: 'A-003',
serial: 'YM20250101011', serial: 'YM20250101003',
icon: 'sensor', icon: 'sensor',
isOpen: 0, isOpen: 0,
isOperation: 0, isOperation: 0,
@ -127,8 +128,8 @@ const devices = ref([
id: 2, id: 2,
}, },
{ {
name: 'A-012', name: 'A-004',
serial: 'YM20250101012', serial: 'YM20250101004',
icon: 'sensor', icon: 'sensor',
isOpen: 1, isOpen: 1,
isOperation: 0, isOperation: 0,
@ -138,6 +139,72 @@ const devices = ref([
], ],
}, },
]); ]);
const tableData = ref([
{
name: '温度',
value: '>25',
device: '制冷机',
behavior: '开启',
time: 10,
},
{
name: '湿度',
value: '<24',
device: '喷洒机',
behavior: '关闭',
time: 15,
},
{
name: 'PH值',
value: '>8',
device: '配肥机',
behavior: '开启',
time: 5,
},
{
name: '风速',
value: '>中风',
device: '通风窗',
behavior: '关闭',
time: '/',
},
{
name: '光照',
value: '>强光',
device: '幕布',
behavior: '开启',
time: '/',
},
]);
const tableTitle = ref([
{
label: '参数名称',
prop: 'name',
width: 'auto',
},
{
label: '参数值',
prop: 'value',
width: 'auto',
},
{
label: '智能设备',
prop: 'device',
width: 'auto',
},
{
label: '机械行为',
prop: 'behavior',
width: 'auto',
},
{
label: '持续时间(min)',
prop: 'time',
width: 'auto',
},
]);
const broadcastData = ref([ const broadcastData = ref([
'2025年01月01日10:10:10,排水泵P567789456发生异常关机,请检查设备情况!', '2025年01月01日10:10:10,排水泵P567789456发生异常关机,请检查设备情况!',
'2025年02月02日11:14:55,排水泵P567789478发生异常故障,请检查设备情况!', '2025年02月02日11:14:55,排水泵P567789478发生异常故障,请检查设备情况!',

View File

@ -65,8 +65,8 @@ const devices = ref([
title: '电动闸门', title: '电动闸门',
devices: [ devices: [
{ {
name: 'A-005', name: 'A-001',
serial: 'YM20250101005', // serial: 'YM20250101001', //
icon: 'gate', // pump gate sensor icon: 'gate', // pump gate sensor
isOpen: 1, // 0: 1: isOpen: 1, // 0: 1:
isOperation: 0, // 0: 1: isOperation: 0, // 0: 1:
@ -74,8 +74,8 @@ const devices = ref([
id: 0, id: 0,
}, },
{ {
name: 'A-006', name: 'A-002',
serial: 'YM20250101006', serial: 'YM20250101002',
icon: 'gate', icon: 'gate',
isOpen: 0, isOpen: 0,
isOperation: 1, isOperation: 1,
@ -83,8 +83,8 @@ const devices = ref([
id: 1, id: 1,
}, },
{ {
name: 'A-007', name: 'A-003',
serial: 'YM20250101007', serial: 'YM20250101003',
icon: 'gate', icon: 'gate',
isOpen: 0, isOpen: 0,
isOperation: 0, isOperation: 0,
@ -92,8 +92,8 @@ const devices = ref([
id: 2, id: 2,
}, },
{ {
name: 'A-008', name: 'A-004',
serial: 'YM20250101008', serial: 'YM20250101004',
icon: 'gate', icon: 'gate',
isOpen: 1, isOpen: 1,
isOperation: 0, isOperation: 0,
@ -106,8 +106,8 @@ const devices = ref([
title: '水位传感器', title: '水位传感器',
devices: [ devices: [
{ {
name: 'A-009', name: 'A-001',
serial: 'YM20250101009', // serial: 'YM20250101001', //
icon: 'sensor', // pump gate sensor icon: 'sensor', // pump gate sensor
isOpen: 1, // 0: 1: isOpen: 1, // 0: 1:
isOperation: 0, // 0: 1: isOperation: 0, // 0: 1:
@ -115,8 +115,8 @@ const devices = ref([
id: 0, id: 0,
}, },
{ {
name: 'A-010', name: 'A-002',
serial: 'YM20250101010', serial: 'YM20250101002',
icon: 'sensor', icon: 'sensor',
isOpen: 0, isOpen: 0,
isOperation: 1, isOperation: 1,
@ -124,8 +124,8 @@ const devices = ref([
id: 1, id: 1,
}, },
{ {
name: 'A-011', name: 'A-003',
serial: 'YM20250101011', serial: 'YM20250101003',
icon: 'sensor', icon: 'sensor',
isOpen: 0, isOpen: 0,
isOperation: 0, isOperation: 0,
@ -133,8 +133,8 @@ const devices = ref([
id: 2, id: 2,
}, },
{ {
name: 'A-012', name: 'A-004',
serial: 'YM20250101012', serial: 'YM20250101004',
icon: 'sensor', icon: 'sensor',
isOpen: 1, isOpen: 1,
isOperation: 0, isOperation: 0,
@ -204,7 +204,7 @@ const tableTitle = ref([
<style lang="scss" scoped> <style lang="scss" scoped>
.my-table { .my-table {
&:deep(table) { &:deep(table) {
table-layout: fixed; // table-layout: fixed;
width: 100%; width: 100%;
} }
} }