Merge remote-tracking branch 'origin/dev_2nd_LCYH' into dev_2nd_LCYH

# Conflicts:
#	jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue
This commit is contained in:
zyx.net
2023-03-25 16:22:36 +08:00
51 changed files with 1846 additions and 320 deletions
@@ -20,14 +20,12 @@
<span class="title-text-text" :title="$t('selectTheVehicleTemplate')">{{$t('selectTheVehicleTemplate')}}</span>
</div>
<a-form-model-item class="itemModel" prop="dutyTerritory">
<j-dict-select-tag class="box-input"
:disabled="disabled"
:placeholder="$t('PleaseSelect')"
:type="'list'"
allowClear
:triggerChange="false"
v-model="form.cxmb"
/>
<a-select :disabled="disabled" class="box-input" v-model="form.cxmb" allowClear :triggerChange="false" :placeholder="$t('PleaseSelect')">
<a-select-option v-for="(item , key ) in selectList" :key="key" :value="item.id">
{{ item.ggpc }}
</a-select-option>
</a-select>
</a-form-model-item>
</div>
</a-col>
@@ -38,6 +36,7 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="500"
:disabled="disabled"
class="box-input"
:placeholder="$t('pleaseEnter')"
@@ -53,6 +52,7 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="500"
:disabled="disabled"
class="box-input"
:placeholder="$t('pleaseEnter')"
@@ -85,6 +85,7 @@
</div>
<a-form-model-item class="itemModel" prop="dutyTerritory">
<a-input
:max-length="500"
:disabled="disabled"
class="box-input"
:placeholder="$t('PleaseSelect')"
@@ -100,6 +101,7 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="500"
:disabled="disabled"
class="box-input"
:placeholder="$t('PleaseSelect')"
@@ -115,6 +117,7 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="500"
:disabled="disabled"
class="box-input"
:placeholder="$t('PleaseSelect')"
@@ -131,6 +134,7 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="500"
:disabled="disabled"
class="box-input"
:placeholder="$t('PleaseSelect')"
@@ -197,6 +201,7 @@
</div>
<a-form-model-item class="itemModel">
<a-textarea
:max-length="500"
:placeholder="$t('pleaseStateTheDistribution')"
:rows="4"
v-model="form.cdotasj"
@@ -221,6 +226,7 @@
name: 'basicInformation',
components:{
},
props:['otaId'],
data() {
return {
confirmLoading: false,
@@ -230,19 +236,51 @@
formRules:[],
form:{},
projectNameList1:['传统动力汽车','节能汽车','新能源汽车','其他'],
projectNameList2:[]
projectNameList2:[],
selectList:[],
otaId:''
}
},
mounted() {
this.$forceUpdate()
this.getSelect()
this.getData()
},
methods: {
getSelect(){
getAction('/ota/otaBaCxList/list').then(res=>{
if(res.code==200){
this.selectList=[]
res.result.forEach(item=>{
let obj={}
obj.id=item.id
obj.ggpc=item.ggpc
this.selectList.push(obj)
})
}
})
},
getData(){
// if(this.otaId && this.otaId !=''){
console.log('otaId',this.otaId);
getAction('/ota/otaBaCxJbxx/queryByOtaId',this.otaId).then(res=>{
if(res.code == 200){
}
})
// }
},
next(){
this.save()
this.$emit('basicInformationForm')
this.$emit('basicInformationForm',this.otaId)
},
save(){
postAction('/ota/otaBaCxJbxx/add',this.form).then( res => {
console.log(res);
postAction('/ota/otaBaCxJbxx/add',{otaId:this.otaId,...this.form}).then( res => {
if(res.code == 200){
this.otaId = res.result.otaId
}
})
},
changeSelect(target){
@@ -23,11 +23,11 @@
style="margin-bottom: 20px"
>
<span slot="functionname" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.gnmc"></a-input>
<a-input :placeholder="$t('ifNot')" v-model="record.gnmc" :max-length="500"></a-input>
</span>
<!-- 配置情况-->
<span slot="configuration" slot-scope="text,record" >
<a-radio-group v-model="record.pzqk">
<a-radio-group v-model="record.pzqk" >
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
@@ -50,35 +50,35 @@
</span>
<!-- 技术参数-->
<span slot="technicalparameters" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.sjggcs"></a-input>
<a-input :placeholder="$t('ifNot')" v-model="record.sjggcs" :max-length="500"></a-input>
</span>
<span slot="functiondescription" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.gnms"></a-input>
<a-input :placeholder="$t('ifNot')" v-model="record.gnms" :max-length="500"></a-input>
</span>
<span slot="applicationconditions" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.sytj"></a-input>
<a-input :placeholder="$t('ifNot')" v-model="record.sytj" :max-length="500"></a-input>
</span>
<span slot="functiondeelectronicscription" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.kzqmc"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.kzqmc" :max-length="500"></a-input>
</span>
<span slot="electroniccontrollerproductionenterprises" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.kzqscqy"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.kzqscqy" :max-length="500"> </a-input>
</span>
<span slot="electroniccontrollertypeone" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.kzqxh"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.kzqxh" :max-length="500"></a-input>
</span>
<span slot="hardwareversioninformation" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.yjbbxx"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.yjbbxx" :max-length="500"></a-input>
</span>
<span slot="softwaredevelopmententerprise" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.yjbbxx"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.yjbbxx" :max-length="500"></a-input>
</span>
<span slot="operatingsystemversion" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.rjkfqy"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.rjkfqy" :max-length="500"></a-input>
</span>
<span slot="inflammatorydata" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.czxtbbh"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.czxtbbh" :max-length="500"></a-input>
</span>
<!-- 操作列-->
<span slot="operation" slot-scope="text,record">
@@ -94,7 +94,7 @@
</div>
<div class="bootom-button">
<a-button style="margin-right:50px">{{$t('preservation')}}</a-button>
<a-button style="margin-right:50px" @click="save">{{$t('preservation')}}</a-button>
<a-button type="primary" style='width: 73px;margin-right: 50px' @click='last'>{{$t('last')}}</a-button>
<a-button type="primary" style='width: 73px' @click='next'>{{$t('next')}}</a-button>
</div>
@@ -111,11 +111,37 @@
components:{
uploadFile
},
props:['otaId'],
data() {
return {
dataSource: [
{
}
gnmc:'前向碰撞预警(FCW)'
},
{
gnmc:'车道偏离预警(LDW)'
},
{
gnmc:'百区监测(BSD)'
},
{
gnmc:'驻员疲劳篮澳CDFM)'
},
{
gnmc:'自动紧急制动(AEB)'
},
{
gnmc:'自适应巡航控制(ACC)'
},
{
gnmc:'自适应巡航控制(ACC)'
},
{
gnmc:'智能泊车辅助(IPA)'
},
{
gnmc:'交通拥堵辅助(TJA)'
},
],
loading: false,
disable:false,
@@ -253,6 +279,7 @@
},
mounted() {
// this.getList()
this.getData()
},
methods: {
getList() {
@@ -283,11 +310,26 @@
}
})
},
getData(){
if(this.otaId && this.otaId !=''){
getAction('/ota/otaBaCxKsjjsmccs/queryByOtaId',this.otaId).then(res=>{
console.log(res);
})
}
},
save(){
postAction('/ota/otaBaCxKsjjsmccs/add',{otaId:this.otaId,list:this.dataSource}).then(res =>{
console.log(res);
})
},
last(){
this.$emit('beupgradedonlineup')
this.save()
this.$emit('beupgradedonlineup',this.otaId)
},
next(){
this.$emit('beupgradedonlinedown')
this.save()
this.$emit('beupgradedonlinedown',this.otaId)
},
uploadSuccess(data) {
let attIdList = []
@@ -305,7 +347,7 @@
},
//中间加
addlineAtMid(record){
let obj = {}
let obj = {gnmc:record.gnmc}
this.dataSource.splice(this.dataSource.indexOf(record)+1,0,obj)
},
//最后一行加
@@ -1,17 +1,17 @@
<template>
<div class="box">
<a-spin :spinning="confirmLoading">
<a-form-model class="formAdd" ref="ruleForm">
<a-form-model class="formAdd" ref="ruleForm" :model="queryParam" :rules="rules">
<a-row :gutter="24">
<a-col :span="24">
<div class="box-title-text-add">
<div class="title-text-add">
<span class="title-text-text" :title="$t('upgradepacketprotectionmeasures')">{{$t('upgradepacketprotectionmeasures')}}</span>
</div>
<a-form-model-item class="itemModel" prop="dutyTerritory">
<a-form-model-item class="itemModel" prop="sjbbhcs" >
<a-textarea
:placeholder="$t('controlsystem')"
v-model.trim="queryParam.description" :rows="4"/>
v-model.trim="queryParam.sjbbhcs" :rows="4"/>
</a-form-model-item>
</div>
</a-col>
@@ -19,7 +19,7 @@
</a-form-model>
</a-spin>
<div class="bootom-button">
<a-button style="margin-right:50px">{{$t('preservation')}}</a-button>
<a-button style="margin-right:50px" @click="save">{{$t('preservation')}}</a-button>
<a-button type="primary" @click='last' style="margin-right:50px">{{$t('last')}}</a-button>
<a-button type="primary" @click='submit'>{{$t('submit')}}</a-button>
</div>
@@ -33,22 +33,48 @@ export default {
name: 'basicInformation',
components:{
},
props:['otaId'],
data() {
return {
confirmLoading: false,
disabled: false,
queryParam:{}
queryParam:{},
rules:{
sjbbhcs:[
{ max: 500,message:'最多只能添加500个字符',trigger:'blur'}
]
}
}
},
mounted() {
this.getData()
},
methods: {
getData(){
if(this.otaId && this.otaId !=''){
getAction('/ota/otaBaCxQt/queryByOtaId',this.otaId).then(res=>{
console.log(res);
})
}
},
save(){
this.$refs.ruleForm.validate( valid =>{
if (valid) {
postAction('/ota/otaBaCxQt/add',{otaId:this.otaId,...this.queryParam}).then(res=>{
console.log(res);
})
} else {
return false;
}
})
},
last(){
this.$emit('otherup')
this.save()
this.$emit('otherup',this.queryParam)
},
submit(){
this.save()
},
}
}
@@ -96,115 +96,115 @@
<div style='width: 300px'>
<span class='content-text' style='background: #f3f6f6;line-height: 50px;text-align: center;color: #191E29;font-weight: bold'>{{$t('fillincontent')}}</span>
<span class='radio-text'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.wlaqyqPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.hmbldPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.csbldPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.sxthsPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.sxtdsdPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.jsyjkPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.jsyhwPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text-two'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.czwxdwPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text-two'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.gxdhPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text-two'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.lsjPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text-two'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.gjddtPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text-three'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.dzwlPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text-four'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.cztxPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text-five'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.jsfzczjPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text-five'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.jsfzzsqPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text-five'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.fxptstsPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text-five'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.jsyzyltsPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text-two'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.dssadPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<span class='radio-text-two'>
<a-radio-group style='margin-left: 40px;'>
<a-radio-group style='margin-left: 40px;' v-model="query.edrPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
@@ -219,7 +219,7 @@
<div style='width: 700px'>
<span class='content-text' style='background: #f3f6f6;line-height: 50px;text-align: center;color: #191E29;font-weight: bold'>{{$t('fillincontent')}}</span>
<span v-for='(item,index) in dataSource' class='content-text'>
<a-input v-model="item.val" class="item-input" :placeholder="item.fillincontent"/>
<a-input v-model="item.val" class="item-input" :placeholder="item.fillincontent" :max-length="500"/>
</span><br>
</div>
</div>
@@ -235,40 +235,32 @@
style="margin-bottom: 20px"
>
<span slot="componentname" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.xtlb"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.bjmc" :max-length="500"></a-input>
</span>
<!-- 可升级-->
<span slot="systemclass" slot-scope="text,record">
<a-radio-group>
<span slot="systemclass" slot-scope="text,record" >
<a-radio-group v-model="record.pzqk">
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group>
</span>
<!-- 技术参数-->
<span slot="technicalparameters" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')"></a-input>
</span>
<!-- 上传附件-->
<span slot="architecturetopologydiagram" slot-scope="text,record">
<a-button @click="clickButtonToUpload" type="primary">{{$t('uploadattachment')}}</a-button>
</span>
<span slot="controllername" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.xtlb"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.kzqmc" :max-length="500"></a-input>
</span>
<span slot="hardwarespecificationmodel" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.xtlb"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.yjggxh" :max-length="500"></a-input>
</span>
<span slot="hardwaremanufacturer" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.xtlb"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.yjscqy" :max-length="500"></a-input>
</span>
<span slot="softwareversion" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.xtlb"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.rjbb" :max-length="500"></a-input>
</span>
<span slot="softwaredevelopmententerprise" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.xtlb"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.rjkfqy" :max-length="500"></a-input>
</span>
<span slot="layoutposition" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.xtlb"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.bzwz" :max-length="500"></a-input>
</span>
<!-- 操作列-->
<span slot="operation" slot-scope="text,record">
@@ -277,7 +269,7 @@
</span>
</a-table>
<div class="bootom-button">
<a-button class='btn'>{{$t('preservation')}}</a-button>
<a-button class='btn' @click="save">{{$t('preservation')}}</a-button>
<a-button type="primary" style='width: 73px;margin-right: 50px' @click='last'>{{$t('last')}}</a-button>
<a-button type="primary" style='width: 73px' @click='next'>{{$t('next')}}</a-button>
</div>
@@ -295,431 +287,482 @@ export default {
components:{
uploadFile
},
props:['otaId'],
data() {
return {
radioList:9,
dataSource: [
{
key: '1',
key: 'wlaqyqSl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '2',
key: 'wlaqyqBzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '3',
key: 'wlaqyqGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '4',
key: 'wlaqyqScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '5',
key: 'hmbldSl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '6',
key: 'hmbldBzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '7',
key: 'hmbldGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '8',
key: 'hmbldScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '9',
key: 'csbldSl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '10',
key: 'csbldBzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '11',
key: 'csbldGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '12',
key: 'csbldScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '13',
key: 'sxthsSl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '14',
key: 'sxthsBzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '15',
key: 'sxthsGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '16',
key: 'sxthsScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '17',
key: 'sxtdsdSl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '18',
key: 'sxtdsdBzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '19',
key: 'sxtdsdGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '20',
key: 'sxtdsdScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '21',
key: 'jsyjkSl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '22',
key: 'jsyjkBzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '23',
key: 'jsyjkGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '24',
key: 'jsyjkScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '25',
key: 'jsyhwSl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '26',
key: 'jsyhwBzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '27',
key: 'jsyhwGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '28',
key: 'jsyhwScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '29',
key: 'czwxdwGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '30',
key: 'czwxdwScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '31',
key: 'gxdhGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '32',
key: 'gxdhScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '33',
key: 'lsjGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '34',
key: 'lsjScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '35',
key: 'gjddtGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('VersionNumber'),
fillincontent:this.$t('yesisselected'),
},
{
key: '36',
key: 'gjddtScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '37',
key: 'dzwlDxxgcs',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('qualitativelydescriberelevantplaces'),
fillincontent:this.$t('yesisselected'),
},
{
key: '38',
key: 'cztxXtmc',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('systemname'),
fillincontent:this.$t('yesisselected'),
},
{
key: '39',
key: 'cztxGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('systemspecificationmodel'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '40',
key: 'cztxScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('systemproductionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '41',
key: 'cztxBbh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('softwareversionnumber'),
fillincontent:this.$t('yesisselected'),
},
{
key: '42',
key: 'cztxKfqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('softwaredevelopmententerprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '43',
key: 'jsfzczjMc',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('controlname'),
fillincontent:this.$t('yesisselected'),
},
{
key: '44',
key: 'jsfzczjYjxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('hardwarespecificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '45',
key: 'jsfzczjScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '46',
key: 'jsfzzsqMc',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('nameofindicatorsignaldevice'),
fillincontent:this.$t('yesisselected'),
},
{
key: '47',
key: 'jsfzzsqYjxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('hardwarespecificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '48',
key: 'jsfzzsqScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '49',
key: 'fxptstsMc',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('nameofindicatorsignaldevice'),
fillincontent:this.$t('yesisselected'),
},
{
key: '50',
key: 'fxptstsYjxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('hardwarespecificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '51',
key: 'fxptstsScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '52',
key: 'jsyzyltsMc',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('nameofindicatorsignaldevice'),
fillincontent:this.$t('yesisselected'),
},
{
key: '53',
key: 'jsyzyltsYjxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('hardwarespecificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '54',
key: 'jsyzyltsScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '55',
key: 'dssadGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '56',
key: 'dssadScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '57',
key: 'edrGgxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '58',
key: 'edrScqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
],
url: {
},
queryParam: {},
dataSourceList: [
{
bjmc:'车端OTA升级功能模块'
}
],
columns: [
@@ -806,12 +849,22 @@ export default {
],
selectedRowKeys: [],
fileList:{},
query:{}
}
},
mounted() {
// this.getList()
this.getData()
},
methods: {
getData(){
if(this.otaId && this.otaId !=''){
getAction('/ota/otaBaCxJsfzbacs/queryByOtaId',this.otaId).then(res=>{
console.log(res);
})
}
},
click(value){
this.fileList = value
console.log(this.fileList)
@@ -855,11 +908,31 @@ export default {
}
})
},
save(){
let arr =[]
this.dataSource.map(item=>{
let kval={}
kval.key=item.key
kval.val=item.val
arr.push(kval)
})
postAction('/ota/otaBaCxJsfzbacs/add',{
otaId:this.otaId,
bj:this.query,
cs:arr,
kzq:this.dataSourceList
}).then( res => {
console.log(res);
})
},
last(){
this.$emit('recordparametersup')
this.save()
this.$emit('recordparametersup',this.otaId)
},
next(){
this.$emit('recordparametersdown')
this.save()
this.$emit('recordparametersdown',this.otaId)
},
// 合并单元格
mergeCellsSlot(record, rowIndex) {
@@ -881,7 +954,7 @@ export default {
return obj;
},
addlineAtBot(){
let obj={}
let obj={bjmc:'车端OTA升级功能模块'}
this.dataSourceList.push(obj)
},
deleteData(record){
@@ -52,6 +52,7 @@
components:{
uploadFile
},
props:['otaId'],
data() {
return {
dataSource: [
@@ -162,8 +163,17 @@
},
mounted() {
this.getList()
this.getData()
},
methods: {
getData(){
if(this.otaId && this.otaId !=''){
getAction('/ota/otaBaCxAqcs/queryByOtaId',this.otaId).then(res=>{
console.log(res);
})
}
},
click(value){
this.fileList = value
console.log(this.fileList)
@@ -215,6 +225,7 @@
},
save(){
let obj={}
obj.otaId=this.otaId,
obj.bhjz = this.dataSource[0].info
obj.fsxjz= this.dataSource[1].info
obj.sjsbcs = this.dataSource[2].info
@@ -224,10 +235,10 @@
})
},
last(){
this.$emit('safetyPrecautionsup')
this.$emit('safetyPrecautionsup',this.otaId)
},
next(){
this.$emit('safetyPrecautionsdown')
this.$emit('safetyPrecautionsdown',this.otaId)
},
}
}
@@ -41,6 +41,7 @@ export default {
components: {
uploadFile
},
props:['otaId'],
data() {
return {
dataSource: [
@@ -193,8 +194,19 @@ export default {
},
mounted() {
// this.getList()
this.$forceUpdate()
this.getData()
},
methods: {
getData(){
// if(this.otaId && this.otaId !=''){
getAction('/ota/otaBaCxZxsjyq/queryByOtaId',this.otaId).then(res=>{
console.log(res);
})
// }
},
click(value) {
this.fileList = value
console.log(this.fileList)
@@ -240,6 +252,8 @@ export default {
},
save() {
let obj = {}
obj.otaId=this.otaId
console.log(this.otaId);
obj.bhsjb = this.dataSource[0].relevantverification
obj.bhclbb = this.dataSource[1].relevantverification
obj.clgxnl = this.dataSource[2].relevantverification
@@ -256,11 +270,11 @@ export default {
},
last() {
this.save()
this.$emit('upgradeRequirementsup')
this.$emit('upgradeRequirementsup',this.otaId)
},
next() {
this.save()
this.$emit('upgradeRequirementsdown')
this.$emit('upgradeRequirementsdown',this.otaId)
}
}
}
@@ -22,7 +22,7 @@
style="margin-bottom: 20px"
>
<span slot="sys" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.xtlb"></a-input>
<a-input :placeholder="$t('ifNot')" v-model="record.xtlb" :max-length="500"></a-input>
</span>
<!-- 可升级-->
<span slot="systemclass" slot-scope="text,record">
@@ -33,7 +33,7 @@
</span>
<!-- 技术参数-->
<span slot="technicalparameters" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.sjbgcs"></a-input>
<a-input :placeholder="$t('ifNot')" v-model="record.sjbgcs" :max-length="500"></a-input>
</span>
<!-- 上传附件-->
<span slot="architecturetopologydiagram" slot-scope="text,record">
@@ -44,37 +44,37 @@
</a-button>
</span>
<span slot="electronicController" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.kzqmc"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.kzqmc" :max-length="500"></a-input>
</span>
<span slot="electroniccontrollername" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.aqwzxdj"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.aqwzxdj" :max-length="500"></a-input>
</span>
<span slot="electroniccontrollerproductionenterprises" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.kzqscqy"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.kzqscqy" :max-length="500"></a-input>
</span>
<span slot="electroniccontrollertype" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.kzqxh"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.kzqxh" :max-length="500"></a-input>
</span>
<span slot="hardwareversioninformation" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.yjbbxx"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.yjbbxx" :max-length="500"></a-input>
</span>
<span slot="initialsoftwareversionnumber" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.csrjbbh"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.csrjbbh" :max-length="500"></a-input>
</span>
<span slot="initialpackageforintegrityinflammatorydata" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.csrjbwzsj"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.csrjbwzsj" :max-length="500"></a-input>
</span>
<span slot="environmentalprotection" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.sjsfyx"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.sjsfyx" :max-length="500"></a-input>
</span>
<span slot="operatingsystemtype" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.czxtlx"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.czxtlx" :max-length="500"></a-input>
</span>
<span slot="operatingsystemmanufacturer" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.czxtscqy"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.czxtscqy" :max-length="500"></a-input>
</span>
<span slot="operatingsystemversion" slot-scope="text,record">
<a-input :placeholder="$t('ifNot')" v-model="record.czxtbbh"></a-input>
<a-input :placeholder="$t('pleaseEnter')" v-model="record.czxtbbh" :max-length="500"></a-input>
</span>
<!-- 操作列-->
<span slot="operation" slot-scope="text,record" >
@@ -86,7 +86,7 @@
<div>
<a-button @click="clickButtonToUpload" type="primary">{{$t('uploadattachment')}}</a-button>
<p>注:附件包括测试项目清单、测试报告.测试标准或技术规范</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;支持doc/docx/pdf格式,大小50M以内</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;支持doc/docx/pdf格式,大小50M以内1</p>
</div>
<div class="bootom-button">
@@ -111,8 +111,23 @@
return {
dataSource: [
{
}
xtlb:'动力系统'
},
{
xtlb:'传动系统'
},
{
xtlb:'转向系统'
},
{
xtlb:'制动系统'
},
{
xtlb:'车身系统'
},
{
xtlb:'车载能源系统'
},
],
columns: [
{
@@ -258,8 +273,16 @@
},
mounted() {
// this.getList()
this.getData()
},
methods: {
getData(){
if(this.otaId && this.otaId !=''){
getAction('/ota/otaBaCxKsjxtmccs/queryByOtaId',this.otaId).then(res=>{
console.log(res);
})
}
},
getList() {
// let queryParam = JSON.parse(JSON.stringify(this.queryParam))
// Object.keys(queryParam).forEach(val => {
@@ -290,11 +313,11 @@
},
last(){
this.save()
this.$emit('upgradedonlineup')
this.$emit('upgradedonlineup',this.otaId)
},
next(){
this.save()
this.$emit('upgradedonlinedown')
this.$emit('upgradedonlinedown',this.otaId)
},
uploadSuccess(data) {
console.log(data)
@@ -325,7 +348,7 @@
},
//中间加
addlineAtMid(record){
let obj = {}
let obj = {xtlb:record.xtlb}
this.dataSource.splice(this.dataSource.indexOf(record)+1,0,obj)
},
//最后一行加
@@ -337,7 +360,7 @@
this.dataSource.splice(this.dataSource.indexOf(record),1)
},
save(){
postAction('/ota/otaBaCxKsjxtmccs/add',this.dataSource).then(res => {
postAction('/ota/otaBaCxKsjxtmccs/add',{otaId:this.otaId,list:this.dataSource}).then(res => {
console.log(res);
})
}
@@ -15,25 +15,25 @@
</div>
<a-tabs class="tabs" v-model="tabActive" @change="callback">
<a-tab-pane disabled :key="$t('basicinformationofvehicletype')" :tab="$t('basicinformationofvehicletype')">
<basicInformation v-if="tabActive == $t('basicinformationofvehicletype')" @basicInformationForm='basicInformationForm' ref="dealtWithRef"/>
<basicInformation v-if="tabActive == $t('basicinformationofvehicletype')" @basicInformationForm='basicInformationForm' ref="dealtWithRef" :otaId="this.otaId"/>
</a-tab-pane>
<a-tab-pane disabled :key="$t('onlineupgraderequirements')" :tab="$t('onlineupgraderequirements')">
<upgradeRequirements v-if="tabActive == $t('onlineupgraderequirements')" @upgradeRequirementsup='upgradeRequirementsup' @upgradeRequirementsdown='upgradeRequirementsdown' ref="doneListRef"/>
<upgradeRequirements v-if="tabActive == $t('onlineupgraderequirements')" @upgradeRequirementsup='upgradeRequirementsup' @upgradeRequirementsdown='upgradeRequirementsdown' ref="doneListRef" :otaId="this.otaId"/>
</a-tab-pane>
<a-tab-pane disabled :key="$t('safetymeasure')" :tab="$t('safetymeasure')">
<safetyPrecautions v-if="tabActive == $t('safetymeasure')" @safetyPrecautionsup='safetyPrecautionsup' @safetyPrecautionsdown='safetyPrecautionsdown' ref="SentListRef"/>
<safetyPrecautions v-if="tabActive == $t('safetymeasure')" @safetyPrecautionsup='safetyPrecautionsup' @safetyPrecautionsdown='safetyPrecautionsdown' ref="SentListRef" :otaId="this.otaId"/>
</a-tab-pane>
<a-tab-pane disabled :key="$t('upgradedonline')" :tab="$t('upgradedonline')">
<upgradedonline v-if="tabActive == $t('upgradedonline')" @upgradedonlineup='upgradedonlineup' @upgradedonlinedown='upgradedonlinedown' ref="upgradedonlineRef"/>
<upgradedonline v-if="tabActive == $t('upgradedonline')" @upgradedonlineup='upgradedonlineup' @upgradedonlinedown='upgradedonlinedown' ref="upgradedonlineRef" :otaId="this.otaId"/>
</a-tab-pane>
<a-tab-pane disabled :key="$t('beupgradedonline')" :tab="$t('beupgradedonline')">
<beupgradedonline v-if="tabActive == $t('beupgradedonline')" @beupgradedonlineup='beupgradedonlineup' @beupgradedonlinedown='beupgradedonlinedown' ref="beupgradedonlineRef"/>
<beupgradedonline v-if="tabActive == $t('beupgradedonline')" @beupgradedonlineup='beupgradedonlineup' @beupgradedonlinedown='beupgradedonlinedown' ref="beupgradedonlineRef" :otaId="this.otaId"/>
</a-tab-pane>
<a-tab-pane disabled :key="$t('recordparameters')" :tab="$t('recordparameters')">
<recordparameters v-if="tabActive == $t('recordparameters')" @recordparametersup='recordparametersup' @recordparametersdown='recordparametersdown' ref="recordparametersRef"/>
<recordparameters v-if="tabActive == $t('recordparameters')" @recordparametersup='recordparametersup' @recordparametersdown='recordparametersdown' ref="recordparametersRef" :otaId="this.otaId"/>
</a-tab-pane>
<a-tab-pane disabled :key="$t('other')" :tab="$t('other')">
<other v-if="tabActive == $t('other')" @otherup='otherup' ref="otherRef"/>
<other v-if="tabActive == $t('other')" @otherup='otherup' ref="otherRef" :otaId="this.otaId"/>
</a-tab-pane>
<a-tab-pane disabled :key="$t('historicalrecord')" :tab="$t('historicalrecord')">
<historicalrecord v-if="tabActive == $t('historicalrecord')" ref="historicalrecordRef" @historicalrecordup='historicalrecordup'/>
@@ -162,7 +162,8 @@ export default {
},
],
toggleSearchStatus: false,
tabActive: this.$t('basicinformationofvehicletype')
tabActive: this.$t('basicinformationofvehicletype'),
otaId:''
}
},
methods: {
@@ -214,38 +215,46 @@ export default {
historicalrecordClick(){
this.tabActive = this.$t('historicalrecord')
},
basicInformationForm(){
basicInformationForm(data){
this.tabActive = this.$t('onlineupgraderequirements')
this.otaId = data
},
upgradeRequirementsup(){
upgradeRequirementsup(data){
this.tabActive = this.$t('basicinformationofvehicletype')
this.otaId = data
},
upgradeRequirementsdown(){
this.tabActive = this.$t('safetymeasure')
},
safetyPrecautionsup(){
safetyPrecautionsup(data){
this.tabActive = this.$t('onlineupgraderequirements')
this.otaId = data
},
safetyPrecautionsdown(){
this.tabActive = this.$t('upgradedonline')
},
upgradedonlineup(){
upgradedonlineup(data){
this.tabActive = this.$t('safetymeasure')
this.otaId = data
},
upgradedonlinedown(){
upgradedonlinedown(data){
this.tabActive = this.$t('beupgradedonline')
this.otaId = data
},
beupgradedonlineup(){
beupgradedonlineup(data){
this.tabActive = this.$t('upgradedonline')
this.otaId = data
},
beupgradedonlinedown(){
beupgradedonlinedown(data){
this.tabActive = this.$t('recordparameters')
this.otaId = data
},
recordparametersup(){
this.tabActive = this.$t('beupgradedonline')
},
recordparametersdown(){
recordparametersdown(data){
this.tabActive = this.$t('other')
this.otaId = data
},
otherup(){
this.tabActive = this.$t('recordparameters')