From 30743bd4e07ad7f349aa8872b32e015f3ffccf81 Mon Sep 17 00:00:00 2001 From: 13713575202 <1345916905@qq.com> Date: Wed, 21 May 2025 09:00:10 +0800 Subject: [PATCH 1/3] xiabin --- main/src/micro/app.js | 2 +- main/src/views/index.vue | 5 +- main/yarn.lock | 17620 +++++++--------- .../src/router/index.js | 66 +- .../src/assets/images/business/b1-1.png | Bin 0 -> 615307 bytes .../src/assets/images/business/b1-2.png | Bin 0 -> 41294 bytes .../src/assets/images/business/b2-1.png | Bin 0 -> 615260 bytes .../src/assets/images/business/b2-2.png | Bin 0 -> 43485 bytes .../src/assets/images/business/bg_title.png | Bin 0 -> 11766 bytes .../src/views/dashboard/index.vue | 3 + .../views/smartFarm/components/myTable.vue | 4 +- .../smartFarm/inspection/bugInspection.vue | 12 +- 12 files changed, 7320 insertions(+), 10392 deletions(-) create mode 100644 sub-operation-service/src/assets/images/business/b1-1.png create mode 100644 sub-operation-service/src/assets/images/business/b1-2.png create mode 100644 sub-operation-service/src/assets/images/business/b2-1.png create mode 100644 sub-operation-service/src/assets/images/business/b2-2.png create mode 100644 sub-operation-service/src/assets/images/business/bg_title.png 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; }; + From 7f86f02178b8daa0a711fd8b5edee6ed7b9565d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=BF=8A=E6=97=AD?= <398847134@qq.com> Date: Wed, 21 May 2025 10:14:25 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=99=BA=E8=83=BD=E9=85=8D=E8=82=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sub-operation-service/src/router/index.js | 8 +- .../views/smartFarm/components/devices.vue | 2 +- .../views/smartFarm/components/leftMenu.vue | 6 + .../inspection/intelligentFertilizer.vue | 161 ++++++++++++++++++ 4 files changed, 175 insertions(+), 2 deletions(-) create mode 100644 sub-operation-service/src/views/smartFarm/inspection/intelligentFertilizer.vue diff --git a/sub-operation-service/src/router/index.js b/sub-operation-service/src/router/index.js index 41f200f..3e1beb4 100644 --- a/sub-operation-service/src/router/index.js +++ b/sub-operation-service/src/router/index.js @@ -66,7 +66,7 @@ export const constantRoutes = [ name: 'userOrders', meta: { title: '我的订单' }, }, - { + { path: '/sub-operation-service/userLands', component: () => import('@/views/userCenter/userLands.vue'), name: 'userLands', @@ -133,6 +133,12 @@ export const constantRoutes = [ name: 'envInspection', meta: { title: '环境监测' }, }, + { + path: '/sub-operation-service/smartFarm/intelligentFertilizer', + component: () => import('@/views/smartFarm/inspection/intelligentFertilizer.vue'), + name: 'intelligentFertilizer', + meta: { title: '智能配肥' }, + }, { path: '/sub-operation-service/smartFarm/growSeedlings', component: () => import('@/views/smartFarm/growSeedlings/index.vue'), diff --git a/sub-operation-service/src/views/smartFarm/components/devices.vue b/sub-operation-service/src/views/smartFarm/components/devices.vue index 3780d79..8fb46b6 100644 --- a/sub-operation-service/src/views/smartFarm/components/devices.vue +++ b/sub-operation-service/src/views/smartFarm/components/devices.vue @@ -27,7 +27,7 @@ const icons = [ { 温度传感器: 'tempSensor' }, { 智能阀控: 'intelligentValveControl' }, { 供水阀: 'waterSupplyValve' }, - { 混合阀: 'mixingPump' }, + { 混合泵: 'mixingPump' }, { 混合罐: 'mixingTank' }, { 施肥: 'fertilization' }, { 肥料罐: 'fertilizerTank' }, diff --git a/sub-operation-service/src/views/smartFarm/components/leftMenu.vue b/sub-operation-service/src/views/smartFarm/components/leftMenu.vue index 6d12bb0..19ad8d8 100644 --- a/sub-operation-service/src/views/smartFarm/components/leftMenu.vue +++ b/sub-operation-service/src/views/smartFarm/components/leftMenu.vue @@ -79,6 +79,12 @@ const leftMenu = reactive([ icon: 'menu1.png', path: '/sub-operation-service/smartFarm/envInspection', }, + { + name: 'intelligentFertilizer', + title: '智能配肥', + icon: 'menu1.png', + path: '/sub-operation-service/smartFarm/intelligentFertilizer', + }, ], }, { 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 @@ + + + + + From 21661bf0c9735c69ff60864e6f372b21479ba82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=BF=8A=E6=97=AD?= <398847134@qq.com> Date: Wed, 21 May 2025 10:16:21 +0800 Subject: [PATCH 3/3] 1 --- .../auto-imports.d.ts | 75 ------------------- .../components.d.ts | 53 ------------- 2 files changed, 128 deletions(-) delete mode 100644 new-digital-agriculture-screen/auto-imports.d.ts delete mode 100644 new-digital-agriculture-screen/components.d.ts diff --git a/new-digital-agriculture-screen/auto-imports.d.ts b/new-digital-agriculture-screen/auto-imports.d.ts deleted file mode 100644 index 369aad4..0000000 --- a/new-digital-agriculture-screen/auto-imports.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// @ts-nocheck -// noinspection JSUnusedGlobalSymbols -// Generated by unplugin-auto-import -export {} -declare global { - const EffectScope: typeof import('vue')['EffectScope'] - const computed: typeof import('vue')['computed'] - const createApp: typeof import('vue')['createApp'] - const customRef: typeof import('vue')['customRef'] - const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] - const defineComponent: typeof import('vue')['defineComponent'] - const effectScope: typeof import('vue')['effectScope'] - const getCurrentInstance: typeof import('vue')['getCurrentInstance'] - const getCurrentScope: typeof import('vue')['getCurrentScope'] - const h: typeof import('vue')['h'] - const inject: typeof import('vue')['inject'] - const isProxy: typeof import('vue')['isProxy'] - const isReactive: typeof import('vue')['isReactive'] - const isReadonly: typeof import('vue')['isReadonly'] - const isRef: typeof import('vue')['isRef'] - const markRaw: typeof import('vue')['markRaw'] - const nextTick: typeof import('vue')['nextTick'] - const onActivated: typeof import('vue')['onActivated'] - const onBeforeMount: typeof import('vue')['onBeforeMount'] - const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave'] - const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate'] - const onBeforeUnmount: typeof import('vue')['onBeforeUnmount'] - const onBeforeUpdate: typeof import('vue')['onBeforeUpdate'] - const onDeactivated: typeof import('vue')['onDeactivated'] - const onErrorCaptured: typeof import('vue')['onErrorCaptured'] - const onMounted: typeof import('vue')['onMounted'] - const onRenderTracked: typeof import('vue')['onRenderTracked'] - const onRenderTriggered: typeof import('vue')['onRenderTriggered'] - const onScopeDispose: typeof import('vue')['onScopeDispose'] - const onServerPrefetch: typeof import('vue')['onServerPrefetch'] - const onUnmounted: typeof import('vue')['onUnmounted'] - const onUpdated: typeof import('vue')['onUpdated'] - const onWatcherCleanup: typeof import('vue')['onWatcherCleanup'] - const provide: typeof import('vue')['provide'] - const reactive: typeof import('vue')['reactive'] - const readonly: typeof import('vue')['readonly'] - const ref: typeof import('vue')['ref'] - const resolveComponent: typeof import('vue')['resolveComponent'] - const shallowReactive: typeof import('vue')['shallowReactive'] - const shallowReadonly: typeof import('vue')['shallowReadonly'] - const shallowRef: typeof import('vue')['shallowRef'] - const toRaw: typeof import('vue')['toRaw'] - const toRef: typeof import('vue')['toRef'] - const toRefs: typeof import('vue')['toRefs'] - const toValue: typeof import('vue')['toValue'] - const triggerRef: typeof import('vue')['triggerRef'] - const unref: typeof import('vue')['unref'] - const useAttrs: typeof import('vue')['useAttrs'] - const useCssModule: typeof import('vue')['useCssModule'] - const useCssVars: typeof import('vue')['useCssVars'] - const useId: typeof import('vue')['useId'] - const useLink: typeof import('vue-router')['useLink'] - const useModel: typeof import('vue')['useModel'] - const useRoute: typeof import('vue-router')['useRoute'] - const useRouter: typeof import('vue-router')['useRouter'] - const useSlots: typeof import('vue')['useSlots'] - const useTemplateRef: typeof import('vue')['useTemplateRef'] - const watch: typeof import('vue')['watch'] - const watchEffect: typeof import('vue')['watchEffect'] - const watchPostEffect: typeof import('vue')['watchPostEffect'] - const watchSyncEffect: typeof import('vue')['watchSyncEffect'] -} -// for type re-export -declare global { - // @ts-ignore - export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' - import('vue') -} diff --git a/new-digital-agriculture-screen/components.d.ts b/new-digital-agriculture-screen/components.d.ts deleted file mode 100644 index ca0fa36..0000000 --- a/new-digital-agriculture-screen/components.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// @ts-nocheck -// Generated by unplugin-vue-components -// Read more: https://github.com/vuejs/core/pull/3399 -export {} - -declare module 'vue' { - export interface GlobalComponents { - BaseBg: typeof import('./src/components/baseBg.vue')['default'] - CenterMap: typeof import('./src/components/centerMap.vue')['default'] - 'CenterMap copy': typeof import('./src/components/centerMap copy.vue')['default'] - CodeDialog: typeof import('./src/components/code-dialog/index.vue')['default'] - Components: typeof import('./src/components/index.js')['default'] - copy: typeof import('./src/components/centerMap copy.vue')['default'] - CurrentTime: typeof import('./src/components/currentTime.vue')['default'] - CustomBack: typeof import('./src/components/customBack.vue')['default'] - CustomCarouselPicture: typeof import('./src/components/custom-carousel-picture/index.vue')['default'] - CustomEchartBar: typeof import('./src/components/custom-echart-bar/index.vue')['default'] - CustomEchartBubble: typeof import('./src/components/custom-echart-bubble/index.vue')['default'] - CustomEchartColumnLine: typeof import('./src/components/custom-echart-column-line/index.vue')['default'] - CustomEchartHyalineCake: typeof import('./src/components/custom-echart-hyaline-cake/index.vue')['default'] - CustomEchartLine: typeof import('./src/components/custom-echart-line/index.vue')['default'] - CustomEchartLineLine: typeof import('./src/components/custom-echart-line-line/index.vue')['default'] - CustomEchartMaps: typeof import('./src/components/custom-echart-maps/index.vue')['default'] - CustomEchartMixin: typeof import('./src/components/custom-echart-mixin/index.vue')['default'] - CustomEchartPictorialBar: typeof import('./src/components/custom-echart-pictorial-bar/index.vue')['default'] - CustomEchartPie: typeof import('./src/components/custom-echart-pie/index.vue')['default'] - CustomEchartPie3d: typeof import('./src/components/custom-echart-pie-3d/index.vue')['default'] - CustomEchartPieGauge: typeof import('./src/components/custom-echart-pie-gauge/index.vue')['default'] - CustomEchartRadar: typeof import('./src/components/custom-echart-radar/index.vue')['default'] - CustomEchartScatterBlister: typeof import('./src/components/custom-echart-scatter-blister/index.vue')['default'] - CustomEchartTriangle: typeof import('./src/components/custom-echart-triangle/index.vue')['default'] - CustomEchartWaterDroplet: typeof import('./src/components/custom-echart-water-droplet/index.vue')['default'] - CustomEchartWordCloud: typeof import('./src/components/custom-echart-word-cloud/index.vue')['default'] - CustomIframe: typeof import('./src/components/custom-iframe/index.vue')['default'] - CustomImportExcel: typeof import('./src/components/custom-import-excel/index.vue')['default'] - CustomProgress: typeof import('./src/components/customProgress.vue')['default'] - CustomRankList: typeof import('./src/components/custom-rank-list/index.vue')['default'] - CustomRichEditor: typeof import('./src/components/custom-rich-editor/index.vue')['default'] - CustomScrollBoard: typeof import('./src/components/custom-scroll-board/index.vue')['default'] - CustomScrollTitle: typeof import('./src/components/custom-scroll-title/index.vue')['default'] - CustomTableOperate: typeof import('./src/components/custom-table-operate/index.vue')['default'] - CustomTableTree: typeof import('./src/components/custom-table-tree/index.vue')['default'] - NewHyalineCake: typeof import('./src/components/custom-echart-hyaline-cake/new-hyaline-cake.vue')['default'] - NewPie: typeof import('./src/components/custom-echart-hyaline-cake/new-pie.vue')['default'] - RouterLink: typeof import('vue-router')['RouterLink'] - RouterView: typeof import('vue-router')['RouterView'] - SubTop: typeof import('./src/components/subTop.vue')['default'] - SvgIcon: typeof import('./src/components/svg-icon/index.vue')['default'] - UpFile: typeof import('./src/components/custom-rich-editor/upFile.js')['default'] - } -}