Bladeren bron

全部展开

liujun 2 jaren geleden
bovenliggende
commit
7322acaff6
1 gewijzigde bestanden met toevoegingen van 10 en 6 verwijderingen
  1. 10 6
      public/dzd/index.html

+ 10 - 6
public/dzd/index.html

@@ -280,7 +280,11 @@
 					}
 					axios.post(this.ajaxUrl + 'salesDetail/queryList', req_data).then((res) => {
 						this.saleDetailList = res.data.data;
-						this.saleList[i].isShow = !this.saleList[i].isShow ;
+						if(type==1){
+							this.saleList[i].isShow =!this.saleList[i].isShow;
+						}else{
+							this.saleList[i].isShow = true
+						}
 					}).catch((error) => {
 						console.log(error);
 					});
@@ -312,11 +316,11 @@
 					if (r != null) return unescape(r[2]);
 					return null; //返回参数值
 				},
-        openAll(){
-          this.saleList.forEach(item=>{
-            item.isShow = true;
-          })
-        }
+       openAll(){
+         this.saleList.forEach((item,i)=>{
+       	this.handleShow(item,i,0);
+         })
+       }
 			}
 		})
 	</script>