diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue index 9e79b9c0e..07eb0ce76 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue @@ -22,7 +22,8 @@ - + + {{ item.ggpc }} @@ -225,6 +226,7 @@ name: 'basicInformation', components:{ }, + props:['otaId'], data() { return { confirmLoading: false, @@ -240,15 +242,17 @@ } }, mounted() { + this.$forceUpdate() this.getSelect() + this.getData() }, methods: { getSelect(){ getAction('/ota/otaBaCxList/list').then(res=>{ if(res.code==200){ this.selectList=[] - let obj={} - res.result.map(item=>{ + res.result.forEach(item=>{ + let obj={} obj.id=item.id obj.ggpc=item.ggpc 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(){ this.save() - this.$emit('basicInformationForm') + this.$emit('basicInformationForm',this.otaId) }, save(){ 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){ diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue index 50b8a68c9..7bf389f5b 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue @@ -111,6 +111,7 @@ components:{ uploadFile }, + props:['otaId'], data() { return { dataSource: [ @@ -278,6 +279,7 @@ }, mounted() { // this.getList() + this.getData() }, methods: { getList() { @@ -308,18 +310,26 @@ } }) }, + getData(){ + if(this.otaId && this.otaId !=''){ + getAction('/ota/otaBaCxKsjjsmccs/queryByOtaId',this.otaId).then(res=>{ + console.log(res); + }) + } + + }, 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); }) }, last(){ this.save() - this.$emit('beupgradedonlineup') + this.$emit('beupgradedonlineup',this.otaId) }, next(){ this.save() - this.$emit('beupgradedonlinedown') + this.$emit('beupgradedonlinedown',this.otaId) }, uploadSuccess(data) { let attIdList = [] diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/other.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/other.vue index fa475255b..144fc1b33 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/other.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/other.vue @@ -33,6 +33,7 @@ export default { name: 'basicInformation', components:{ }, + props:['otaId'], data() { return { confirmLoading: false, @@ -46,13 +47,21 @@ export default { } }, 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',this.queryParam).then(res=>{ + postAction('/ota/otaBaCxQt/add',{otaId:this.otaId,...this.queryParam}).then(res=>{ console.log(res); }) } else { @@ -62,7 +71,7 @@ export default { }, last(){ this.save() - this.$emit('otherup') + this.$emit('otherup',this.queryParam) }, submit(){ this.save() diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue index fbabf0442..623f865bd 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue @@ -287,12 +287,13 @@ export default { components:{ uploadFile }, + props:['otaId'], data() { return { radioList:9, dataSource: [ { - key: 'wlaqyq_sl', + key: 'wlaqyqSl', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -300,7 +301,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'wlaqyq_bzwz', + key: 'wlaqyqBzwz', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -308,7 +309,7 @@ export default { fillincontent:this.$t('forwardXquantity'), }, { - key: 'wlaqyq_ggxh', + key: 'wlaqyqGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -316,7 +317,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'wlaqyq_scqy', + key: 'wlaqyqScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('productionenterprise'), @@ -324,7 +325,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'hmbld_sl', + key: 'hmbldSl', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -332,7 +333,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'hmbld_bzwz', + key: 'hmbldBzwz', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -340,7 +341,7 @@ export default { fillincontent:this.$t('forwardXquantity'), }, { - key: 'hmbld_ggxh', + key: 'hmbldGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -348,7 +349,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'hmbld_scqy', + key: 'hmbldScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('productionenterprise'), @@ -356,7 +357,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'csbld_sl', + key: 'csbldSl', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -364,7 +365,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'csbld_bzwz', + key: 'csbldBzwz', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -372,7 +373,7 @@ export default { fillincontent:this.$t('forwardXquantity'), }, { - key: '1csbld_ggxh', + key: 'csbldGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -380,7 +381,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'csbld_scqy', + key: 'csbldScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('productionenterprise'), @@ -388,7 +389,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'sxths_sl', + key: 'sxthsSl', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -396,7 +397,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'sxths_bzwz', + key: 'sxthsBzwz', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -404,7 +405,7 @@ export default { fillincontent:this.$t('forwardXquantity'), }, { - key: 'sxths_ggxh', + key: 'sxthsGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -412,7 +413,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'sxths_scqy', + key: 'sxthsScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('productionenterprise'), @@ -420,7 +421,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'sxtdsd_sl', + key: 'sxtdsdSl', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -428,7 +429,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'sxtdsd_bzwz', + key: 'sxtdsdBzwz', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -436,7 +437,7 @@ export default { fillincontent:this.$t('forwardXquantity'), }, { - key: 'sxtdsd_ggxh', + key: 'sxtdsdGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -444,7 +445,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'sxtdsd_scqy', + key: 'sxtdsdScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('productionenterprise'), @@ -452,7 +453,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsyjk_sl', + key: 'jsyjkSl', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -460,7 +461,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsyjk_bzwz', + key: 'jsyjkBzwz', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -468,7 +469,7 @@ export default { fillincontent:this.$t('forwardXquantity'), }, { - key: 'jsyjk_ggxh', + key: 'jsyjkGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -476,7 +477,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsyjk_scqy', + key: 'jsyjkScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('productionenterprise'), @@ -484,7 +485,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsyhw_sl', + key: 'jsyhwSl', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -492,7 +493,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsyhw_bzwz', + key: 'jsyhwBzwz', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -500,7 +501,7 @@ export default { fillincontent:this.$t('forwardXquantity'), }, { - key: 'jsyhw_ggxh', + key: 'jsyhwGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -508,7 +509,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsyhw_scqy', + key: 'jsyhwScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('productionenterprise'), @@ -516,7 +517,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'czwxdw_ggxh', + key: 'czwxdwGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -524,7 +525,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'czwxdw_scqy', + key: 'czwxdwScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -532,7 +533,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'gxdh_ggxh', + key: 'gxdhGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -540,7 +541,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'gxdh_scqy', + key: 'gxdhScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -548,7 +549,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'lsj_ggxh', + key: 'lsjGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -556,7 +557,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'lsj_scqy', + key: 'lsjScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -564,7 +565,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'gjddt_ggxh', + key: 'gjddtGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -572,7 +573,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'gjddt_scqy', + key: 'gjddtScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -580,7 +581,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'dzwl_dxxgcs', + key: 'dzwlDxxgcs', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -588,7 +589,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'cztx_xtmc', + key: 'cztxXtmc', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -596,7 +597,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'cztx_ggxh', + key: 'cztxGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -604,7 +605,7 @@ export default { fillincontent:this.$t('forwardXquantity'), }, { - key: 'cztx_scqy', + key: 'cztxScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -612,7 +613,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'cztx_bbh', + key: 'cztxBbh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -620,7 +621,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'cztx_kfqy', + key: 'cztxKfqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -628,7 +629,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsfzczj_mc', + key: 'jsfzczjMc', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -636,7 +637,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsfzczj_yjxh', + key: 'jsfzczjYjxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -644,7 +645,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsfzczj_scqy', + key: 'jsfzczjScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -652,7 +653,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsfzzsq_mc', + key: 'jsfzzsqMc', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -660,7 +661,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsfzzsq_yjxh', + key: 'jsfzzsqYjxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -668,7 +669,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsfzzsq_scqy', + key: 'jsfzzsqScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -676,7 +677,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'fxptsts_mc', + key: 'fxptstsMc', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -684,7 +685,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'fxptsts_yjxh', + key: 'fxptstsYjxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -692,7 +693,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'fxptsts_scqy', + key: 'fxptstsScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -700,7 +701,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsyzylts_mc', + key: 'jsyzyltsMc', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -708,7 +709,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsyzylts_yjxh', + key: 'jsyzyltsYjxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -716,7 +717,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'jsyzylts_scqy', + key: 'jsyzyltsScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -724,7 +725,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'DSSAD_ggxh', + key: 'dssadGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -732,7 +733,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'DSSAD_scqy', + key: 'dssadScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -740,7 +741,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'EDR_ggxh', + key: 'edrGgxh', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -748,7 +749,7 @@ export default { fillincontent:this.$t('yesisselected'), }, { - key: 'EDR_scqy', + key: 'edrScqy', val:'', componentname: this.$t('networksecurityrequirements'), configuration: this.$t('ineffectiveupgrades'), @@ -853,8 +854,17 @@ export default { }, 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) @@ -918,11 +928,11 @@ export default { }, last(){ this.save() - this.$emit('recordparametersup') + this.$emit('recordparametersup',this.otaId) }, next(){ this.save() - this.$emit('recordparametersdown') + this.$emit('recordparametersdown',this.otaId) }, // 合并单元格 mergeCellsSlot(record, rowIndex) { diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue index 85fbe2617..dee27a3fe 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue @@ -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) @@ -225,10 +235,10 @@ }) }, last(){ - this.$emit('safetyPrecautionsup') + this.$emit('safetyPrecautionsup',this.otaId) }, next(){ - this.$emit('safetyPrecautionsdown') + this.$emit('safetyPrecautionsdown',this.otaId) }, } } diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/upgradeRequirements.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/upgradeRequirements.vue index 3ea04b37c..be22f30a1 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/upgradeRequirements.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/upgradeRequirements.vue @@ -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) @@ -241,6 +253,7 @@ 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 @@ -257,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) } } } diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue index 7d9c2a36d..842596e52 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue @@ -103,6 +103,7 @@ components:{ uploadFile, }, + props:['otaId'], data() { return { dataSource: [ @@ -267,8 +268,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 => { @@ -299,11 +308,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) { // let attIdList = [] diff --git a/jero-web/src/views/otamanagement/vehicleinformation/index.vue b/jero-web/src/views/otamanagement/vehicleinformation/index.vue index 4feb71121..65155b832 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/index.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/index.vue @@ -15,25 +15,25 @@ - + - + - + - + - + - + - + @@ -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')