Browse Source

伍继站点管理新增和修改 电力监测已处理未处理 字段都加好了 已上传服务器

ming 3 years ago
parent
commit
a8b906d7be
3 changed files with 34 additions and 9 deletions
  1. 9 9
      pages/index/index.vue
  2. 18 0
      pages/processDetailEle/processDetailEle.vue
  3. 7 0
      pages/siteAdd/siteAdd.vue

+ 9 - 9
pages/index/index.vue

@@ -193,18 +193,18 @@
 
 		onLoad: function(option) {
 		
-		// 	if (option.op) {
-		// 		// alert('op')
-		// 		// alert(option.op)
-		// 		// 首页数据渲染
-		// 		this.getData();
+			if (option.op) {
+				// alert('op')
+				// alert(option.op)
+				// 首页数据渲染
+				this.getData();
 			
-		// 	} else {
-		// 		this.init()
-		// 	}
+			} else {
+				this.init()
+			}
 			
 			
-			this.getData();
+			// this.getData();
 
 			this.hackReset = false;
 			this.$nextTick(() => {

+ 18 - 0
pages/processDetailEle/processDetailEle.vue

@@ -61,6 +61,19 @@
 						<text>{{detailMessage.phone}}<i class="phone icon iconfont"
 								@click="submit()">&#xe61d;</i></text>
 					</view>
+					
+					<view>
+						<text>联系人2:</text>
+						<text>{{detailMessage.spare_user_name?detailMessage.spare_user_name:'暂无显示'}}</text>
+					</view>
+					<view>
+						<text style="width:100px">联系方式2:</text>
+						<text>{{detailMessage.spare_phone?detailMessage.spare_phone:'暂无显示'}}
+						<i v-if="detailMessage.spare_phone" class="phone icon iconfont"
+								@click="submit2()">&#xe61d;</i>
+						</text>
+					</view>
+					
 					<view>
 						<text>运行数据:</text>
 						<text class="checkMore" @tap="goOpeDataDetail(detailMessage)">点击查看</text>
@@ -237,6 +250,11 @@
 					phoneNumber: this.detailMessage.phone
 				});
 			},
+			submit2() {
+				uni.makePhoneCall({
+					phoneNumber: this.detailMessage.spare_phone
+				});
+			},
 
 			mapLocation() {
 				console.log(this.detailMessage)

+ 7 - 0
pages/siteAdd/siteAdd.vue

@@ -525,6 +525,13 @@
 					data: ming
 				})
 				this.siteMessage=res.data.data[0];
+				if(!this.siteMessage.spare_user_name){
+					this.siteMessage.spare_user_name='暂无显示'
+				}
+				if(!this.siteMessage.spare_phone){
+					this.siteMessage.spare_phone='暂无显示'
+				}
+				
 			},