This commit is contained in:
yuekuo
2023-03-25 14:21:52 +08:00
parent 8e5822a1c8
commit b3271d6aae
8 changed files with 180 additions and 93 deletions
@@ -22,7 +22,8 @@
<a-form-model-item class="itemModel" prop="dutyTerritory"> <a-form-model-item class="itemModel" prop="dutyTerritory">
<a-select :disabled="disabled" class="box-input" v-model="form.cxmb" allowClear :triggerChange="false" :placeholder="$t('PleaseSelect')"> <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 v-for="(item , key ) in selectList" :key="key" :value="item.id">
{{ item.ggpc }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
@@ -225,6 +226,7 @@
name: 'basicInformation', name: 'basicInformation',
components:{ components:{
}, },
props:['otaId'],
data() { data() {
return { return {
confirmLoading: false, confirmLoading: false,
@@ -240,15 +242,17 @@
} }
}, },
mounted() { mounted() {
this.$forceUpdate()
this.getSelect() this.getSelect()
this.getData()
}, },
methods: { methods: {
getSelect(){ getSelect(){
getAction('/ota/otaBaCxList/list').then(res=>{ getAction('/ota/otaBaCxList/list').then(res=>{
if(res.code==200){ if(res.code==200){
this.selectList=[] this.selectList=[]
let obj={} res.result.forEach(item=>{
res.result.map(item=>{ let obj={}
obj.id=item.id obj.id=item.id
obj.ggpc=item.ggpc obj.ggpc=item.ggpc
this.selectList.push(obj) this.selectList.push(obj)
@@ -256,14 +260,27 @@
} }
}) })
}, },
getData(){
// if(this.otaId && this.otaId !=''){
console.log('otaId',this.otaId);
getAction('/ota/otaBaCxJbxx/queryByOtaId',this.otaId).then(res=>{
if(res.code == 200){
}
})
// }
},
next(){ next(){
this.save() this.save()
this.$emit('basicInformationForm') this.$emit('basicInformationForm',this.otaId)
}, },
save(){ save(){
postAction('/ota/otaBaCxJbxx/add',{otaId:this.otaId,...this.form}).then( res => { postAction('/ota/otaBaCxJbxx/add',{otaId:this.otaId,...this.form}).then( res => {
console.log(res); if(res.code == 200){
this.otaId = res.result.otaId
}
}) })
}, },
changeSelect(target){ changeSelect(target){
@@ -111,6 +111,7 @@
components:{ components:{
uploadFile uploadFile
}, },
props:['otaId'],
data() { data() {
return { return {
dataSource: [ dataSource: [
@@ -278,6 +279,7 @@
}, },
mounted() { mounted() {
// this.getList() // this.getList()
this.getData()
}, },
methods: { methods: {
getList() { getList() {
@@ -308,18 +310,26 @@
} }
}) })
}, },
getData(){
if(this.otaId && this.otaId !=''){
getAction('/ota/otaBaCxKsjjsmccs/queryByOtaId',this.otaId).then(res=>{
console.log(res);
})
}
},
save(){ save(){
postAction('',{otaId:this.otaId,list:this.dataSource}).then(res =>{ postAction('/ota/otaBaCxKsjjsmccs/add',{otaId:this.otaId,list:this.dataSource}).then(res =>{
console.log(res); console.log(res);
}) })
}, },
last(){ last(){
this.save() this.save()
this.$emit('beupgradedonlineup') this.$emit('beupgradedonlineup',this.otaId)
}, },
next(){ next(){
this.save() this.save()
this.$emit('beupgradedonlinedown') this.$emit('beupgradedonlinedown',this.otaId)
}, },
uploadSuccess(data) { uploadSuccess(data) {
let attIdList = [] let attIdList = []
@@ -33,6 +33,7 @@ export default {
name: 'basicInformation', name: 'basicInformation',
components:{ components:{
}, },
props:['otaId'],
data() { data() {
return { return {
confirmLoading: false, confirmLoading: false,
@@ -46,13 +47,21 @@ export default {
} }
}, },
mounted() { mounted() {
this.getData()
}, },
methods: { methods: {
getData(){
if(this.otaId && this.otaId !=''){
getAction('/ota/otaBaCxQt/queryByOtaId',this.otaId).then(res=>{
console.log(res);
})
}
},
save(){ save(){
this.$refs.ruleForm.validate( valid =>{ this.$refs.ruleForm.validate( valid =>{
if (valid) { if (valid) {
postAction('/ota/otaBaCxQt/add',this.queryParam).then(res=>{ postAction('/ota/otaBaCxQt/add',{otaId:this.otaId,...this.queryParam}).then(res=>{
console.log(res); console.log(res);
}) })
} else { } else {
@@ -62,7 +71,7 @@ export default {
}, },
last(){ last(){
this.save() this.save()
this.$emit('otherup') this.$emit('otherup',this.queryParam)
}, },
submit(){ submit(){
this.save() this.save()
@@ -287,12 +287,13 @@ export default {
components:{ components:{
uploadFile uploadFile
}, },
props:['otaId'],
data() { data() {
return { return {
radioList:9, radioList:9,
dataSource: [ dataSource: [
{ {
key: 'wlaqyq_sl', key: 'wlaqyqSl',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -300,7 +301,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'wlaqyq_bzwz', key: 'wlaqyqBzwz',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -308,7 +309,7 @@ export default {
fillincontent:this.$t('forwardXquantity'), fillincontent:this.$t('forwardXquantity'),
}, },
{ {
key: 'wlaqyq_ggxh', key: 'wlaqyqGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -316,7 +317,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'wlaqyq_scqy', key: 'wlaqyqScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'), configuration: this.$t('productionenterprise'),
@@ -324,7 +325,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'hmbld_sl', key: 'hmbldSl',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -332,7 +333,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'hmbld_bzwz', key: 'hmbldBzwz',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -340,7 +341,7 @@ export default {
fillincontent:this.$t('forwardXquantity'), fillincontent:this.$t('forwardXquantity'),
}, },
{ {
key: 'hmbld_ggxh', key: 'hmbldGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -348,7 +349,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'hmbld_scqy', key: 'hmbldScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'), configuration: this.$t('productionenterprise'),
@@ -356,7 +357,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'csbld_sl', key: 'csbldSl',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -364,7 +365,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'csbld_bzwz', key: 'csbldBzwz',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -372,7 +373,7 @@ export default {
fillincontent:this.$t('forwardXquantity'), fillincontent:this.$t('forwardXquantity'),
}, },
{ {
key: '1csbld_ggxh', key: 'csbldGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -380,7 +381,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'csbld_scqy', key: 'csbldScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'), configuration: this.$t('productionenterprise'),
@@ -388,7 +389,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'sxths_sl', key: 'sxthsSl',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -396,7 +397,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'sxths_bzwz', key: 'sxthsBzwz',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -404,7 +405,7 @@ export default {
fillincontent:this.$t('forwardXquantity'), fillincontent:this.$t('forwardXquantity'),
}, },
{ {
key: 'sxths_ggxh', key: 'sxthsGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -412,7 +413,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'sxths_scqy', key: 'sxthsScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'), configuration: this.$t('productionenterprise'),
@@ -420,7 +421,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'sxtdsd_sl', key: 'sxtdsdSl',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -428,7 +429,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'sxtdsd_bzwz', key: 'sxtdsdBzwz',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -436,7 +437,7 @@ export default {
fillincontent:this.$t('forwardXquantity'), fillincontent:this.$t('forwardXquantity'),
}, },
{ {
key: 'sxtdsd_ggxh', key: 'sxtdsdGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -444,7 +445,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'sxtdsd_scqy', key: 'sxtdsdScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'), configuration: this.$t('productionenterprise'),
@@ -452,7 +453,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsyjk_sl', key: 'jsyjkSl',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -460,7 +461,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsyjk_bzwz', key: 'jsyjkBzwz',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -468,7 +469,7 @@ export default {
fillincontent:this.$t('forwardXquantity'), fillincontent:this.$t('forwardXquantity'),
}, },
{ {
key: 'jsyjk_ggxh', key: 'jsyjkGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -476,7 +477,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsyjk_scqy', key: 'jsyjkScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'), configuration: this.$t('productionenterprise'),
@@ -484,7 +485,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsyhw_sl', key: 'jsyhwSl',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -492,7 +493,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsyhw_bzwz', key: 'jsyhwBzwz',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -500,7 +501,7 @@ export default {
fillincontent:this.$t('forwardXquantity'), fillincontent:this.$t('forwardXquantity'),
}, },
{ {
key: 'jsyhw_ggxh', key: 'jsyhwGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -508,7 +509,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsyhw_scqy', key: 'jsyhwScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('productionenterprise'), configuration: this.$t('productionenterprise'),
@@ -516,7 +517,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'czwxdw_ggxh', key: 'czwxdwGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -524,7 +525,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'czwxdw_scqy', key: 'czwxdwScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -532,7 +533,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'gxdh_ggxh', key: 'gxdhGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -540,7 +541,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'gxdh_scqy', key: 'gxdhScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -548,7 +549,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'lsj_ggxh', key: 'lsjGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -556,7 +557,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'lsj_scqy', key: 'lsjScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -564,7 +565,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'gjddt_ggxh', key: 'gjddtGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -572,7 +573,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'gjddt_scqy', key: 'gjddtScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -580,7 +581,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'dzwl_dxxgcs', key: 'dzwlDxxgcs',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -588,7 +589,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'cztx_xtmc', key: 'cztxXtmc',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -596,7 +597,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'cztx_ggxh', key: 'cztxGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -604,7 +605,7 @@ export default {
fillincontent:this.$t('forwardXquantity'), fillincontent:this.$t('forwardXquantity'),
}, },
{ {
key: 'cztx_scqy', key: 'cztxScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -612,7 +613,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'cztx_bbh', key: 'cztxBbh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -620,7 +621,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'cztx_kfqy', key: 'cztxKfqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -628,7 +629,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsfzczj_mc', key: 'jsfzczjMc',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -636,7 +637,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsfzczj_yjxh', key: 'jsfzczjYjxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -644,7 +645,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsfzczj_scqy', key: 'jsfzczjScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -652,7 +653,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsfzzsq_mc', key: 'jsfzzsqMc',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -660,7 +661,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsfzzsq_yjxh', key: 'jsfzzsqYjxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -668,7 +669,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsfzzsq_scqy', key: 'jsfzzsqScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -676,7 +677,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'fxptsts_mc', key: 'fxptstsMc',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -684,7 +685,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'fxptsts_yjxh', key: 'fxptstsYjxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -692,7 +693,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'fxptsts_scqy', key: 'fxptstsScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -700,7 +701,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsyzylts_mc', key: 'jsyzyltsMc',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -708,7 +709,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsyzylts_yjxh', key: 'jsyzyltsYjxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -716,7 +717,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'jsyzylts_scqy', key: 'jsyzyltsScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -724,7 +725,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'DSSAD_ggxh', key: 'dssadGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -732,7 +733,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'DSSAD_scqy', key: 'dssadScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -740,7 +741,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'EDR_ggxh', key: 'edrGgxh',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -748,7 +749,7 @@ export default {
fillincontent:this.$t('yesisselected'), fillincontent:this.$t('yesisselected'),
}, },
{ {
key: 'EDR_scqy', key: 'edrScqy',
val:'', val:'',
componentname: this.$t('networksecurityrequirements'), componentname: this.$t('networksecurityrequirements'),
configuration: this.$t('ineffectiveupgrades'), configuration: this.$t('ineffectiveupgrades'),
@@ -853,8 +854,17 @@ export default {
}, },
mounted() { mounted() {
// this.getList() // this.getList()
this.getData()
}, },
methods: { methods: {
getData(){
if(this.otaId && this.otaId !=''){
getAction('/ota/otaBaCxJsfzbacs/queryByOtaId',this.otaId).then(res=>{
console.log(res);
})
}
},
click(value){ click(value){
this.fileList = value this.fileList = value
console.log(this.fileList) console.log(this.fileList)
@@ -918,11 +928,11 @@ export default {
}, },
last(){ last(){
this.save() this.save()
this.$emit('recordparametersup') this.$emit('recordparametersup',this.otaId)
}, },
next(){ next(){
this.save() this.save()
this.$emit('recordparametersdown') this.$emit('recordparametersdown',this.otaId)
}, },
// 合并单元格 // 合并单元格
mergeCellsSlot(record, rowIndex) { mergeCellsSlot(record, rowIndex) {
@@ -52,6 +52,7 @@
components:{ components:{
uploadFile uploadFile
}, },
props:['otaId'],
data() { data() {
return { return {
dataSource: [ dataSource: [
@@ -162,8 +163,17 @@
}, },
mounted() { mounted() {
this.getList() this.getList()
this.getData()
}, },
methods: { methods: {
getData(){
if(this.otaId && this.otaId !=''){
getAction('/ota/otaBaCxAqcs/queryByOtaId',this.otaId).then(res=>{
console.log(res);
})
}
},
click(value){ click(value){
this.fileList = value this.fileList = value
console.log(this.fileList) console.log(this.fileList)
@@ -225,10 +235,10 @@
}) })
}, },
last(){ last(){
this.$emit('safetyPrecautionsup') this.$emit('safetyPrecautionsup',this.otaId)
}, },
next(){ next(){
this.$emit('safetyPrecautionsdown') this.$emit('safetyPrecautionsdown',this.otaId)
}, },
} }
} }
@@ -41,6 +41,7 @@ export default {
components: { components: {
uploadFile uploadFile
}, },
props:['otaId'],
data() { data() {
return { return {
dataSource: [ dataSource: [
@@ -193,8 +194,19 @@ export default {
}, },
mounted() { mounted() {
// this.getList() // this.getList()
this.$forceUpdate()
this.getData()
}, },
methods: { methods: {
getData(){
// if(this.otaId && this.otaId !=''){
getAction('/ota/otaBaCxZxsjyq/queryByOtaId',this.otaId).then(res=>{
console.log(res);
})
// }
},
click(value) { click(value) {
this.fileList = value this.fileList = value
console.log(this.fileList) console.log(this.fileList)
@@ -241,6 +253,7 @@ export default {
save() { save() {
let obj = {} let obj = {}
obj.otaId=this.otaId obj.otaId=this.otaId
console.log(this.otaId);
obj.bhsjb = this.dataSource[0].relevantverification obj.bhsjb = this.dataSource[0].relevantverification
obj.bhclbb = this.dataSource[1].relevantverification obj.bhclbb = this.dataSource[1].relevantverification
obj.clgxnl = this.dataSource[2].relevantverification obj.clgxnl = this.dataSource[2].relevantverification
@@ -257,11 +270,11 @@ export default {
}, },
last() { last() {
this.save() this.save()
this.$emit('upgradeRequirementsup') this.$emit('upgradeRequirementsup',this.otaId)
}, },
next() { next() {
this.save() this.save()
this.$emit('upgradeRequirementsdown') this.$emit('upgradeRequirementsdown',this.otaId)
} }
} }
} }
@@ -103,6 +103,7 @@
components:{ components:{
uploadFile, uploadFile,
}, },
props:['otaId'],
data() { data() {
return { return {
dataSource: [ dataSource: [
@@ -267,8 +268,16 @@
}, },
mounted() { mounted() {
// this.getList() // this.getList()
this.getData()
}, },
methods: { methods: {
getData(){
if(this.otaId && this.otaId !=''){
getAction('/ota/otaBaCxKsjxtmccs/queryByOtaId',this.otaId).then(res=>{
console.log(res);
})
}
},
getList() { getList() {
// let queryParam = JSON.parse(JSON.stringify(this.queryParam)) // let queryParam = JSON.parse(JSON.stringify(this.queryParam))
// Object.keys(queryParam).forEach(val => { // Object.keys(queryParam).forEach(val => {
@@ -299,11 +308,11 @@
}, },
last(){ last(){
this.save() this.save()
this.$emit('upgradedonlineup') this.$emit('upgradedonlineup',this.otaId)
}, },
next(){ next(){
this.save() this.save()
this.$emit('upgradedonlinedown') this.$emit('upgradedonlinedown',this.otaId)
}, },
uploadSuccess(data) { uploadSuccess(data) {
// let attIdList = [] // let attIdList = []
@@ -15,25 +15,25 @@
</div> </div>
<a-tabs class="tabs" v-model="tabActive" @change="callback"> <a-tabs class="tabs" v-model="tabActive" @change="callback">
<a-tab-pane disabled :key="$t('basicinformationofvehicletype')" :tab="$t('basicinformationofvehicletype')"> <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>
<a-tab-pane disabled :key="$t('onlineupgraderequirements')" :tab="$t('onlineupgraderequirements')"> <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>
<a-tab-pane disabled :key="$t('safetymeasure')" :tab="$t('safetymeasure')"> <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>
<a-tab-pane disabled :key="$t('upgradedonline')" :tab="$t('upgradedonline')"> <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>
<a-tab-pane disabled :key="$t('beupgradedonline')" :tab="$t('beupgradedonline')"> <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>
<a-tab-pane disabled :key="$t('recordparameters')" :tab="$t('recordparameters')"> <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>
<a-tab-pane disabled :key="$t('other')" :tab="$t('other')"> <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>
<a-tab-pane disabled :key="$t('historicalrecord')" :tab="$t('historicalrecord')"> <a-tab-pane disabled :key="$t('historicalrecord')" :tab="$t('historicalrecord')">
<historicalrecord v-if="tabActive == $t('historicalrecord')" ref="historicalrecordRef" @historicalrecordup='historicalrecordup'/> <historicalrecord v-if="tabActive == $t('historicalrecord')" ref="historicalrecordRef" @historicalrecordup='historicalrecordup'/>
@@ -162,7 +162,8 @@ export default {
}, },
], ],
toggleSearchStatus: false, toggleSearchStatus: false,
tabActive: this.$t('basicinformationofvehicletype') tabActive: this.$t('basicinformationofvehicletype'),
otaId:''
} }
}, },
methods: { methods: {
@@ -214,38 +215,46 @@ export default {
historicalrecordClick(){ historicalrecordClick(){
this.tabActive = this.$t('historicalrecord') this.tabActive = this.$t('historicalrecord')
}, },
basicInformationForm(){ basicInformationForm(data){
this.tabActive = this.$t('onlineupgraderequirements') this.tabActive = this.$t('onlineupgraderequirements')
this.otaId = data
}, },
upgradeRequirementsup(){ upgradeRequirementsup(data){
this.tabActive = this.$t('basicinformationofvehicletype') this.tabActive = this.$t('basicinformationofvehicletype')
this.otaId = data
}, },
upgradeRequirementsdown(){ upgradeRequirementsdown(){
this.tabActive = this.$t('safetymeasure') this.tabActive = this.$t('safetymeasure')
}, },
safetyPrecautionsup(){ safetyPrecautionsup(data){
this.tabActive = this.$t('onlineupgraderequirements') this.tabActive = this.$t('onlineupgraderequirements')
this.otaId = data
}, },
safetyPrecautionsdown(){ safetyPrecautionsdown(){
this.tabActive = this.$t('upgradedonline') this.tabActive = this.$t('upgradedonline')
}, },
upgradedonlineup(){ upgradedonlineup(data){
this.tabActive = this.$t('safetymeasure') this.tabActive = this.$t('safetymeasure')
this.otaId = data
}, },
upgradedonlinedown(){ upgradedonlinedown(data){
this.tabActive = this.$t('beupgradedonline') this.tabActive = this.$t('beupgradedonline')
this.otaId = data
}, },
beupgradedonlineup(){ beupgradedonlineup(data){
this.tabActive = this.$t('upgradedonline') this.tabActive = this.$t('upgradedonline')
this.otaId = data
}, },
beupgradedonlinedown(){ beupgradedonlinedown(data){
this.tabActive = this.$t('recordparameters') this.tabActive = this.$t('recordparameters')
this.otaId = data
}, },
recordparametersup(){ recordparametersup(){
this.tabActive = this.$t('beupgradedonline') this.tabActive = this.$t('beupgradedonline')
}, },
recordparametersdown(){ recordparametersdown(data){
this.tabActive = this.$t('other') this.tabActive = this.$t('other')
this.otaId = data
}, },
otherup(){ otherup(){
this.tabActive = this.$t('recordparameters') this.tabActive = this.$t('recordparameters')