修改
This commit is contained in:
+14
-11
@@ -871,13 +871,12 @@ export default {
|
||||
otaIdT=''
|
||||
}
|
||||
getAction('/ota/otaBaCxJsfzbacs/queryByOtaId',{otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
if(res == 200 ) {
|
||||
if(res.code==200){
|
||||
if(res.result.kzq.length == 0){
|
||||
this.dataSourceList=[
|
||||
{
|
||||
bjmc:'车端OTA升级功能模块'
|
||||
}
|
||||
{
|
||||
bjmc:'车端OTA升级功能模块'
|
||||
}
|
||||
]
|
||||
}else{
|
||||
res.result.kzq.forEach(item=>{
|
||||
@@ -885,20 +884,24 @@ export default {
|
||||
})
|
||||
this.dataSourceList=res.result.kzq
|
||||
}
|
||||
|
||||
|
||||
|
||||
this.dataSource.forEach(item=>{
|
||||
for(let key in res.result.bj){
|
||||
if(item.val==key){
|
||||
if(Number(res.result.bj[key])!=NaN &&Number(res.result.bj[key])!=0){
|
||||
res.result.bj[key]=Number(res.result.bj[key])
|
||||
}
|
||||
if(item.key==key){
|
||||
item.val=res.result.bj[key]
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
res.result.bj.forEach(item=>{
|
||||
item=Number(item)
|
||||
})
|
||||
|
||||
|
||||
// res.result.bj.forEach(item=>{
|
||||
// if(Number(item) !=NaN){
|
||||
// item=Number(item)
|
||||
// }
|
||||
// })
|
||||
this.query=res.result.bj
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user