diff --git a/main/src/micro/app.js b/main/src/micro/app.js
index 36f7b87..9e29066 100644
--- a/main/src/micro/app.js
+++ b/main/src/micro/app.js
@@ -61,7 +61,7 @@ export const rightApps = [
// entry: VITE_APP_SUB_GSS,
entry: VITE_APP_SUB_GSR,
// activeRule: '/sub-government-screen-service',
- activeRule: '/new-digital-agriculture-screen/v2/land',
+ activeRule: '/new-digital-agriculture-screen',
title: '数据大屏',
icon: 'images/platform/icon-screen.png',
},
diff --git a/main/src/views/index.vue b/main/src/views/index.vue
index 0a8688b..fd39627 100644
--- a/main/src/views/index.vue
+++ b/main/src/views/index.vue
@@ -35,9 +35,8 @@ import { leftApps, rightApps } from '@/micro/app';
import { getAssetsFile } from '@/utils';
const gotoPage = (row) => {
- console.log(row);
- console.log(window.history.pushState({}, row.name, row.activeRule));
- window.history.pushState({}, row.name, row.activeRule);
+ // window.history.pushState({}, row.name, row.activeRule);
+ window.location.href = row.activeRule;
};
diff --git a/sub-operation-service/src/views/smartFarm/components/common.vue b/sub-operation-service/src/views/smartFarm/components/common.vue
index 0e048ba..847afce 100644
--- a/sub-operation-service/src/views/smartFarm/components/common.vue
+++ b/sub-operation-service/src/views/smartFarm/components/common.vue
@@ -51,14 +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/manageControl/pestPrevention',
+ },
+ {
+ name: 'control',
+ title: '喷灌滴灌',
+ icon: 'menu3.png',
+ path: '/sub-operation-service/smartFarm/manageControl/irrigationSystem',
+ },
+ {
+ name: 'control',
+ title: '排集水控制',
+ icon: 'menu3.png',
+ path: '/sub-operation-service/smartFarm/manageControl/drainageControl',
+ },
+ {
+ name: 'control',
+ title: '开窗卷帘',
+ icon: 'menu3.png',
+ 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
new file mode 100644
index 0000000..ffb1771
--- /dev/null
+++ b/sub-operation-service/src/views/smartFarm/components/controlDevices.vue
@@ -0,0 +1,143 @@
+
+
+
+
+
+
+
![]()
+
+
+
+
{{ item.title }}
+
+
+
正常
+
离线
+
故障
+
+
+
{{ device.serial }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sub-operation-service/src/views/smartFarm/components/devices.vue b/sub-operation-service/src/views/smartFarm/components/devices.vue
index ea8ce7f..8fb46b6 100644
--- a/sub-operation-service/src/views/smartFarm/components/devices.vue
+++ b/sub-operation-service/src/views/smartFarm/components/devices.vue
@@ -5,6 +5,40 @@ import { useRoute, useRouter } from 'vue-router';
const route = useRoute();
const router = useRouter();
+// 图标icon对照表
+const icons = [
+ { 监控: 'camera' },
+ { 传感器: 'sensor' },
+ { 水质溶解氧: 'O2' },
+ { 温度: 'temp' },
+ { 酸碱度: 'ph' },
+ { 水质电导率: 'elect' },
+ { 浊度: 'dust' },
+ { 悬浮物: 'float' },
+ { 分光器: 'light' },
+ { 阀门: 'valve' },
+ { 喷头: 'sprinkler' },
+ { 计时器: 'timer' },
+ { 加热器: 'heater' },
+ { 搅拌机: 'mixer' },
+ { 热力: 'heat' },
+ { 液位传感器: 'liquidSensor' },
+ { 消毒灯: 'disinfectionLamp' },
+ { 温度传感器: 'tempSensor' },
+ { 智能阀控: 'intelligentValveControl' },
+ { 供水阀: 'waterSupplyValve' },
+ { 混合泵: 'mixingPump' },
+ { 混合罐: 'mixingTank' },
+ { 施肥: 'fertilization' },
+ { 肥料罐: 'fertilizerTank' },
+ { 电磁阀状态: 'solenoidValve' },
+ { 'PM2.5': 'PM2.5' },
+ { 风速仪: 'anemometer' },
+ { 雨量计: 'rainGauge' },
+ { 土壤传感器: 'soilSensor' },
+ { 积水传感器: 'waterLoggingSensor' },
+];
+
const props = defineProps({
devices: {
type: Array,
@@ -54,6 +88,27 @@ const props = defineProps({
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ item.name }}
diff --git a/sub-operation-service/src/views/smartFarm/components/leftMenu.vue b/sub-operation-service/src/views/smartFarm/components/leftMenu.vue
index 9207312..0f2dc5c 100644
--- a/sub-operation-service/src/views/smartFarm/components/leftMenu.vue
+++ b/sub-operation-service/src/views/smartFarm/components/leftMenu.vue
@@ -56,30 +56,42 @@ const leftMenu = reactive([
isOpen: true,
children: [
{
- name: 'supplier',
+ name: 'fieldInspection',
title: '田间监测',
icon: 'menu1.png',
path: '/sub-operation-service/smartFarm/fieldInspection',
},
{
- name: 'supplier',
+ name: 'waterInspection',
title: '水质监测',
icon: 'menu1.png',
path: '/sub-operation-service/smartFarm/waterInspection',
},
{
- name: 'supplier',
+ name: 'bugInspection',
title: '病虫害监测',
icon: 'menu1.png',
path: '/sub-operation-service/smartFarm/bugInspection',
},
+ {
+ name: 'envInspection',
+ title: '环境监测',
+ icon: 'menu1.png',
+ path: '/sub-operation-service/smartFarm/envInspection',
+ },
+ {
+ name: 'intelligentFertilizer',
+ title: '智能配肥',
+ icon: 'menu1.png',
+ path: '/sub-operation-service/smartFarm/intelligentFertilizer',
+ },
],
},
{
name: 'control',
title: '生产管理控制',
icon: 'menu3.png',
- path: '/sub-operation-service/smartFarm/main',
+ path: '',
isOpen: false,
children: [
{
@@ -88,6 +100,30 @@ const leftMenu = reactive([
icon: 'menu3.png',
path: '/sub-operation-service/smartFarm/growSeedlings',
},
+ {
+ name: 'control',
+ title: '病虫害预防',
+ icon: 'menu3.png',
+ path: '/sub-operation-service/smartFarm/pestPrevention',
+ },
+ {
+ name: 'control',
+ title: '喷灌滴灌',
+ icon: 'menu3.png',
+ path: '/sub-operation-service/smartFarm/irrigationSystem',
+ },
+ {
+ name: 'control',
+ title: '排集水控制',
+ icon: 'menu3.png',
+ path: '/sub-operation-service/smartFarm/drainageControl',
+ },
+ {
+ name: 'control',
+ title: '开窗卷帘',
+ icon: 'menu3.png',
+ path: '/sub-operation-service/smartFarm/openCurtain',
+ },
],
},
]);
diff --git a/sub-operation-service/src/views/smartFarm/components/myTable.vue b/sub-operation-service/src/views/smartFarm/components/myTable.vue
index 68c8f68..1c932d2 100644
--- a/sub-operation-service/src/views/smartFarm/components/myTable.vue
+++ b/sub-operation-service/src/views/smartFarm/components/myTable.vue
@@ -40,8 +40,8 @@ onMounted(() => {
- {{ cell }}
- {{ cell }}
+ {{ cell }}
+ {{ cell }}
{{ cell }}
|
diff --git a/sub-operation-service/src/views/smartFarm/components/produceDevices.vue b/sub-operation-service/src/views/smartFarm/components/produceDevices.vue
index fd2e168..cc46717 100644
--- a/sub-operation-service/src/views/smartFarm/components/produceDevices.vue
+++ b/sub-operation-service/src/views/smartFarm/components/produceDevices.vue
@@ -52,7 +52,7 @@ const props = defineProps({
-
{{ item.name }}
+
{{ item.name }}
{{ item.serial }}
diff --git a/sub-operation-service/src/views/smartFarm/components/sickData.vue b/sub-operation-service/src/views/smartFarm/components/sickData.vue
new file mode 100644
index 0000000..52830cb
--- /dev/null
+++ b/sub-operation-service/src/views/smartFarm/components/sickData.vue
@@ -0,0 +1,124 @@
+
+
+
+
+
diff --git a/sub-operation-service/src/views/smartFarm/inspection/bugInspection.vue b/sub-operation-service/src/views/smartFarm/inspection/bugInspection.vue
index 0a3d9bc..2ef8b5c 100644
--- a/sub-operation-service/src/views/smartFarm/inspection/bugInspection.vue
+++ b/sub-operation-service/src/views/smartFarm/inspection/bugInspection.vue
@@ -1,13 +1,7 @@
-
+
-
-
-
+
-
+
diff --git a/sub-operation-service/src/views/smartFarm/inspection/envInspection.vue b/sub-operation-service/src/views/smartFarm/inspection/envInspection.vue
new file mode 100644
index 0000000..1eb17dc
--- /dev/null
+++ b/sub-operation-service/src/views/smartFarm/inspection/envInspection.vue
@@ -0,0 +1,285 @@
+
+
+
+
+
+
+
+
+
+
+
+
实时环境监测
+
+ 当前设备
+
+
+
+
+
+
+
+
+
+
![]()
+
{{ item.title }}
+
+
+
+
+ 作物生长状态
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sub-operation-service/src/views/smartFarm/inspection/intelligentFertilizer.vue b/sub-operation-service/src/views/smartFarm/inspection/intelligentFertilizer.vue
new file mode 100644
index 0000000..d940b37
--- /dev/null
+++ b/sub-operation-service/src/views/smartFarm/inspection/intelligentFertilizer.vue
@@ -0,0 +1,161 @@
+
+
+
+
+
+
+
+
+
+
+ 配肥分析
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sub-operation-service/src/views/smartFarm/manageControl/drainageControl.vue b/sub-operation-service/src/views/smartFarm/manageControl/drainageControl.vue
new file mode 100644
index 0000000..271c9c6
--- /dev/null
+++ b/sub-operation-service/src/views/smartFarm/manageControl/drainageControl.vue
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+
diff --git a/sub-operation-service/src/views/smartFarm/growSeedlings/index.vue b/sub-operation-service/src/views/smartFarm/manageControl/growSeedlings.vue
similarity index 94%
rename from sub-operation-service/src/views/smartFarm/growSeedlings/index.vue
rename to sub-operation-service/src/views/smartFarm/manageControl/growSeedlings.vue
index 24cb0e8..c5f3b67 100644
--- a/sub-operation-service/src/views/smartFarm/growSeedlings/index.vue
+++ b/sub-operation-service/src/views/smartFarm/manageControl/growSeedlings.vue
@@ -188,17 +188,4 @@ const rightTableTitle = ref([
]);
-
+
diff --git a/sub-operation-service/src/views/smartFarm/manageControl/irrigationSystem.vue b/sub-operation-service/src/views/smartFarm/manageControl/irrigationSystem.vue
new file mode 100644
index 0000000..59fec92
--- /dev/null
+++ b/sub-operation-service/src/views/smartFarm/manageControl/irrigationSystem.vue
@@ -0,0 +1,191 @@
+
+
+
+
+
+
+
diff --git a/sub-operation-service/src/views/smartFarm/manageControl/openCurtain.vue b/sub-operation-service/src/views/smartFarm/manageControl/openCurtain.vue
new file mode 100644
index 0000000..d494fd0
--- /dev/null
+++ b/sub-operation-service/src/views/smartFarm/manageControl/openCurtain.vue
@@ -0,0 +1,211 @@
+
+
+
+
+
+
+
diff --git a/sub-operation-service/src/views/smartFarm/manageControl/pestPrevention.vue b/sub-operation-service/src/views/smartFarm/manageControl/pestPrevention.vue
new file mode 100644
index 0000000..8955f6c
--- /dev/null
+++ b/sub-operation-service/src/views/smartFarm/manageControl/pestPrevention.vue
@@ -0,0 +1,191 @@
+
+
+
+
+
+
+