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