getData判断修改
This commit is contained in:
@@ -270,11 +270,14 @@
|
||||
})
|
||||
},
|
||||
getData(){
|
||||
|
||||
let otaIdT=localStorage.getItem('otaIdT')
|
||||
if(otaIdT==null){
|
||||
otaIdT=''
|
||||
}
|
||||
if(localStorage.getItem('otaId') == null){
|
||||
return
|
||||
}else{
|
||||
getAction('/ota/otaBaCxJbxx/queryByOtaId',{otaIdT:localStorage.getItem('otaIdT'),otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
getAction('/ota/otaBaCxJbxx/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
if(res.code == 200){
|
||||
this.form=res.result
|
||||
if(res.result.dllx1 == null ){
|
||||
|
||||
@@ -319,7 +319,11 @@ import ImportFile from '@/components/ImportFileData/index'
|
||||
})
|
||||
},
|
||||
getData(){
|
||||
getAction('/ota/otaBaCxKsjjsmccs/queryByOtaId',{otaIdT:localStorage.getItem('otaIdT'),otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
let otaIdT=localStorage.getItem('otaIdT')
|
||||
if(otaIdT==null){
|
||||
otaIdT=''
|
||||
}
|
||||
getAction('/ota/otaBaCxKsjjsmccs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
if(res.code==200){
|
||||
if(res.result.length==0){
|
||||
this.dataSource=[
|
||||
|
||||
@@ -51,7 +51,11 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getData(){
|
||||
getAction('/ota/otaBaCxQt/queryByOtaId',{otaIdT:localStorage.getItem('otaIdT'),otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
let otaIdT=localStorage.getItem('otaIdT')
|
||||
if(otaIdT==null){
|
||||
otaIdT=''
|
||||
}
|
||||
getAction('/ota/otaBaCxQt/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
console.log(res);
|
||||
})
|
||||
},
|
||||
|
||||
+5
-1
@@ -173,7 +173,11 @@ import ImportFile from '@/components/ImportFileData/index'
|
||||
downloadFile('ota/otaBaCxAqcs/exportTemplate', '车型及功能备案' + '.zip', {})
|
||||
},
|
||||
getData(){
|
||||
getAction('/ota/otaBaCxAqcs/queryByOtaId',{otaIdT:localStorage.getItem('otaIdT'),otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
let otaIdT=localStorage.getItem('otaIdT')
|
||||
if(otaIdT==null){
|
||||
otaIdT=''
|
||||
}
|
||||
getAction('/ota/otaBaCxAqcs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
if(res.code == 200){
|
||||
this.dataSource[0].info = Number(res.result.bhjz)
|
||||
this.dataSource[1].info =Number(res.result.fsxjz)
|
||||
|
||||
+5
-1
@@ -206,7 +206,11 @@ export default {
|
||||
},
|
||||
getData(){
|
||||
console.log(localStorage.getItem('otaId'));
|
||||
getAction('/ota/otaBaCxZxsjyq/queryByOtaId',{otaIdT:localStorage.getItem('otaIdT'),otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
let otaIdT=localStorage.getItem('otaIdT')
|
||||
if(otaIdT==null){
|
||||
otaIdT=''
|
||||
}
|
||||
getAction('/ota/otaBaCxZxsjyq/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
this.dataSource[0].relevantverification =Number(res.result.bhsjb)
|
||||
this.dataSource[1].relevantverification=Number(res.result.bhclbb)
|
||||
this.dataSource[2].relevantverification=Number(res.result.clgxnl)
|
||||
|
||||
@@ -298,7 +298,11 @@ import ImportFile from '@/components/ImportFileData/index'
|
||||
downloadFile('ota/otaBaCxKsjxtmccs/exportTemplate', '车型及功能备案' + '.zip', {})
|
||||
},
|
||||
getData(){
|
||||
getAction('/ota/otaBaCxKsjxtmccs/queryByOtaId',{otaIdT:localStorage.getItem('otaIdT'),otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
let otaIdT=localStorage.getItem('otaIdT')
|
||||
if(otaIdT==null){
|
||||
otaIdT=''
|
||||
}
|
||||
getAction('/ota/otaBaCxKsjxtmccs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
|
||||
if(res.code==200){
|
||||
if(res.result.length==0){
|
||||
this.dataSource= [
|
||||
|
||||
Reference in New Issue
Block a user