Selaa lähdekoodia

设备管理 设备详情

常志远 1 vuosi sitten
vanhempi
commit
efc9b9704c

+ 6 - 0
assets/img/energy1.svg

@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" width="24" height="24" style="" filter="none">
+    
+    <g>
+    <path d="M883.541333 106.666667c18.688 0 33.792 15.104 33.792 33.792v743.082666a33.792 33.792 0 0 1-33.792 33.792H140.458667a33.792 33.792 0 0 1-33.792-33.792V140.458667c0-18.688 15.104-33.792 33.792-33.792h743.082666z m-298.965333 327.424a11.52 11.52 0 0 0-15.914667 0.085333l-215.552 211.2a10.709333 10.709333 0 0 0-3.2 8.533333l-0.042666 0.853334a11.093333 11.093333 0 0 0 11.264 10.922666h113.664l-37.845334 153.6a10.666667 10.666667 0 0 0-0.298666 2.645334 10.666667 10.666667 0 0 0 2.773333 11.178666 11.434667 11.434667 0 0 0 15.914667-0.085333l215.552-211.2a10.666667 10.666667 0 0 0-2.901334-17.365333 11.434667 11.434667 0 0 0-6.997333-2.389334H550.826667l36.992-155.989333a10.581333 10.581333 0 0 0 0.042666-4.608 10.752 10.752 0 0 0-3.328-7.381333z m231.424-259.84H208c-17.109333 0-31.573333 12.8-33.536 29.781333l-0.256 3.968v135.125333c0 17.109333 12.8 31.530667 29.866667 33.536l3.925333 0.213334h608c17.109333 0 31.573333-12.8 33.536-29.824l0.256-3.925334V208a33.792 33.792 0 0 0-33.792-33.792zM512 207.957333c18.645333 0 33.792 15.104 33.792 33.792V309.333333a33.792 33.792 0 0 1-67.584 0V241.792c0-18.688 15.146667-33.792 33.792-33.792z m168.874667 0c18.688 0 33.792 15.104 33.792 33.792V309.333333a33.792 33.792 0 0 1-67.541334 0V241.792c0-18.688 15.104-33.792 33.749334-33.792z m-337.749334 0c18.645333 0 33.749333 15.104 33.749334 33.792V309.333333a33.792 33.792 0 1 1-67.541334 0V241.792c0-18.688 15.104-33.792 33.792-33.792z" fill="rgba(22,119,255,1)" p-id="4467" stroke="none"></path>
+    </g>
+  </svg>

+ 6 - 0
assets/img/riLine-qr-scan-2-line.svg

@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" width="20" height="20" style="" filter="none">
+    
+    <g>
+    <path d="M20 4h8v6.667h-2.667v-4h-5.333v-2.667zM12 4v2.667h-5.333v4h-2.667v-6.667h8zM20 28v-2.667h5.333v-4h2.667v6.667h-8zM12 28h-8v-6.667h2.667v4h5.333v2.667zM4 14.667h24v2.667h-24v-2.667z" fill="rgba(255,255,255,1)"></path>
+    </g>
+  </svg>

+ 6 - 0
assets/img/transformer2.svg

@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1024 1024" width="24" height="24" style="" filter="none">
+    
+    <g>
+    <path d="M672 128a32 32 0 0 1 32 32l-0.032 64H800a32 32 0 0 1 32 32v96h32a32 32 0 0 1 32 32v288a32 32 0 0 1-32 32h-32l1.504 96.224a32 32 0 0 1-31.52 32.48h-0.832L768 832.352a31.68 31.68 0 0 0-32 31.296V864a32 32 0 0 1-32 32h-64a32 32 0 0 1-32-32 31.808 31.808 0 0 0-31.808-31.808H576l-128.544 0.704a31.648 31.648 0 0 0-31.456 31.648c0 17.376-14.08 31.456-31.456 31.456H320a32 32 0 0 1-32-32 32 32 0 0 0-32-32H224a32 32 0 0 1-32-32v-96H160a32 32 0 0 1-32-32v-288a32 32 0 0 1 32-32h32V256a32 32 0 0 1 32-32h96V160a32 32 0 0 1 64 0v64h96V160a32 32 0 0 1 64 0v64h95.968L640 160a32 32 0 0 1 32-32z m-320 256a32 32 0 0 0-31.776 28.256L320 416v256a32 32 0 0 0 63.776 3.744L384 672v-256a32 32 0 0 0-32-32z m160 0a32 32 0 0 0-31.776 28.256L480 416v256a32 32 0 0 0 63.776 3.744L544 672v-256a32 32 0 0 0-32-32z m160 0a32 32 0 0 0-31.776 28.256L640 416v256a32 32 0 0 0 63.776 3.744L704 672v-256a32 32 0 0 0-32-32z" fill="rgba(129,97,255,1)" p-id="4305" stroke="none"></path>
+    </g>
+  </svg>

