接口对接

This commit is contained in:
yuekuo
2023-03-25 12:00:47 +08:00
parent 8f1c176659
commit 279ca78e2b
7 changed files with 305 additions and 156 deletions
@@ -20,14 +20,11 @@
<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" >
</a-select-option>
</a-select>
</a-form-model-item>
</div>
</a-col>
@@ -38,6 +35,7 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="500"
:disabled="disabled"
class="box-input"
:placeholder="$t('pleaseEnter')"
@@ -53,6 +51,7 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="500"
:disabled="disabled"
class="box-input"
:placeholder="$t('pleaseEnter')"
@@ -85,6 +84,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 +100,7 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="500"
:disabled="disabled"
class="box-input"
:placeholder="$t('PleaseSelect')"
@@ -115,6 +116,7 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="500"
:disabled="disabled"
class="box-input"
:placeholder="$t('PleaseSelect')"
@@ -131,6 +133,7 @@
</div>
<a-form-model-item class="itemModel">
<a-input
:max-length="500"
:disabled="disabled"
class="box-input"
:placeholder="$t('PleaseSelect')"
@@ -197,6 +200,7 @@
</div>
<a-form-model-item class="itemModel">
<a-textarea
:max-length="500"
:placeholder="$t('pleaseStateTheDistribution')"
:rows="4"
v-model="form.cdotasj"
@@ -230,18 +234,35 @@
formRules:[],
form:{},
projectNameList1:['传统动力汽车','节能汽车','新能源汽车','其他'],
projectNameList2:[]
projectNameList2:[],
selectList:[],
otaId:''
}
},
mounted() {
this.getSelect()
},
methods: {
getSelect(){
getAction('/ota/otaBaCxList/list').then(res=>{
if(res.code==200){
this.selectList=[]
let obj={}
res.result.map(item=>{
obj.id=item.id
obj.ggpc=item.ggpc
this.selectList.push(obj)
})
}
})
},
next(){
this.save()
this.$emit('basicInformationForm')
},
save(){
postAction('/ota/otaBaCxJbxx/add',this.form).then( res => {
postAction('/ota/otaBaCxJbxx/add',{otaId:this.otaId,...this.form}).then( res => {
console.log(res);
})
},
@@ -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>
@@ -115,7 +115,32 @@
return {
dataSource: [
{
}
gnmc:'前向碰撞预警(FCW)'
},
{
gnmc:'车道偏离预警(LDW)'
},
{
gnmc:'百区监测(BSD)'
},
{
gnmc:'驻员疲劳篮澳CDFM)'
},
{
gnmc:'自动紧急制动(AEB)'
},
{
gnmc:'自适应巡航控制(ACC)'
},
{
gnmc:'自适应巡航控制(ACC)'
},
{
gnmc:'智能泊车辅助(IPA)'
},
{
gnmc:'交通拥堵辅助(TJA)'
},
],
loading: false,
disable:false,
@@ -283,10 +308,17 @@
}
})
},
save(){
postAction('',{otaId:this.otaId,list:this.dataSource}).then(res =>{
console.log(res);
})
},
last(){
this.save()
this.$emit('beupgradedonlineup')
},
next(){
this.save()
this.$emit('beupgradedonlinedown')
},
uploadSuccess(data) {
@@ -305,7 +337,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>
@@ -37,18 +37,35 @@ export default {
return {
confirmLoading: false,
disabled: false,
queryParam:{}
queryParam:{},
rules:{
sjbbhcs:[
{ max: 500,message:'最多只能添加500个字符',trigger:'blur'}
]
}
}
},
mounted() {
},
methods: {
save(){
this.$refs.ruleForm.validate( valid =>{
if (valid) {
postAction('/ota/otaBaCxQt/add',this.queryParam).then(res=>{
console.log(res);
})
} else {
return false;
}
})
},
last(){
this.save()
this.$emit('otherup')
},
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>
@@ -300,426 +292,476 @@ export default {
radioList:9,
dataSource: [
{
key: '1',
key: 'wlaqyq_sl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '2',
key: 'wlaqyq_bzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '3',
key: 'wlaqyq_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '4',
key: 'wlaqyq_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '5',
key: 'hmbld_sl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '6',
key: 'hmbld_bzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '7',
key: 'hmbld_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '8',
key: 'hmbld_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '9',
key: 'csbld_sl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '10',
key: 'csbld_bzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '11',
key: '1csbld_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '12',
key: 'csbld_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '13',
key: 'sxths_sl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '14',
key: 'sxths_bzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '15',
key: 'sxths_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '16',
key: 'sxths_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '17',
key: 'sxtdsd_sl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '18',
key: 'sxtdsd_bzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '19',
key: 'sxtdsd_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '20',
key: 'sxtdsd_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '21',
key: 'jsyjk_sl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '22',
key: 'jsyjk_bzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '23',
key: 'jsyjk_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '24',
key: 'jsyjk_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '25',
key: 'jsyhw_sl',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('Quantity'),
fillincontent:this.$t('yesisselected'),
},
{
key: '26',
key: 'jsyhw_bzwz',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('layoutposition'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '27',
key: 'jsyhw_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '28',
key: 'jsyhw_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '29',
key: 'czwxdw_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '30',
key: 'czwxdw_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '31',
key: 'gxdh_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '32',
key: 'gxdh_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '33',
key: 'lsj_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '34',
key: 'lsj_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '35',
key: 'gjddt_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('VersionNumber'),
fillincontent:this.$t('yesisselected'),
},
{
key: '36',
key: 'gjddt_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '37',
key: 'dzwl_dxxgcs',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('qualitativelydescriberelevantplaces'),
fillincontent:this.$t('yesisselected'),
},
{
key: '38',
key: 'cztx_xtmc',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('systemname'),
fillincontent:this.$t('yesisselected'),
},
{
key: '39',
key: 'cztx_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('systemspecificationmodel'),
fillincontent:this.$t('forwardXquantity'),
},
{
key: '40',
key: 'cztx_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('systemproductionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '41',
key: 'cztx_bbh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('softwareversionnumber'),
fillincontent:this.$t('yesisselected'),
},
{
key: '42',
key: 'cztx_kfqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('softwaredevelopmententerprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '43',
key: 'jsfzczj_mc',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('controlname'),
fillincontent:this.$t('yesisselected'),
},
{
key: '44',
key: 'jsfzczj_yjxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('hardwarespecificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '45',
key: 'jsfzczj_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '46',
key: 'jsfzzsq_mc',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('nameofindicatorsignaldevice'),
fillincontent:this.$t('yesisselected'),
},
{
key: '47',
key: 'jsfzzsq_yjxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('hardwarespecificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '48',
key: 'jsfzzsq_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '49',
key: 'fxptsts_mc',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('nameofindicatorsignaldevice'),
fillincontent:this.$t('yesisselected'),
},
{
key: '50',
key: 'fxptsts_yjxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('hardwarespecificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '51',
key: 'fxptsts_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '52',
key: 'jsyzylts_mc',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('nameofindicatorsignaldevice'),
fillincontent:this.$t('yesisselected'),
},
{
key: '53',
key: 'jsyzylts_yjxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('hardwarespecificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '54',
key: 'jsyzylts_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '55',
key: 'DSSAD_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '56',
key: 'DSSAD_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
{
key: '57',
key: 'EDR_ggxh',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('specificationmodel'),
fillincontent:this.$t('yesisselected'),
},
{
key: '58',
key: 'EDR_scqy',
val:'',
componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'),
ParameterName: this.$t('productionenterprise'),
fillincontent:this.$t('yesisselected'),
},
],
url: {
},
queryParam: {},
dataSourceList: [
{
bjmc:'车端OTA升级功能模块'
}
],
columns: [
@@ -806,6 +848,7 @@ export default {
],
selectedRowKeys: [],
fileList:{},
query:{}
}
},
mounted() {
@@ -855,10 +898,30 @@ 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.save()
this.$emit('recordparametersup')
},
next(){
this.save()
this.$emit('recordparametersdown')
},
// 合并单元格
@@ -881,7 +944,7 @@ export default {
return obj;
},
addlineAtBot(){
let obj={}
let obj={bjmc:'车端OTA升级功能模块'}
this.dataSourceList.push(obj)
},
deleteData(record){
@@ -215,6 +215,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
@@ -240,6 +240,7 @@ export default {
},
save() {
let obj = {}
obj.otaId=this.otaId
obj.bhsjb = this.dataSource[0].relevantverification
obj.bhclbb = this.dataSource[1].relevantverification
obj.clgxnl = this.dataSource[2].relevantverification
@@ -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,44 +33,44 @@
</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">
<a-button @click="clickButtonToUpload" type="primary">{{$t('uploadattachment')}}</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" >
@@ -82,7 +82,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">
@@ -107,8 +107,23 @@
return {
dataSource: [
{
}
xtlb:'动力系统'
},
{
xtlb:'传动系统'
},
{
xtlb:'转向系统'
},
{
xtlb:'制动系统'
},
{
xtlb:'车身系统'
},
{
xtlb:'车载能源系统'
},
],
columns: [
{
@@ -248,7 +263,6 @@
scopedSlots: { customRender: 'operation' }
}
],
form:[{}]
}
},
mounted() {
@@ -311,7 +325,7 @@
},
//中间加
addlineAtMid(record){
let obj = {}
let obj = {xtlb:record.xtlb}
this.dataSource.splice(this.dataSource.indexOf(record)+1,0,obj)
},
//最后一行加
@@ -323,7 +337,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);
})
}