|
@@ -108,15 +108,38 @@
|
|
|
modelRemarkTab(num){
|
|
|
this.modelRemarkNum=num
|
|
|
if(num == 1){
|
|
|
- //var arr=[]
|
|
|
- /* this.oldMaintainPartList.forEach(item = >{
|
|
|
-
|
|
|
- }) */
|
|
|
- var name='0-10万公里'
|
|
|
- this.MaintainPartList= this.oldMaintainPartList.filter(item => item.modelRemark.includes(name))
|
|
|
+ var name='0-10万公里'
|
|
|
+ var arr=[]
|
|
|
+ this.oldMaintainPartList.forEach(item=>{
|
|
|
+ var state=false
|
|
|
+ item.ruleList.forEach(v=>{
|
|
|
+ if(v.version == name){
|
|
|
+ state=true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(state){
|
|
|
+ arr.push(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ this.MaintainPartList=arr
|
|
|
+ //this.MaintainPartList= this.oldMaintainPartList.filter(item => item.modelRemark.includes(name))
|
|
|
}else{
|
|
|
var name='10万公里以上'
|
|
|
- this.MaintainPartList= this.oldMaintainPartList.filter(item => item.modelRemark.includes(name))
|
|
|
+ var arr=[]
|
|
|
+ this.oldMaintainPartList.forEach(item=>{
|
|
|
+ var state=false
|
|
|
+ item.ruleList.forEach(v=>{
|
|
|
+ if(v.version == name){
|
|
|
+ state=true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(state){
|
|
|
+ arr.push(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.MaintainPartList=arr
|
|
|
+ //this.MaintainPartList= this.oldMaintainPartList.filter(item => item.modelRemark.includes(name))
|
|
|
}
|
|
|
},
|
|
|
queryMaintainPartList(){
|