页面文件夹调整,路由调整
This commit is contained in:
		
							parent
							
								
									2e057d7014
								
							
						
					
					
						commit
						0e2a09d77b
					
				| @ -135,31 +135,31 @@ export const constantRoutes = [ | |||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         path: '/sub-operation-service/smartFarm/growSeedlings', |         path: '/sub-operation-service/smartFarm/growSeedlings', | ||||||
|         component: () => import('@/views/smartFarm/growSeedlings/index.vue'), |         component: () => import('@/views/smartFarm/manageControl/growSeedlings.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/pestPrevention/index.vue'), |         component: () => import('@/views/smartFarm/manageControl/pestPrevention.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/irrigationSystem/index.vue'), |         component: () => import('@/views/smartFarm/manageControl/irrigationSystem.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/drainageControl/index.vue'), |         component: () => import('@/views/smartFarm/manageControl/drainageControl.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/openCurtain/index.vue'), |         component: () => import('@/views/smartFarm/manageControl/openCurtain.vue'), | ||||||
|         name: 'openCurtain', |         name: 'openCurtain', | ||||||
|         meta: { title: '开窗卷帘' }, |         meta: { title: '开窗卷帘' }, | ||||||
|       }, |       }, | ||||||
|  | |||||||
| @ -51,38 +51,38 @@ const menus = reactive([ | |||||||
|     name: 'control', |     name: 'control', | ||||||
|     title: '生产管理控制', |     title: '生产管理控制', | ||||||
|     icon: 'menu3.png', |     icon: 'menu3.png', | ||||||
|     path: '/sub-operation-service/ecommerce-purchaser', |     path: '', | ||||||
|     isOpen: false, |     isOpen: false, | ||||||
|     children: [ |     children: [ | ||||||
|       { |       { | ||||||
|         name: 'control', |         name: 'control', | ||||||
|         title: '一体育苗', |         title: '一体育苗', | ||||||
|         icon: 'menu3.png', |         icon: 'menu3.png', | ||||||
|         path: '/sub-operation-service/smartFarm/growSeedlings', |         path: '/sub-operation-service/smartFarm/manageControl/growSeedlings', | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         name: 'control', |         name: 'control', | ||||||
|         title: '病虫害预防', |         title: '病虫害预防', | ||||||
|         icon: 'menu3.png', |         icon: 'menu3.png', | ||||||
|         path: '/sub-operation-service/smartFarm/pestPrevention', |         path: '/sub-operation-service/smartFarm/manageControl/pestPrevention', | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         name: 'control', |         name: 'control', | ||||||
|         title: '喷灌滴灌', |         title: '喷灌滴灌', | ||||||
|         icon: 'menu3.png', |         icon: 'menu3.png', | ||||||
|         path: '/sub-operation-service/smartFarm/irrigationSystem', |         path: '/sub-operation-service/smartFarm/manageControl/irrigationSystem', | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         name: 'control', |         name: 'control', | ||||||
|         title: '排集水控制', |         title: '排集水控制', | ||||||
|         icon: 'menu3.png', |         icon: 'menu3.png', | ||||||
|         path: '/sub-operation-service/smartFarm/drainageControl', |         path: '/sub-operation-service/smartFarm/manageControl/drainageControl', | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         name: 'control', |         name: 'control', | ||||||
|         title: '开窗卷帘', |         title: '开窗卷帘', | ||||||
|         icon: 'menu3.png', |         icon: 'menu3.png', | ||||||
|         path: '/sub-operation-service/smartFarm/openCurtain', |         path: '/sub-operation-service/smartFarm/manageControl/openCurtain', | ||||||
|       }, |       }, | ||||||
|     ], |     ], | ||||||
|   }, |   }, | ||||||
|  | |||||||
| @ -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(() => { | onMounted(() => { | ||||||
|   console.info('broadcastData', props.broadcastData); |   // console.info('broadcastData', props.broadcastData); | ||||||
| }); | }); | ||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| @ -55,8 +50,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" motion-blur :autoplay="true"> |           <el-carousel height="32px" direction="vertical" :autoplay="true"> | ||||||
|             <el-carousel-item v-for="(item, index) in broadcast" :key="index" style="line-height: 36px; font-size: 16px"> |             <el-carousel-item v-for="(item, index) in broadcastData" :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> | ||||||
|  | |||||||
| @ -9,8 +9,7 @@ | |||||||
| </template> | </template> | ||||||
| 
 | 
 | ||||||