+ 16 - 0
pages.json

@@ -254,6 +254,22 @@
         		"navigationBarTitleText" : "",
         		"enablePullDownRefresh" : false
         	}
+        },
+        {
+        	"path" : "pages/equipmentInformation/equipmentInformation",
+        	"style" : 
+        	{
+        		"navigationBarTitleText" : "",
+        		"enablePullDownRefresh" : false
+        	}
+        },
+        {
+        	"path" : "pages/equipmentInformation/equipmentDetails",
+        	"style" : 
+        	{
+        		"navigationBarTitleText" : "",
+        		"enablePullDownRefresh" : false
+        	}
         }
        
     ],

+ 279 - 0
pages/equipmentInformation/equipmentDetails.vue

@@ -0,0 +1,279 @@
+<template>
+	<view>
+		<u-navbar title="设备详情" title-color="#101010">
+		</u-navbar>
+		<view class="background">
+
+			<view class="details">
+				<view class="headline">
+					战友农业站
+				</view>
+				<view class="infos">
+					<view class="infos-item">
+						<view class="item-title">
+							设备类型
+						</view>
+						<view class="item-value2">
+							智能费控电量计量仪
+						</view>
+					</view>
+					<view class="infos-item">
+						<view class="item-title">
+							设备编号
+						</view>
+						<view class="item-value">
+							JPDJ01-0002
+						</view>
+					</view>
+					<view class="infos-item">
+						<view class="item-title">
+							设备地址
+						</view>
+						<view class="item-value">
+							荆州区李埠镇网新村四组
+						</view>
+					</view>
+					<view class="infos-item">
+						<view class="item-title">
+							地址简称
+						</view>
+						<view class="item-value">
+							李埠网新村
+						</view>
+					</view>
+				</view>
+
+                <view class="infos">
+					<view class="infos-item">
+						<view class="item-title">
+							产权单位
+							
+							
+
+						</view>
+						<view class="item-value">
+							湖北荆鹏软件集团有限公司
+						</view>
+					</view>
+					<view class="infos-item">
+						<view class="item-title">
+							产权单位简称							
+						</view>
+						<view class="item-value">
+							荆鹏软件	
+						</view>
+					</view>
+					<view class="infos-item">
+						<view class="item-title">
+							产权单位联系人
+						</view>
+						<view class="item-value">
+							未填写
+						</view>
+					</view>
+					
+				</view>
+				
+				<view class="infos">
+					<view class="infos-item">
+						<view class="item-title">
+							使用单位
+							
+						</view>
+						<view class="item-value">
+							湖北荆鹏软件集团有限公司
+						</view>
+					</view>
+					<view class="infos-item">
+						<view class="item-title">
+							使用单位简称
+
+						</view>
+						<view class="item-value">
+							荆鹏软件	
+						</view>
+					</view>
+					<view class="infos-item">
+						<view class="item-title">
+								使用单位联系人
+						</view>
+						<view class="item-value">
+							未填写
+						</view>
+					</view>
+					
+				</view>
+				<view class="infos">
+					<view class="infos-item">
+						<view class="item-title">
+							启用时间
+						</view>
+						<view class="item-value">
+							2024年2月14日
+						</view>
+					</view>
+					<view class="infos-item">
+						<view class="item-title">
+							备注
+						</view>
+						<view class="item-value">	
+							自有
+						</view>
+					</view>
+					
+					
+				</view>
+			</view>
+
+		</view>
+     <!-- 确认弹窗 -->
+	 <view class="modal">
+	 	<u-modal v-model="bindShow" :show-title="false" :show-cancel-button="true"
+	 	 @confirm="submit"
+	 	 
+	 	 cancel-text="暂不绑定"
+	 		confirm-text="确认绑定">
+	 		<view class="headline">
+	 			请确认您要绑定的账户信息
+	 
+	 		</view>
+	 		<view class="infos">
+	 			<view class="item">
+	 				<view class="title">
+	 					用户名称			
+	 				</view>
+	 				<view class="value">
+	 					荆鹏软件园7楼租户A
+	
+	 				</view>
+	 			</view>
+	 			<view class="item">
+	 				<view class="title">
+	 					电表编号
+	 					
+	 					
+	 				</view>
+	 				<view class="value">
+	 					255181800122
+	 					
+	 				</view>
+	 			</view>
+	 			<view class="item">
+	 				<view class="title">
+	 					所在地址
+	 				</view>
+	 				<view class="value">
+	 					荆州市沙市区江津东路附155号荆鹏软件园A座701
+	 				</view>
+	 			</view>
+	 			
+	 		</view>
+	 		
+	 	</u-modal>
+	 </view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+     bindShow:true
+			}
+		},
+		methods: {
+
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.background {
+		height: 400rpx;
+		padding-top: 32rpx;
+		background: linear-gradient(180deg, rgba(203, 234, 255, 1) 0%, rgba(203, 234, 255, 0) 100%);
+
+		// 用电记录
+		.details {
+
+			background-color: #fff;
+			border-radius: 8px;
+			padding: 32rpx;
+			margin: 0rpx 32rpx;
+
+			.headline {
+				color: rgb(16, 16, 16);
+				font-size: 40rpx;
+				text-align: center;
+			}
+         .infos:last-of-type{
+			 border-bottom: none;
+		 }
+			.infos {
+				margin-top: 40rpx;
+				border-bottom: 1px solid rgba(241, 241, 241, 1);
+
+				.infos-item {
+					display: flex;
+					align-items: center;
+					justify-content: space-between;
+					margin-bottom: 24rpx;
+
+					.item-title {
+						color: rgba(51, 51, 51, 1);
+					}
+
+					.item-value {
+						color: rgba(16, 16, 16, 1);
+						
+					}
+					.item-value2{
+						color: #1677FF ;
+					}
+				}
+			}
+		}
+
+
+
+	}
+
+
+
+.modal {
+		.headline {
+			text-align: center;
+			background: linear-gradient(90deg, rgba(49, 110, 207, 1) 2%, rgba(20, 73, 159, 1) 100%);
+			color: #fff;
+			height: 144rpx;
+			line-height: 144rpx;
+			font-size: 36rpx;
+
+		}
+		.infos {
+			padding: 40rpx 48rpx 26rpx;
+		
+			.item {
+				display: flex;
+				justify-content: space-between;
+				margin-bottom: 24rpx;
+		
+				.title {
+					color: rgba(119, 119, 119, 1);
+					font-size: 32rpx;
+					width: 138rpx;
+				}
+		
+				.value {
+					color: #333333;
+					font-size: 32rpx;
+					
+					width: 388rpx;
+					margin-left: 16rpx;
+				}
+			}
+		
+		}
+		
+	}
+</style>

+ 179 - 0
pages/equipmentInformation/equipmentInformation.vue

@@ -0,0 +1,179 @@
+<template>
+	<view>
+		<u-navbar title="设备信息" title-color="#101010"></u-navbar>
+		<!-- 下拉框 -->
+		<view class="dropdown">
+			<view class="dropdown-item" @click="show1=true">
+				{{device}} <u-icon name="arrow-down" color="#999999" v-if="show1==false" ></u-icon>
+				<u-icon name="arrow-up" color="#999999" v-else></u-icon>
+			</view>
+			<view class="dropdown-item" @click="show2=true">
+				{{company}} <u-icon name="arrow-down" color="#999999" v-if="show2==false"></u-icon>
+			<u-icon name="arrow-up" color="#999999" v-else></u-icon>
+			</view>
+		</view>
+		
+		<u-select v-model="show1" mode="single-column" :list="deviceList" ></u-select>
+		
+		<u-select v-model="show2" mode="single-column" :list="companyList" ></u-select>
+	
+	   <!-- 设备信息 -->
+	   <view class="infos-content">
+		   <view class="item" >
+		   	   <view class="item-icon">
+		   	   	<image class="img" src="@/assets/img/energy1.svg" mode=""></image>
+		   	   </view>
+			   <view class="item-name">
+			   	<view class="name1">
+			   		楚之源费控电表
+			   	</view>
+				<view class="name2">
+					智能费控电量计量仪
+				</view>
+			   </view>
+			   <view class="more">
+			   	 <u-icon name="arrow-right" color="#acacac" size="28"></u-icon>
+			   </view>
+		   </view>
+	   	<view class="item" >
+	   		   <view class="item-icon">
+	   		   	<image class="img" src="@/assets/img/transformer2.svg" mode=""></image>
+	   		   </view>
+	   				   <view class="item-name">
+	   				   	<view class="name1">
+	   				   		鹏育优电专变
+	   				   	</view>
+	   					<view class="name2">
+	   						变压器智能监控及巡检仪
+	   					</view>
+	   				   </view>
+	   				   <view class="more">
+	   				   	 <u-icon name="arrow-right" color="#acacac" size="28"></u-icon>
+	   				   </view>
+	   	</view>
+	   </view>
+	   <!-- 底部 -->
+	   <view class="bottom">
+	   	   <button class="scan" >
+			   <image class="img" src="@/assets/img/riLine-qr-scan-2-line.svg" mode=""></image>
+			   扫码识别</button>
+	   </view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				  device: '全部设备',
+				  company: '全部公司',
+				  show1: false, // 设备选择
+				  show2: false, // 状态选择
+				  deviceList: [
+				  	{label: '全部设备', value: ''},
+				  	{label: '设备1', value: '0'},
+				  	{label: '设备2', value: '1'},
+				  	{label: '设备3', value: '2'},
+				  	{label: '设备4', value: '3'},
+				  	{label: '设备5', value: '4'}
+				  ],
+				  companyList: [
+				  	{label: '全部公司', value: ''},
+				  	{label: '公司1', value: '0'},
+				  	{label: '公司2', value: '1'},
+				  	{label: '公司3', value: '2'},
+				  	{label: '公司4', value: '3'},
+				  	{label: '公司5', value: '4'}
+				  ],
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	page{
+		padding-bottom: 100px;
+	}
+	// 下拉框
+	.dropdown {
+		background-color: #fff;
+		position: sticky;
+		top: 88rpx;
+		z-index: 999;
+		padding: 18rpx 46rpx;
+		display: flex;
+		border-bottom: 1px solid rgba(245, 245, 245, 1);
+		.dropdown-item{
+			width: 50%;
+			text-align: center;
+			height: 60rpx;
+			line-height: 60rpx;
+		}
+	}
+	// 设备信息
+	.infos-content{
+		background-color: #fff;
+		.item{
+			padding: 24rpx 32rpx;
+			display: flex;
+			align-items: center;
+			border-bottom: 1px solid rgba(245,245,245,1);
+			.item-icon{
+				width: 72rpx;
+				height: 72rpx;
+				border-radius: 4px;
+				background-color: rgba(219,234,255,1);
+				display: flex;
+				align-items: center;
+				justify-content: center;
+				.img{
+					width: 48rpx;
+					height: 48rpx;
+				}
+			}
+			.item-name{
+				margin-left: 30rpx;
+				name1{
+					color: rgba(51,51,51,1);
+					font-size: 32rpx;
+				}
+				.name2{
+					color: rgba(119,119,119,1);
+					
+				}
+			}
+			.more{
+				margin-left: auto;
+			}
+		}
+	}
+ 
+ 
+   // 底部
+   .bottom{
+	   background-color: rgba(255,255,255,1);
+	   border: 1px solid rgba(232,232,232,1);
+	   padding: 24rpx 32rpx;
+	   position: fixed;
+	   left: 0;
+	   right: 0;
+	   bottom: 0;
+	   .scan{
+		   color: rgba(255,255,255,1);
+		   font-size: 36rpx;
+		   display: flex;
+		   align-items: center;
+		   justify-content: center;
+		   border-radius: 50px;
+		   background: linear-gradient(-88.46deg, rgba(34,109,198,1) 2.59%,rgba(9,158,237,1) 97.02%);
+		   .img{
+			   width: 40rpx;
+			   height: 40rpx;
+			  margin-right: 8rpx;
+		   }
+	   }
+   }
+</style>