引用备案

This commit is contained in:
yuekuo
2023-03-25 19:58:59 +08:00
parent 18f5163a61
commit 2d31a061df
3 changed files with 13 additions and 9 deletions
@@ -271,13 +271,15 @@
},
getData(){
let otaIdT=localStorage.getItem('otaIdT')
console.log('!!!',otaIdT);
if(otaIdT==null){
otaIdT=''
}
if(localStorage.getItem('otaId') == null){
return
}else{
getAction('/ota/otaBaCxJbxx/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{
let otaId=localStorage.getItem('otaId')
if(otaId==null){
otaId=''
}
getAction('/ota/otaBaCxJbxx/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{
if(res.code == 200){
this.form=res.result
if(res.result.dllx1 == null ){
@@ -290,7 +292,6 @@
}
})
}
},
next(){
@@ -222,7 +222,7 @@ import ImportFile from '@/components/ImportFileData/index'
pageSize: this.pageSize,
...queryParam
}
this.loading = true
// this.loading = true
getAction(this.url.list, query).then((res) => {
if (res.success) {
if (res.result.current > 1 && res.result.records.length == 0) {
@@ -363,13 +363,16 @@ export default {
if ( this.selectedRowKeys.length > 1){
this.$message.warning(this.$t('OnlyOneSelected'))
}else{
localStorage.removeItem('otaIdt')
localStorage.removeItem('otaIdT')
localStorage.removeItem('otaId')
localStorage.setItem('otaIdt',this.selectedRowKeys[0])
this.$router.push({
localStorage.setItem('otaIdT',this.selectedRowKeys[0])
if(localStorage.getItem('otaIdT')!=null){
this.$router.push({
path: '/vehicleinformation',
query: {}
})
}
}
}