| <script setup> | <script setup> | ||||||
| import { ref } from 'vue'; | import { onMounted, 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'; | ||||||
| 
 | 
 | ||||||
| @ -60,8 +59,8 @@ const devices = ref([ | |||||||
|     title: '电动闸门', |     title: '电动闸门', | ||||||
|     devices: [ |     devices: [ | ||||||
|       { |       { | ||||||
|         name: 'A-001', |         name: 'A-005', | ||||||
|         serial: 'YM20250101001', // 设备序列号 |         serial: 'YM20250101005', // 设备序列号 | ||||||
|         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:运作中 | ||||||
| @ -69,8 +68,8 @@ const devices = ref([ | |||||||
|         id: 0, |         id: 0, | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         name: 'A-002', |         name: 'A-006', | ||||||
|         serial: 'YM20250101002', |         serial: 'YM20250101006', | ||||||
|         icon: 'gate', |         icon: 'gate', | ||||||
|         isOpen: 0, |         isOpen: 0, | ||||||
|         isOperation: 1, |         isOperation: 1, | ||||||
| @ -78,8 +77,8 @@ const devices = ref([ | |||||||
|         id: 1, |         id: 1, | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         name: 'A-003', |         name: 'A-007', | ||||||
|         serial: 'YM20250101003', |         serial: 'YM20250101007', | ||||||
|         icon: 'gate', |         icon: 'gate', | ||||||
|         isOpen: 0, |         isOpen: 0, | ||||||
|         isOperation: 0, |         isOperation: 0, | ||||||
| @ -87,8 +86,8 @@ const devices = ref([ | |||||||
|         id: 2, |         id: 2, | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         name: 'A-004', |         name: 'A-008', | ||||||
|         serial: 'YM20250101004', |         serial: 'YM20250101008', | ||||||
|         icon: 'gate', |         icon: 'gate', | ||||||
|         isOpen: 1, |         isOpen: 1, | ||||||
|         isOperation: 0, |         isOperation: 0, | ||||||
| @ -101,8 +100,8 @@ const devices = ref([ | |||||||
|     title: '水位传感器', |     title: '水位传感器', | ||||||
|     devices: [ |     devices: [ | ||||||
|       { |       { | ||||||
|         name: 'A-001', |         name: 'A-009', | ||||||
|         serial: 'YM20250101001', // 设备序列号 |         serial: 'YM20250101009', // 设备序列号 | ||||||
|         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:运作中 | ||||||
| @ -110,8 +109,8 @@ const devices = ref([ | |||||||
|         id: 0, |         id: 0, | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         name: 'A-002', |         name: 'A-010', | ||||||
|         serial: 'YM20250101002', |         serial: 'YM20250101010', | ||||||
|         icon: 'sensor', |         icon: 'sensor', | ||||||
|         isOpen: 0, |         isOpen: 0, | ||||||
|         isOperation: 1, |         isOperation: 1, | ||||||
| @ -119,8 +118,8 @@ const devices = ref([ | |||||||
|         id: 1, |         id: 1, | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         name: 'A-003', |         name: 'A-011', | ||||||
|         serial: 'YM20250101003', |         serial: 'YM20250101011', | ||||||
|         icon: 'sensor', |         icon: 'sensor', | ||||||
|         isOpen: 0, |         isOpen: 0, | ||||||
|         isOperation: 0, |         isOperation: 0, | ||||||
| @ -128,8 +127,8 @@ const devices = ref([ | |||||||
|         id: 2, |         id: 2, | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         name: 'A-004', |         name: 'A-012', | ||||||
|         serial: 'YM20250101004', |         serial: 'YM20250101012', | ||||||
|         icon: 'sensor', |         icon: 'sensor', | ||||||
|         isOpen: 1, |         isOpen: 1, | ||||||
|         isOperation: 0, |         isOperation: 0, | ||||||
| @ -139,72 +138,6 @@ 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发生异常故障,请检查设备情况!', | ||||||
| @ -65,8 +65,8 @@ const devices = ref([ | |||||||
|     title: '电动闸门', |     title: '电动闸门', | ||||||
|     devices: [ |     devices: [ | ||||||
|       { |       { | ||||||
|         name: 'A-001', |         name: 'A-005', | ||||||
|         serial: 'YM20250101001', // 设备序列号 |         serial: 'YM20250101005', // 设备序列号 | ||||||
|         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-002', |         name: 'A-006', | ||||||
|         serial: 'YM20250101002', |         serial: 'YM20250101006', | ||||||
|         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-003', |         name: 'A-007', | ||||||
|         serial: 'YM20250101003', |         serial: 'YM20250101007', | ||||||
|         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-004', |         name: 'A-008', | ||||||
|         serial: 'YM20250101004', |         serial: 'YM20250101008', | ||||||
|         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-001', |         name: 'A-009', | ||||||
|         serial: 'YM20250101001', // 设备序列号 |         serial: 'YM20250101009', // 设备序列号 | ||||||
|         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-002', |         name: 'A-010', | ||||||
|         serial: 'YM20250101002', |         serial: 'YM20250101010', | ||||||
|         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-003', |         name: 'A-011', | ||||||
|         serial: 'YM20250101003', |         serial: 'YM20250101011', | ||||||
|         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-004', |         name: 'A-012', | ||||||
|         serial: 'YM20250101004', |         serial: 'YM20250101012', | ||||||
|         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%; | ||||||
|   } |   } | ||||||
| } | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 2090205686@qq.com
						2090205686@qq.com