diff --git a/sub-operation-service/src/assets/images/smartFarm/demo-list.png b/sub-operation-service/src/assets/images/smartFarm/demo-list.png new file mode 100644 index 0000000..e478a7d Binary files /dev/null and b/sub-operation-service/src/assets/images/smartFarm/demo-list.png differ diff --git a/sub-operation-service/src/router/index.js b/sub-operation-service/src/router/index.js index 907f460..ab4ff1d 100644 --- a/sub-operation-service/src/router/index.js +++ b/sub-operation-service/src/router/index.js @@ -139,6 +139,18 @@ export const constantRoutes = [ name: 'intelligentFertilizer', meta: { title: '智能配肥' }, }, + { + path: '/sub-operation-service/smartFarm/IntelligentIrrigation', + component: () => import('@/views/smartFarm/inspection/IntelligentIrrigation.vue'), + name: 'IntelligentIrrigation', + meta: { title: '智能灌溉' }, + }, + { + path: '/sub-operation-service/smartFarm/IntelligentSeedSoaking', + component: () => import('@/views/smartFarm/inspection/IntelligentSeedSoaking.vue'), + name: 'IntelligentSeedSoaking', + meta: { title: '智能浸种' }, + }, { path: '/sub-operation-service/smartFarm/growSeedlings', component: () => import('@/views/smartFarm/manageControl/growSeedlings.vue'), diff --git a/sub-operation-service/src/views/smartFarm/components/dataDisplay.vue b/sub-operation-service/src/views/smartFarm/components/dataDisplay.vue new file mode 100644 index 0000000..792ae08 --- /dev/null +++ b/sub-operation-service/src/views/smartFarm/components/dataDisplay.vue @@ -0,0 +1,71 @@ + + + + + diff --git a/sub-operation-service/src/views/smartFarm/components/devices.vue b/sub-operation-service/src/views/smartFarm/components/devices.vue index 8fb46b6..1a4ca56 100644 --- a/sub-operation-service/src/views/smartFarm/components/devices.vue +++ b/sub-operation-service/src/views/smartFarm/components/devices.vue @@ -37,6 +37,8 @@ const icons = [ { 雨量计: 'rainGauge' }, { 土壤传感器: 'soilSensor' }, { 积水传感器: 'waterLoggingSensor' }, + { 土壤温度: 'temperature' }, + { 土壤湿度: 'humidity' }, ]; const props = defineProps({ @@ -44,19 +46,6 @@ const props = defineProps({ type: Array, required: true, default: () => [], - validator: (items) => { - return items.every((item) => { - return ( - typeof item === 'object' && - item !== null && - typeof item.id === 'number' && - typeof item.name === 'string' && - typeof item.detail === 'string' && - typeof item.icon === 'string' && - (!item.status || typeof item.status === 'number') - ); - }); - }, }, title: { type: String, @@ -72,8 +61,8 @@ const props = defineProps({