ota跳转修改

This commit is contained in:
zyx.net
2023-05-17 09:29:06 +08:00
parent c090ce607d
commit e16f94cd39
6 changed files with 415 additions and 383 deletions
+1
View File
@@ -1834,4 +1834,5 @@ module.exports = {
deliveryTime:'Delivery Time',
expectedDeliveryTime:'Expected Delivery Time',
changeAuthor:'Change Author',
requireddataisnull:'Required data is null',
}
+1
View File
@@ -1935,4 +1935,5 @@ module.exports = {
deliveryTime:'交付时间',
expectedDeliveryTime:'预计交付时间',
changeAuthor:'更改作者',
requireddataisnull:'必填数据为空',
}
@@ -296,6 +296,10 @@ export default {
}
})
}else{
// let otaflag = 3
this.$message.warning(this.$t('requireddataisnull'))
// localStorage.setItem('otaflag',otaflag)
}
// else {
// this.form.bapc = undefined
@@ -228,7 +228,16 @@ export default {
} else if(this.oldName == this.$t('informationaboutotherupgradetasks')){
this.$refs.otherRef.save()
}
this.oldName = tab
setTimeout(()=>{
let otaflag = localStorage.getItem('otaflag')
if(otaflag){
console.log(otaflag)
this.tabActive = this.$t('upgradetargetmodel')
this.oldName = this.$t('upgradetargetmodel')
}
this.oldName = tab
},1000)
localStorage.removeItem('otaflag')
},
handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus
@@ -20,7 +20,7 @@
</div>
<a-form-model-item class="itemModel" prop="dutyTerritory">
<a-select :disabled="disabled" class="box-input" v-model="form.cxmb" allowClear :placeholder="$t('PleaseSelect')" @change="changeId">
<a-select :disabled="disabled" class="box-input" v-model="form.cxmb" allowClear :placeholder="$t('PleaseSelect')" @change="changeId">
<a-select-option v-for="(item , key ) in selectList" :key="key" :value="item.id" >
{{ item.value }}
</a-select-option>
@@ -33,15 +33,15 @@
<div class="title-text-add">
<span class="title-text-text" :title="$t('theNameOfFirm')">{{$t('theNameOfFirm')}}</span>
</div>
<a-form-model-item class="itemModel">
<a-form-model-item class="itemModel">
<a-input
:max-length="50"
class="box-input"
:placeholder="$t('pleaseEnter')"
:title='form.qymc'
disabled
v-model="form.qymc">
</a-input>
:max-length="50"
class="box-input"
:placeholder="$t('pleaseEnter')"
:title='form.qymc'
disabled
v-model="form.qymc">
</a-input>
</a-form-model-item>
</div>
</a-col>
@@ -51,15 +51,15 @@
<span class="Required">*</span>
<span class="title-text-text" :title="$t('registrationnumber')">{{$t('registrationnumber')}}</span>
</div>
<a-form-model-item class="itemModel" prop="djbh">
<a-form-model-item class="itemModel" prop="djbh">
<a-input
:max-length="50"
:disabled="disabled"
:title='form.djbh'
class="box-input"
:placeholder="$t('pleaseEnter')"
v-model.trim="form.djbh">
:max-length="50"
:disabled="disabled"
:title='form.djbh'
class="box-input"
:placeholder="$t('pleaseEnter')"
v-model.trim="form.djbh">
</a-input>
</a-form-model-item>
</div>
@@ -88,13 +88,13 @@
</div>
<a-form-model-item class="itemModel" prop="dutyTerritory">
<a-input
:max-length="500"
:disabled="disabled"
:title='form.ggpc'
class="box-input"
:placeholder="$t('pleaseEnter')"
v-model="form.ggpc">
</a-input>
:max-length="500"
:disabled="disabled"
:title='form.ggpc'
class="box-input"
:placeholder="$t('pleaseEnter')"
v-model="form.ggpc">
</a-input>
</a-form-model-item>
</div>
</a-col>
@@ -105,13 +105,13 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="50"
:disabled="disabled"
:title='form.cpsb'
class="box-input"
:placeholder="$t('pleaseEnter')"
v-model="form.cpsb">
</a-input>
:max-length="50"
:disabled="disabled"
:title='form.cpsb'
class="box-input"
:placeholder="$t('pleaseEnter')"
v-model="form.cpsb">
</a-input>
</a-form-model-item>
</div>
</a-col>
@@ -122,13 +122,13 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="50"
:disabled="disabled"
:title='form.cpmc'
class="box-input"
:placeholder="$t('pleaseEnter')"
v-model="form.cpmc">
</a-input>
:max-length="50"
:disabled="disabled"
:title='form.cpmc'
class="box-input"
:placeholder="$t('pleaseEnter')"
v-model="form.cpmc">
</a-input>
</a-form-model-item>
</div>
@@ -140,13 +140,13 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="50"
:disabled="disabled"
:title='form.cpxh'
class="box-input"
:placeholder="$t('pleaseEnter')"
v-model="form.cpxh">
</a-input>
:max-length="50"
:disabled="disabled"
:title='form.cpxh'
class="box-input"
:placeholder="$t('pleaseEnter')"
v-model="form.cpxh">
</a-input>
</a-form-model-item>
</div>
</a-col>
@@ -155,44 +155,44 @@
<div class="title-text-add">
<span class="title-text-text plus3" :title="$t('Vehicledynamictype')">{{$t('Vehicledynamictype')}}</span>
</div>
<a-form-model-item class="itemModel">
<a-form-model-item class="itemModel">
<div style="display:flex;flex-wrap: nowrap;width: 100%;">
<div style="width: 90%;margin-right: 20px;">
<!-- <a-select class="box-input" style="width: 100%;" v-model="form.dllx1" allowClear :disabled="disabled" :placeholder="$t('PleaseSelect')" @change="changeSelect($event,target)">-->
<!-- <a-select-option v-for="(item, key) in projectNameList1"-->
<!-- :key="key"-->
<!-- :value="item">-->
<!-- {{ item }}-->
<!-- </a-select-option>-->
<!-- </a-select>-->
<!-- <a-select class="box-input" style="width: 100%;" v-model="form.dllx1" allowClear :disabled="disabled" :placeholder="$t('PleaseSelect')" @change="changeSelect($event,target)">-->
<!-- <a-select-option v-for="(item, key) in projectNameList1"-->
<!-- :key="key"-->
<!-- :value="item">-->
<!-- {{ item }}-->
<!-- </a-select-option>-->
<!-- </a-select>-->
<j-dict-select-tag class="box-input"
:disabled="disabled"
:dictCode="'vehicle_dynamic_type'"
:placeholder="$t('PleaseSelect')"
:type="'select'"
@input="changeSelect(form.dllx1)"
:triggerChange="false"
v-model="form.dllx1"/>
</div>
<div style="width: 100%;">
<a-select v-model="form.dllx2" class="box-input" allowClear :disabled="disabled" :placeholder="$t('PleaseSelect')" @change="update">
<a-select-option v-for="(item, key) in projectNameList2"
:key="item.value"
:value="item.value">
{{ item.text }}
</a-select-option>
:disabled="disabled"
:dictCode="'vehicle_dynamic_type'"
:placeholder="$t('PleaseSelect')"
:type="'select'"
@input="changeSelect(form.dllx1)"
:triggerChange="false"
v-model="form.dllx1"/>
</div>
<div style="width: 100%;">
<a-select v-model="form.dllx2" class="box-input" allowClear :disabled="disabled" :placeholder="$t('PleaseSelect')" @change="update">
<a-select-option v-for="(item, key) in projectNameList2"
:key="item.value"
:value="item.value">
{{ item.text }}
</a-select-option>
</a-select>
<!-- <j-dict-select-tag class="box-input"-->
<!-- :disabled="disabled"-->
<!-- :dictCode="dictCodedllx"-->
<!-- :placeholder="$t('PleaseSelect')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false"-->
<!-- v-model="form.dllx2"/>-->
</a-select>
<!-- <j-dict-select-tag class="box-input"-->
<!-- :disabled="disabled"-->
<!-- :dictCode="dictCodedllx"-->
<!-- :placeholder="$t('PleaseSelect')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false"-->
<!-- v-model="form.dllx2"/>-->
</div>
</div>
</div>
</a-form-model-item>
</a-form-model-item>
</div>
</a-col>
<a-col :span="24">
@@ -202,12 +202,12 @@
</div>
<a-form-model-item class="itemModel">
<j-multi-select-tag class="box-input"
:disabled="disabled"
:dictCode="'communication_terminal'"
:placeholder="$t('PleaseSelect')"
:type="'select'"
:triggerChange="false"
v-model="form.txzd"/>
:disabled="disabled"
:dictCode="'communication_terminal'"
:placeholder="$t('PleaseSelect')"
:type="'select'"
:triggerChange="false"
v-model="form.txzd"/>
</a-form-model-item>
</div>
</a-col>
@@ -218,11 +218,11 @@
</div>
<a-form-model-item class="itemModel">
<a-textarea
:max-length="500"
:max-length="500"
:placeholder="$t('pleaseStateTheDistribution')"
:rows="4"
v-model="form.cdotasj"
/>
/>
</a-form-model-item>
</div>
</a-col>
@@ -237,318 +237,323 @@
</template>
<script>
import { getAction, postAction, deleteAction,downloadFile } from '@/api/manage'
import ImportFile from '@/components/ImportFileData/index'
import { getAction, postAction, deleteAction,downloadFile } from '@/api/manage'
import ImportFile from '@/components/ImportFileData/index'
import { message } from 'ant-design-vue'
export default {
name: 'basicInformation',
components:{
ImportFile
},
// props:['otaId'],
data() {
return {
confirmLoading: false,
disabled: false,
formInline:{},
projectNameList:[],
formRules:[],
flag:'',
dictCodedllx:'',
url: {
exportData: '/ota/otaBaCxJbxx/exportData',
importZipUrl: '/ota/otaBaCxJbxx/importData?otaId=' + localStorage.getItem('otaId'),//导入
},
form:{
cxmb:undefined,
txzd:'',
djbh:'',
qymc:'安徽江淮汽车集团股份有限公司',
cplb:undefined,
cpsb:'',
ggpc:'',
cpmc:'',
cpxh:'',
dllx1:undefined,
dllx2:undefined,
cdotasj:'',
},
projectNameList1:['传统动力汽车','节能汽车','新能源汽车','其他'],
projectNameList2:[],
selectList:[],
otaId:'',
rules:{
djbh:[
{
required: true,
message:this.$t('registrationnumber')+this.$t('cannotEmpty'),
trigger:'blur'
}
]
}
export default {
name: 'basicInformation',
components:{
ImportFile
},
// props:['otaId'],
data() {
return {
confirmLoading: false,
disabled: false,
formInline:{},
projectNameList:[],
formRules:[],
flag:'',
dictCodedllx:'',
url: {
exportData: '/ota/otaBaCxJbxx/exportData',
importZipUrl: '/ota/otaBaCxJbxx/importData?otaId=' + localStorage.getItem('otaId'),//导入
},
form:{
cxmb:undefined,
txzd:'',
djbh:'',
qymc:'安徽江淮汽车集团股份有限公司',
cplb:undefined,
cpsb:'',
ggpc:'',
cpmc:'',
cpxh:'',
dllx1:undefined,
dllx2:undefined,
cdotasj:'',
},
projectNameList1:['传统动力汽车','节能汽车','新能源汽车','其他'],
projectNameList2:[],
selectList:[],
otaId:'',
rules:{
djbh:[
{
required: true,
message:this.$t('registrationnumber')+this.$t('cannotEmpty'),
trigger:'blur'
}
]
}
},
mounted() {
this.$forceUpdate()
this.getSelect()
this.getData()
},
methods: {
changeId(value,option){
localStorage.removeItem('otaId')
localStorage.removeItem('otaIdT')
localStorage.setItem('otaIdT',value)
}
},
mounted() {
this.$forceUpdate()
this.getSelect()
this.getData()
},
methods: {
changeId(value,option){
localStorage.removeItem('otaId')
localStorage.removeItem('otaIdT')
localStorage.setItem('otaIdT',value)
this.getData('qiehuan')
},
// 模板下载
handleModule() {
downloadFile('ota/otaBaCxJbxx/exportTemplate', '车型基本信息' + '.zip', {})
},
getSelect(){
getAction('/ota/otaBaCxList/list').then(res=>{
if(res.code==200){
this.selectList=[]
res.result.forEach(item=>{
let obj={}
obj.id=item.id
if(item.cpmc==null){
item.cpmc=''
}
if(item.cpxh==null){
item.cpxh=''
}
obj.value=item.cpdjbh+'-'+item.ggpc+'-'+item.cpxh
this.selectList.push(obj)
})
}
})
},
getData(item){
let otaIdT=localStorage.getItem('otaIdT')
if(otaIdT==null){
otaIdT=''
this.getData('qiehuan')
},
// 模板下载
handleModule() {
downloadFile('ota/otaBaCxJbxx/exportTemplate', '车型基本信息' + '.zip', {})
},
getSelect(){
getAction('/ota/otaBaCxList/list').then(res=>{
if(res.code==200){
this.selectList=[]
res.result.forEach(item=>{
let obj={}
obj.id=item.id
if(item.cpmc==null){
item.cpmc=''
}
if(item.cpxh==null){
item.cpxh=''
}
obj.value=item.cpdjbh+'-'+item.ggpc+'-'+item.cpxh
this.selectList.push(obj)
})
}
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.qymc=res.result.qymc
this.form.djbh=res.result.djbh
this.form.cplb=res.result.cplb
this.form.ggpc=res.result.ggpc
this.form.cpsb=res.result.cpsb
this.form.cpmc=res.result.cpmc
this.form.cpxh=res.result.cpxh
this.form.txzd=res.result.txzd
this.form.txzd=res.result.txzd
this.form.cdotasj=res.result.cdotasj
this.form.id=res.result.id
if(this.$route.query.type == 1 && res.result.cxmb == null && !item){
this.form.cxmb = this.form.djbh+'-'+ this.form.ggpc+'-'+this.form.cpxh
}else {
})
},
getData(item){
let otaIdT=localStorage.getItem('otaIdT')
if(otaIdT==null){
otaIdT=''
}
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.qymc=res.result.qymc
this.form.djbh=res.result.djbh
this.form.cplb=res.result.cplb
this.form.ggpc=res.result.ggpc
this.form.cpsb=res.result.cpsb
this.form.cpmc=res.result.cpmc
this.form.cpxh=res.result.cpxh
this.form.txzd=res.result.txzd
this.form.txzd=res.result.txzd
this.form.cdotasj=res.result.cdotasj
this.form.id=res.result.id
if(this.$route.query.type == 1 && res.result.cxmb == null && !item){
this.form.cxmb = this.form.djbh+'-'+ this.form.ggpc+'-'+this.form.cpxh
}else {
if(this.$route.query.type == 2 && res.result.cxmb == null && !item){
// this.form.cxmb = res.result.cxmb ? res.result.cxmb : this.form.djbh+'-'+ this.form.ggpc+'-'+this.form.cpxh
this.form.cxmb = res.result.cxmb ? res.result.cxmb : undefined
}else{
this.form.cxmb = res.result.cxmb ? res.result.cxmb : this.form.djbh+'-'+ this.form.ggpc+'-'+this.form.cpxh
}
}
if(res.result.dllx1 == '' || res.result.dllx1 == null){
res.result.dllx1 = undefined
}
if(res.result.dllx2 == '' || res.result.dllx2 == null){
res.result.dllx2 = undefined
}
if(res.result.cplb == ''){
res.result.cplb = undefined
}
if(res.result.qymc == null){
res.result.qymc = '安徽江淮汽车集团股份有限公司'
}
this.form.dllx1=res.result.dllx1
this.form.dllx2=res.result.dllx2
this.form.cplb=res.result.cplb
this.getDllx2()
// this.changeSelect()
this.$forceUpdate()
}
})
},
next(){
this.$refs.ruleForm.validate(valid=>{
if(valid){
this.save()
setTimeout(()=>{
if(this.flag == 1){
return
}
this.$emit('basicInformationForm')
},1000)
}
})
if(res.result.dllx1 == '' || res.result.dllx1 == null){
res.result.dllx1 = undefined
}
if(res.result.dllx2 == '' || res.result.dllx2 == null){
res.result.dllx2 = undefined
}
},
save(){
this.$refs.ruleForm.validate(valid=>{
if(valid){
let otaId = localStorage.getItem('otaId')
if(otaId==null || otaId == undefined){
otaId=''
if(res.result.cplb == ''){
res.result.cplb = undefined
}
if(res.result.qymc == null){
res.result.qymc = '安徽江淮汽车集团股份有限公司'
}
this.form.dllx1=res.result.dllx1
this.form.dllx2=res.result.dllx2
this.form.cplb=res.result.cplb
this.getDllx2()
// this.changeSelect()
this.$forceUpdate()
}
})
},
next(){
this.$refs.ruleForm.validate(valid=>{
if(valid){
this.save()
setTimeout(()=>{
if(this.flag == 1){
return
}
postAction('/ota/otaBaCxJbxx/add',{ otaId:otaId,...this.form}).then( res => {
if(res.success){
this.flag = 2
localStorage.setItem('otaId', res.result.otaId)
this.$message.success(res.message)
this.getData()
}else{
this.$message.warning(res.message)
this.flag = 1
}
})
this.$emit('basicInformationForm')
},1000)
}
})
},
save(){
this.$refs.ruleForm.validate(valid=>{
if(valid){
let otaId = localStorage.getItem('otaId')
if(otaId==null || otaId == undefined){
otaId=''
}
})
},
changeSelect(target){
this.form.dllx2=undefined
let list = []
getAction('sys/dict/getDictItems/vehicle_dynamic_type1', { }).then((res) => {
if (res.success) {
res.result.forEach((item,index) => {
let w = item.value
let a = w.indexOf("-")
let l = w.substring(0,a)
if(target == l){
list.push(item)
}
})
this.projectNameList2 = list
}
})
},
getDllx2(){
let list = []
getAction('sys/dict/getDictItems/vehicle_dynamic_type1', { }).then((res) => {
if (res.success) {
res.result.forEach((item,index) => {
let w = item.value
let a = w.indexOf("-")
let l = w.substring(0,a)
if(this.form.dllx1==undefined){
this.projectNameList=[]
}
if(this.form.dllx1 == l){
list.push(item)
}
})
this.projectNameList2 = list
}
})
},
update(){
this.$forceUpdate()
}
postAction('/ota/otaBaCxJbxx/add',{ otaId:otaId,...this.form}).then( res => {
if(res.success){
this.flag = 2
localStorage.setItem('otaId', res.result.otaId)
this.$message.success(res.message)
this.getData()
}else{
this.$message.warning(res.message)
this.flag = 1
localStorage.setItem('otaflag',this.flag)
}
})
}else{
// let otaflag = 3
this.$message.warning(this.$t('requireddataisnull'))
// localStorage.setItem('otaflag',otaflag)
}
})
},
changeSelect(target){
this.form.dllx2=undefined
let list = []
getAction('sys/dict/getDictItems/vehicle_dynamic_type1', { }).then((res) => {
if (res.success) {
res.result.forEach((item,index) => {
let w = item.value
let a = w.indexOf("-")
let l = w.substring(0,a)
if(target == l){
list.push(item)
}
})
this.projectNameList2 = list
}
})
},
getDllx2(){
let list = []
getAction('sys/dict/getDictItems/vehicle_dynamic_type1', { }).then((res) => {
if (res.success) {
res.result.forEach((item,index) => {
let w = item.value
let a = w.indexOf("-")
let l = w.substring(0,a)
if(this.form.dllx1==undefined){
this.projectNameList=[]
}
if(this.form.dllx1 == l){
list.push(item)
}
})
this.projectNameList2 = list
}
})
},
update(){
this.$forceUpdate()
}
}
}
</script>
<style lang="less" scoped>
@import'~@assets/less/common.less';
.box {
padding: 0 24px 24px 24px;
box-sizing: border-box;
}
@import'~@assets/less/common.less';
.box {
padding: 0 24px 24px 24px;
box-sizing: border-box;
}
.box-title-text-add {
line-height: 1.4;
display: flex;
align-items: center;
}
.box-title-text-add {
line-height: 1.4;
display: flex;
align-items: center;
}
.title-text-add {
width: 114px;
text-align: right;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
// overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
height: 42px;
//line-height: 42px;
margin-top: 3px;
}
.title-text-add {
width: 114px;
text-align: right;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
// overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
height: 42px;
//line-height: 42px;
margin-top: 3px;
}
.title-text-add-input {
width: 80%;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 42px;
//line-height: 42px;
margin-top: 3px;
margin-bottom: 20px;
}
.title-text-add-input {
width: 80%;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 42px;
//line-height: 42px;
margin-top: 3px;
margin-bottom: 20px;
}
.title-text-text {
margin-top: 9px;
}
.title-text-text {
margin-top: 9px;
}
.itemModel {
width: calc(100% - 130px);
display: inline-block;
margin-top: 2px;
}
// .itemModel-input{
// width: calc(100% + 10px);
// display: inline-block;
// margin-top: 2px;
// }
.box-input {
display: inline-block;
width: 100%;
height: 38px;
margin-top: 2px;
}
.itemModel {
width: calc(100% - 130px);
display: inline-block;
margin-top: 2px;
}
// .itemModel-input{
// width: calc(100% + 10px);
// display: inline-block;
// margin-top: 2px;
// }
.box-input {
display: inline-block;
width: 100%;
height: 38px;
margin-top: 2px;
}
.formAdd {
margin: 0 auto;
width: 670px;
}
.formAdd {
margin: 0 auto;
width: 670px;
}
.bootom-button{
text-align: center!important;
}
// /deep/ .ant-input{
// width: calc(100%+20px);
// }
.Required {
.bootom-button{
text-align: center!important;
}
// /deep/ .ant-input{
// width: calc(100%+20px);
// }
.Required {
color: red;
margin-right: 3px;
}
.plus{
margin-top: 5px;
line-height: 1.2;
}
.plus2{
width: 134px;
margin-top: 5px;
line-height: 1.2;
}
.plus3{
word-break: break-word;
}
margin-top: 5px;
line-height: 1.2;
}
.plus2{
width: 134px;
margin-top: 5px;
line-height: 1.2;
}
.plus3{
word-break: break-word;
}
</style>
@@ -7,11 +7,11 @@
<a-icon type="form"/>
{{$t('fillintherecord')}}
</div>
<!-- <div @click="historicalrecordClick"-->
<!-- class="operator-text">-->
<!-- <a-icon type="copy"/>-->
<!-- {{$t('historicalrecord')}}-->
<!-- </div>-->
<!-- <div @click="historicalrecordClick"-->
<!-- class="operator-text">-->
<!-- <a-icon type="copy"/>-->
<!-- {{$t('historicalrecord')}}-->
<!-- </div>-->
</div>
<a-tabs class="tabs" v-model="tabActive" @change="callback" @tabClick="tabClick">
<a-tab-pane :key="$t('basicinformationofvehicletype')" :tab="$t('basicinformationofvehicletype')">
@@ -216,7 +216,9 @@ export default {
tabClick(tab,event){
this.tabActive=tab
if(this.oldName == this.$t('basicinformationofvehicletype')){
this.$refs.dealtWithRef.save()
} else if(this.oldName == this.$t('onlineupgraderequirements')){
this.$refs.doneListRef.save()
} else if(this.oldName == this.$t('safetymeasure')){
@@ -230,7 +232,17 @@ export default {
} else if(this.oldName == this.$t('other')){
this.$refs.otherRef.save()
}
this.oldName = tab
setTimeout(()=>{
let otaflag = localStorage.getItem('otaflag')
if(otaflag){
console.log(otaflag)
this.tabActive = this.$t('basicinformationofvehicletype')
this.oldName = this.$t('basicinformationofvehicletype')
}
this.oldName = tab
},1000)
localStorage.removeItem('otaflag')
},
handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus
@@ -286,44 +298,44 @@ export default {
},
basicInformationForm(){
this.tabActive = this.$t('onlineupgraderequirements')
},
upgradeRequirementsup(){
this.tabActive = this.$t('basicinformationofvehicletype')
},
upgradeRequirementsdown(){
this.tabActive = this.$t('safetymeasure')
},
safetyPrecautionsup(){
this.tabActive = this.$t('onlineupgraderequirements')
},
safetyPrecautionsdown(){
this.tabActive = this.$t('upgradedonline')
},
upgradedonlineup(){
this.tabActive = this.$t('safetymeasure')
},
upgradedonlinedown(){
this.tabActive = this.$t('beupgradedonline')
},
beupgradedonlineup(){
this.tabActive = this.$t('upgradedonline')
},
beupgradedonlinedown(){
this.tabActive = this.$t('recordparameters')
},
recordparametersup(){
this.tabActive = this.$t('beupgradedonline')
},
recordparametersdown(){
this.tabActive = this.$t('other')
},
otherup(){
this.tabActive = this.$t('recordparameters')