Browse Source

关键字查询

zhengkaixin 1 year ago
parent
commit
c444491a60

+ 25 - 2
pages/deductionRecord/billingRules.vue

@@ -11,10 +11,18 @@
 			</view>
 		</view>
 		<!-- 标签弹出层 -->
-		<u-popup v-model="popShow"  length="80%" duration="10" mode="top" :negative-top="188" border-radius="32">
+		<u-popup v-model="popShow"  @close="keyword=''"   length="80%" duration="10" mode="top" :negative-top="188" border-radius="32">
 			<u-navbar title="计费规则"  title-color="#101010" >
 				
 			</u-navbar>
+			<view class="head-head">
+				<u-search placeholder="请输入关键字" :show-action="false"		 v-model="keyword"></u-search>
+				
+			</view>
+			<view class="head-head-placeholder ">
+				
+			</view>
+			
 			<view class="popup-tabs" v-if="false">
 				<view class="tabs1">
 					<!-- <u-tabs :list="tenantList1"   inactive-color="#777777" active-color="#333333	"
@@ -27,6 +35,8 @@
 			</view>
 			<view class="tabs-options">
 				<view class="item" v-for="(item, index) in tenantList"
+				v-show="keyword==''||(item.name&&item.name.indexOf(keyword)!=-1)"
+				
 				 :class="{
 				 	'item-index' : item.id==formData.tenantId
 				 }"
@@ -202,6 +212,7 @@
 				companyInfo:{},
 				tenantInfo:{},
 				queryBl:false,
+				keyword:'',
 				
 			}
 		},
@@ -467,5 +478,17 @@
 				font-weight: bold;
 		}
 	}
-	
+	.head-head{
+		background: #fff;
+		padding:24rpx;
+		position: fixed;
+		    left: 0;
+		    right: 0;
+		    top: 80rpx;
+		    z-index: 991;
+	}
+	.head-head-placeholder{
+		height: 112rpx;
+		
+	}
 </style>

+ 24 - 1
pages/deductionRecord/deductionRecord.vue

@@ -13,10 +13,17 @@
 			</view>
 		</view>
 		<!-- 标签弹出层 -->
-		<u-popup v-model="popShow"  length="80%"  duration="10" mode="top" :negative-top="188" border-radius="32">
+		<u-popup v-model="popShow" @close="keyword=''"  length="80%"  duration="10" mode="top" :negative-top="188" border-radius="32">
 			<u-navbar title="扣费记录"  title-color="#101010" >
 				
 			</u-navbar>
+			<view class="head-head">
+				<u-search placeholder="请输入关键字" :show-action="false"		 v-model="keyword"></u-search>
+				
+			</view>
+			<view class="head-head-placeholder ">
+				
+			</view>
 			<view class="popup-tabs" v-if="false">
 				<view class="tabs1">
 					<!-- <u-tabs :list="tenantList1"   inactive-color="#777777" active-color="#333333	"
@@ -29,6 +36,8 @@
 			</view>
 			<view class="tabs-options">
 				<view class="item" v-for="(item, index) in tenantList"
+				v-show="keyword==''||(item.name&&item.name.indexOf(keyword)!=-1)"
+				
 				 :class="{
 				 	'item-index' : item.id==formData.tenantId
 				 }"
@@ -168,6 +177,7 @@
 				},
 				
 				endYear:'',
+				keyword:"",
 				queryMonth:"",
 				params: {
 					year: true,
@@ -656,5 +666,18 @@
 				font-weight: bold;
 		}
 	}
+	.head-head{
+		background: #fff;
+		padding:24rpx;
+		position: fixed;
+		    left: 0;
+		    right: 0;
+		    top: 80rpx;
+		    z-index: 991;
+	}
+	.head-head-placeholder{
+		height: 112rpx;
+		
+	}
 	
 </style>

+ 29 - 2
pages/tenantList/contractList.vue

@@ -1,8 +1,20 @@
 <template>
 	<view>
 		<u-navbar title="租户余额管理" title-color="#101010"></u-navbar>
+		<view class="head-head">
+			<u-search placeholder="请输入关键字" :show-action="false"		 v-model="keyword"></u-search>
+			
+		</view>
+		<view class="head-head-placeholder ">
+			
+		</view>
+		
 		<view class="main">
