Browse Source

bug 修复

lilei 4 years ago
parent
commit
855323ee7d
1 changed files with 4 additions and 11 deletions
  1. 4 11
      pages/spotCheckConfigure/evaluateStore.vue

+ 4 - 11
pages/spotCheckConfigure/evaluateStore.vue

@@ -32,9 +32,9 @@
 		},
 		onLoad(opts) {
 			this.value = opts.item&&JSON.parse(opts.item)||[]
+			console.log(this.value)
 			// 查询门店
 			findStoreList({}).then(res=>{
-				console.log(res.data)
 				if(res.status == 200){
 					this.list = res.data || []
 				}
@@ -44,16 +44,9 @@
 			// 选中门店,item 返回的是数组
 			chooseOk(item) {
 				console.log(item)
-				if(item.length==0){
-					uni.showToast({
-						icon:'none',
-						title:'请选择考评门店'
-					})
-				}else{
-					//关闭当前页面,这里处理数据逻辑
-					uni.$emit("selKpStores",item)
-					uni.navigateBack()
-				}
+				//关闭当前页面,这里处理数据逻辑
+				uni.$emit("selKpStores",item)
+				uni.navigateBack()
 			},
 		}
 	}