ota跳转修改
This commit is contained in:
@@ -1834,4 +1834,5 @@ module.exports = {
|
|||||||
deliveryTime:'Delivery Time',
|
deliveryTime:'Delivery Time',
|
||||||
expectedDeliveryTime:'Expected Delivery Time',
|
expectedDeliveryTime:'Expected Delivery Time',
|
||||||
changeAuthor:'Change Author',
|
changeAuthor:'Change Author',
|
||||||
|
requireddataisnull:'Required data is null',
|
||||||
}
|
}
|
||||||
@@ -1935,4 +1935,5 @@ module.exports = {
|
|||||||
deliveryTime:'交付时间',
|
deliveryTime:'交付时间',
|
||||||
expectedDeliveryTime:'预计交付时间',
|
expectedDeliveryTime:'预计交付时间',
|
||||||
changeAuthor:'更改作者',
|
changeAuthor:'更改作者',
|
||||||
|
requireddataisnull:'必填数据为空',
|
||||||
}
|
}
|
||||||
+4
@@ -296,6 +296,10 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
// let otaflag = 3
|
||||||
|
this.$message.warning(this.$t('requireddataisnull'))
|
||||||
|
// localStorage.setItem('otaflag',otaflag)
|
||||||
}
|
}
|
||||||
// else {
|
// else {
|
||||||
// this.form.bapc = undefined
|
// this.form.bapc = undefined
|
||||||
|
|||||||
@@ -228,7 +228,16 @@ export default {
|
|||||||
} else if(this.oldName == this.$t('informationaboutotherupgradetasks')){
|
} else if(this.oldName == this.$t('informationaboutotherupgradetasks')){
|
||||||
this.$refs.otherRef.save()
|
this.$refs.otherRef.save()
|
||||||
}
|
}
|
||||||
|
setTimeout(()=>{
|
||||||
|
let otaflag = localStorage.getItem('otaflag')
|
||||||
|
if(otaflag){
|
||||||
|
console.log(otaflag)
|
||||||
|
this.tabActive = this.$t('upgradetargetmodel')
|
||||||
|
this.oldName = this.$t('upgradetargetmodel')
|
||||||
|
}
|
||||||
this.oldName = tab
|
this.oldName = tab
|
||||||
|
},1000)
|
||||||
|
localStorage.removeItem('otaflag')
|
||||||
},
|
},
|
||||||
handleToggleSearch() {
|
handleToggleSearch() {
|
||||||
this.toggleSearchStatus = !this.toggleSearchStatus
|
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||||
|
|||||||
@@ -412,8 +412,13 @@ import { message } from 'ant-design-vue'
|
|||||||
}else{
|
}else{
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
this.flag = 1
|
this.flag = 1
|
||||||
|
localStorage.setItem('otaflag',this.flag)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
// let otaflag = 3
|
||||||
|
this.$message.warning(this.$t('requireddataisnull'))
|
||||||
|
// localStorage.setItem('otaflag',otaflag)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -216,7 +216,9 @@ export default {
|
|||||||
tabClick(tab,event){
|
tabClick(tab,event){
|
||||||
this.tabActive=tab
|
this.tabActive=tab
|
||||||
if(this.oldName == this.$t('basicinformationofvehicletype')){
|
if(this.oldName == this.$t('basicinformationofvehicletype')){
|
||||||
|
|
||||||
this.$refs.dealtWithRef.save()
|
this.$refs.dealtWithRef.save()
|
||||||
|
|
||||||
} else if(this.oldName == this.$t('onlineupgraderequirements')){
|
} else if(this.oldName == this.$t('onlineupgraderequirements')){
|
||||||
this.$refs.doneListRef.save()
|
this.$refs.doneListRef.save()
|
||||||
} else if(this.oldName == this.$t('safetymeasure')){
|
} else if(this.oldName == this.$t('safetymeasure')){
|
||||||
@@ -230,7 +232,17 @@ export default {
|
|||||||
} else if(this.oldName == this.$t('other')){
|
} else if(this.oldName == this.$t('other')){
|
||||||
this.$refs.otherRef.save()
|
this.$refs.otherRef.save()
|
||||||
}
|
}
|
||||||
|
setTimeout(()=>{
|
||||||
|
let otaflag = localStorage.getItem('otaflag')
|
||||||
|
if(otaflag){
|
||||||
|
console.log(otaflag)
|
||||||
|
this.tabActive = this.$t('basicinformationofvehicletype')
|
||||||
|
this.oldName = this.$t('basicinformationofvehicletype')
|
||||||
|
}
|
||||||
this.oldName = tab
|
this.oldName = tab
|
||||||
|
},1000)
|
||||||
|
localStorage.removeItem('otaflag')
|
||||||
|
|
||||||
},
|
},
|
||||||
handleToggleSearch() {
|
handleToggleSearch() {
|
||||||
this.toggleSearchStatus = !this.toggleSearchStatus
|
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||||
|
|||||||
Reference in New Issue
Block a user