| 
					
				 | 
			
			
				@@ -5,8 +5,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<view class="cu-bar search bg-gray filter-section">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<view class="search-form round bg-white">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					<text class="cuIcon-search"></text>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					<input class=""  type="text" placeholder="请输入站点名称"
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					 confirm-type="search" v-model="siteName"></input>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					<input class="" type="text" placeholder="请输入站点名称" confirm-type="search" v-model="siteName"></input>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<view class="action">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					<button class="cu-btn bg-blue round" @click="searchSiteList">查询</button>
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -38,7 +37,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<view v-if="!siteList.length&&siteListRes==1" class="text-center margin-top"> 暂无数据</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<!-- 站点列表end -->
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<!-- 新增按钮start -->
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -49,7 +48,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<script src="https://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	export default {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		data() {
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -64,26 +63,26 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			};
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		onLoad: function(option) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		onLoad: function(option) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			//站点列表渲染
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			this.getSiteList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			this.getSiteList()
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		methods: {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			//筛选
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			searchSiteList() {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				this.getSiteList({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					"siteName": this.siteName
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				})
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//编辑 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			editItem(item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				uni.navigateTo({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					url: '/pages/siteAdd/siteAdd?id=' + item.id + '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			//编辑
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			editItem(item) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				uni.navigateTo({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					url: '/pages/siteAdd/siteAdd?id=' + item.id + '',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				});
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			//删除
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -101,38 +100,45 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					}.bind(this)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				});
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			// 打开导航 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// 打开导航
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			mapLocation(item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				uni.openLocation({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					latitude: parseFloat(item.latitude), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					longitude: parseFloat(item.longitude), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					success: function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						// console.log('success'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				//h5地图导航
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				window.location.href =  'http://apis.map.qq.com/uri/v1/marker?marker=coord:'+parseFloat(item.latitude)+','+parseFloat(item.longitude)+'' 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// uni.openLocation({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// 	latitude: parseFloat(item.latitude),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// 	longitude: parseFloat(item.longitude),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// 	success: function() {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// 		// console.log('success');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// 	}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// });
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			async setDelSite(ming = {}) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				const res = await this.$myRequest({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					url: 'SiteManagement/setDelSite',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					data: ming
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				})
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				if (!res.data.flag) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						title: "删除失败", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						icon: "none" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					uni.showToast({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						title: "删除失败",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						icon: "none"
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					});
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				} else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					uni.showToast({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						title: "删除成功",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					});
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					uni.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						title: "删除成功", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					setTimeout(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						this.getSiteList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					}, 1000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					setTimeout(() => {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						this.getSiteList()
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					}, 1000);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			async getSiteList(ming = {}) {
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -145,7 +151,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				this.siteList = res.data.data
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				console.log(res.data.data);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			// 新增跳转
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			goAddPage() {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				uni.navigateTo({
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -154,12 +160,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					fail: () => {},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					complete: () => {}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				});
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			//跳转到设备管理页面
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			goDeviceManage(item) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				uni.navigateTo({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					url: '/pages/deviceManage/deviceManage?siteId='+item.id+'',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					url: '/pages/deviceManage/deviceManage?siteId=' + item.id + '',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					success: res => {},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					fail: () => {},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					complete: () => {}
 
			 |