瀏覽代碼

搜索提示修改

jwyu 3 年之前
父節點
當前提交
18c1fa2f6d
共有 4 個文件被更改,包括 28 次插入0 次删除
  1. 7 0
      pages-approve/seal/addSeal.vue
  2. 7 0
      pages-approve/seal/detail.vue
  3. 7 0
      pages-approve/seal/edit.vue
  4. 7 0
      pages-approve/search/index.vue

+ 7 - 0
pages-approve/seal/addSeal.vue

@@ -266,6 +266,13 @@
 			
 			//搜索客户
 			async onSearch(){
+				if(!this.searchCustomeVal){
+					uni.showToast({
+						title:'请输入搜索关键字',
+						icon:'none'
+					})
+					return
+				}
 				this.searchContractList=[]
 				this.searchCustomeList=[]
 				const res=await apiSearchCustome({Keyword:this.searchCustomeVal})

+ 7 - 0
pages-approve/seal/detail.vue

@@ -390,6 +390,13 @@
 			
 			//搜索客户
 			async onSearch(){
+				if(!this.searchCustomeVal){
+					uni.showToast({
+						title:'请输入搜索关键字',
+						icon:'none'
+					})
+					return
+				}
 				this.searchContractList=[]
 				this.searchCustomeList=[]
 				const res=await apiSearchCustome({Keyword:this.searchCustomeVal})

+ 7 - 0
pages-approve/seal/edit.vue

@@ -303,6 +303,13 @@
 			
 			//搜索客户
 			async onSearch(){
+				if(!this.searchCustomeVal){
+					uni.showToast({
+						title:'请输入搜索关键字',
+						icon:'none'
+					})
+					return
+				}
 				this.searchContractList=[]
 				this.searchCustomeList=[]
 				const res=await apiSearchCustome({Keyword:this.searchCustomeVal})

+ 7 - 0
pages-approve/search/index.vue

@@ -129,6 +129,13 @@
 			},
 
 			onSearch() {
+				if(!this.value){
+					uni.showToast({
+						title:'请输入搜索关键字',
+						icon:'none'
+					})
+					return
+				}
 				if (this.type === 'custome') {
 					this.handleCustome()
 				}