改动
This commit is contained in:
@@ -352,6 +352,12 @@ import ImportFile from '@/components/ImportFileData/index'
|
||||
},
|
||||
]
|
||||
}else{
|
||||
res.result.forEach(item =>{
|
||||
item.pzqk =Number(item.pzqk)
|
||||
})
|
||||
res.result.forEach(item =>{
|
||||
item.sfksj =Number(item.sfksj)
|
||||
})
|
||||
this.dataSource=res.result
|
||||
}
|
||||
}
|
||||
|
||||
+36
-2
@@ -281,6 +281,7 @@
|
||||
import { getAction, postAction, deleteAction,downloadFile } from '@/api/manage'
|
||||
import ImportFile from '@/components/ImportFileData/index'
|
||||
import uploadFile from '@/components/uploadFile/file'
|
||||
import { result } from 'lodash'
|
||||
|
||||
export default {
|
||||
name: 'upgradeRequirements',
|
||||
@@ -867,8 +868,41 @@ export default {
|
||||
downloadFile('ota/otaBaCxList/exportTemplate', '车型及功能备案' + '.zip', {})
|
||||
},
|
||||
getData(){
|
||||
getAction('/ota/otaBaCxJsfzbacs/queryByOtaId',{otaIdT:localStorage.getItem('otaIdT'),otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
if(res == 200 ) {}
|
||||
let otaIdT=localStorage.getItem('otaIdT')
|
||||
if(otaIdT==null){
|
||||
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升级功能模块'
|
||||
}
|
||||
]
|
||||
}else{
|
||||
res.result.kzq.forEach(item=>{
|
||||
item.pzqk=Number(item.pzqk)
|
||||
})
|
||||
this.dataSourceList=res.result.kzq
|
||||
}
|
||||
|
||||
|
||||
|
||||
this.dataSource.forEach(item=>{
|
||||
for(let key in res.result.bj){
|
||||
if(item.val==key){
|
||||
item.val=res.result.bj[key]
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
res.result.bj.forEach(item=>{
|
||||
item=Number(item)
|
||||
})
|
||||
this.query=res.result.bj
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user