-			<view class="tenant" v-for="(tenant,i) in tenantList" :key="i" >
+			
+			
+			<view class="tenant" v-for="(tenant,i) in tenantList"
+			 v-show="keyword==''||(tenant.name&&tenant.name.indexOf(keyword)!=-1)"
+			 :key="i" >
 				<view class="tenant-name">
 					{{tenant.name}}
 
@@ -86,6 +98,7 @@
 			return {
 				tenantList:[],
 				getTenantListReady:false,
+				keyword:""
 			}
 		},
 		onReady() {
@@ -276,6 +289,20 @@
 				}
 			}
 		}
-	
+		.head-head{
+			background: #fff;
+			padding:24rpx;
+			position: fixed;
+			    left: 0;
+			    right: 0;
+			    top: 80rpx;
+			    z-index: 991;
+		}
+		.head-head-placeholder{
+			height: 112rpx;
+			
+		}
+		
+		
 
 </style>

+ 25 - 1
pages/tenantList/remoteControl.vue

@@ -16,12 +16,20 @@
 		</view>
 	</view>
 	<!-- 标签弹出层 -->
-	<u-popup v-model="popShow"  length="80%"  duration="10" mode="top" :negative-top="188" border-radius="32">
+	<u-popup v-model="popShow"  length="80%"  @close="keyword=''"  duration="10" mode="top" :negative-top="188" border-radius="32">
 		<u-navbar title="远程控制"  title-color="#101010" >
 			<view class="u-nav-slot" slot="right" v-if="0" >
 				 操作日志
 			</view>
 		</u-navbar>
+		<view class="head-head">
+			<u-search placeholder="请输入关键字" :show-action="false"		 v-model="keyword"></u-search>
+			
+		</view>
+		<view class="head-head-placeholder ">
+			
+		</view>
+		
 		<view class="popup-tabs" v-if="false">
 			<view class="tabs1">
 				<!-- <u-tabs :list="tenantList1"   inactive-color="#777777" active-color="#333333	"
@@ -34,6 +42,8 @@
 		</view>
 		<view class="tabs-options">
 			<view class="item" v-for="(item, index) in tenantList"
+			v-show="keyword==''||(item.name&&item.name.indexOf(keyword)!=-1)"
+			
 			 :class="{
 			 	'item-index' : item.id==formData.tenantId
 			 }"
@@ -131,6 +141,7 @@
 				current2: 0,
 				role:false,
 				codes:"",
+					keyword:'',
 			}
 		},
 		onReady() {
@@ -399,4 +410,17 @@
 	   border:  1px solid #ff7b00;
 	    color: #ff7b00;
   }
+  .head-head{
+  	background: #fff;
+  	padding:24rpx;
+  	position: fixed;
+  	    left: 0;
+  	    right: 0;
+  	    top: 80rpx;
+  	    z-index: 991;
+  }
+  .head-head-placeholder{
+  	height: 112rpx;
+  	
+  }
 </style>

+ 26 - 1
pages/tenantList/tenantList.vue

@@ -1,8 +1,17 @@
 <template>
 	<view>
 		<u-navbar title="租户列表" title-color="#101010"></u-navbar>
+		<view class="head-head">
+			<u-search placeholder="请输入关键字" :show-action="false"		 v-model="keyword"></u-search>
+			
+		</view>
+		<view class="head-head-placeholder ">
+			
+		</view>
 		<view class="main">
-			<view class="tenant" v-for="(item,i) in tenantList" :key="i" 
+			<view class="tenant" v-for="(item,i) in tenantList"
+			  v-show="keyword==''||(item.name&&item.name.indexOf(keyword)!=-1)"
+			 :key="i" 
 			   @click="gotoUrl('/pages/deductionRecord/deductionRecord?id='+item.id)">
 				<view class="tenant-name">
 					{{item.name}}
@@ -26,6 +35,7 @@
 			return {
 				tenantList:[],
 				getTenantListReady:false,
+				keyword:""
 			}
 		},
 		onReady() {
@@ -69,5 +79,20 @@
 		}
 		
 	}
+	
+	.head-head{
+		background: #fff;
+		padding:24rpx;
+		position: fixed;
+		    left: 0;
+		    right: 0;
+		    top: 80rpx;
+		    z-index: 991;
+	}
+	.head-head-placeholder{
+		height: 112rpx;
+		
+	}
+	
 
 </style>