diff --git a/jero-web/src/views/otamanagement/upgradeactivity/index.vue b/jero-web/src/views/otamanagement/upgradeactivity/index.vue index 42ea1fcf1..e144bf3b1 100644 --- a/jero-web/src/views/otamanagement/upgradeactivity/index.vue +++ b/jero-web/src/views/otamanagement/upgradeactivity/index.vue @@ -389,8 +389,25 @@ export default { }, // 引用备案 citeforrecord(){ - - }, + if( this.selectedRowKeys.length == 0 ){ + this.$message.warning(this.$t('selectLeastOne')) + }else{ + if ( this.selectedRowKeys.length > 1){ + this.$message.warning(this.$t('OnlyOneSelected')) + }else{ + localStorage.removeItem('otaIdT') + localStorage.removeItem('otaId') + localStorage.setItem('otaIdT',this.selectedRowKeys[0]) + if(localStorage.getItem('otaIdT')!=null){ + this.$router.push({ + path: '/upgradeactivityrecord', + query: { + type:1 + } + }) + } + } + }}, // 创建车型 createvehicleandfunctionrecords() { localStorage.removeItem('otaId') diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/informationaboutotherupgradetasks.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/informationaboutotherupgradetasks.vue index 37d33f836..bd736b171 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/informationaboutotherupgradetasks.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/informationaboutotherupgradetasks.vue @@ -12,7 +12,7 @@ + v-model.trim="queryParam.rwmc"> @@ -29,7 +29,7 @@ @change="dateChange({db_field_name:'updatereleasetime'})" format="YYYY-MM-DD" :getCalendarContainer="(trigger) => trigger.parentNode" - v-model="queryParam.updatereleasetime" + v-model="queryParam.sjfbsj" :disabled="false" style="width: 100%"/> @@ -48,7 +48,7 @@ @change="dateChange({db_field_name:'upgradeplanexpirationtime'})" format="YYYY-MM-DD" :getCalendarContainer="(trigger) => trigger.parentNode" - v-model="queryParam.upgradeplanexpirationtime" + v-model="queryParam.sjjzsj" :disabled="false" style="width: 100%"/> @@ -58,7 +58,7 @@
- {{$t('preservation')}} + {{$t('preservation')}} {{$t('last')}} {{$t('submit')}}
@@ -77,21 +77,51 @@ export default { return { confirmLoading: false, disabled: false, - queryParam:{} + queryParam:{ + sjjzsj:'' + } } }, mounted() { - + this.getData() }, methods: { + getData(){ + let otaIdT=localStorage.getItem('otaIdT') + if(otaIdT==null){ + otaIdT='' + } + let otaId=localStorage.getItem('otaId') + if(otaId==null){ + otaId='' + } + getAction('/ota/otaBaSjQtsjxx/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}),then(res=>{ + if(res.code == 200){ + this.queryParam= res.result ==null ? {} :res.result + } + }) + }, + save(){ + let otaId = localStorage.getItem('otaId') + if(otaId == null || otaId == undefined){ + otaId='' + } + this.queryParam.otaId = otaId + postAction('/ota/otaBaSjQtsjxx/add' ,this.queryParam).then(res=>{ + this.$message.success(this.$t('SavedSuccessfully')) + console.log(res); + }) + }, + last(){ + this.save() this.$emit('otherup') }, dateChange(item) { this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : '' }, submit(){ - + this.$router.push('upgradeactivity') }, } } diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue index 3c081c5b6..d78323297 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue @@ -389,8 +389,11 @@ this.$forceUpdate() }) }, save(){ - - this.form.otaId=localStorage.getItem('otaId') + let otaId = localStorage.getItem('otaId') + if(otaId == null || otaId == undefined){ + otaId='' + } + this.form.otaId=otaId postAction('/ota/otaBaSjSjyxpg/add',this.form).then(res=>{ this.$message.success(this.$t('SavedSuccessfully')) console.log(res); diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/usernotification.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/usernotification.vue index d3e2be2b7..65f16e1cb 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/usernotification.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/usernotification.vue @@ -179,6 +179,7 @@ import { getAction, postAction, deleteAction,downloadFile } from '@/api/manage' import ImportFile from '@/components/ImportFileData/index' import uploadFile from '@/components/uploadFile/file' import moment from 'moment' +import { post } from '../../../../common/lang/zh-cn' export default { name: 'basicInformation', @@ -198,7 +199,7 @@ export default { } }, mounted() { - + this.getData() }, methods: {// 模板下载 handleModule() { @@ -229,8 +230,31 @@ export default { } }) }, + getData(){ + let otaIdT=localStorage.getItem('otaIdT') + if(otaIdT==null){ + otaIdT='' + } + let otaId=localStorage.getItem('otaId') + if(otaId==null){ + otaId='' + } + getAction('/ota/otaBaSjGgnrfs/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}),then(res=>{ + if(res.code == 200){ + this.formInline= res.result ==null ? {} :res.result + } + }) + }, save(){ - + let otaId = localStorage.getItem('otaId') + if(otaId == null || otaId == undefined){ + otaId='' + } + this.formInline.otaId = otaId + postAction('/ota/otaBaSjGgnrfs/add' ,this.formInline).then(res=>{ + this.$message.success(this.$t('SavedSuccessfully')) + console.log(res); + }) }, next(){ diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue index d3a2a4bd3..11ffac9e6 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue @@ -72,7 +72,7 @@ - +