From 9201b6d61c44c1aeeaa926f15e3f815a8f4761c8 Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Sun, 26 Mar 2023 12:05:48 +0800 Subject: [PATCH 1/8] =?UTF-8?q?ota=E6=9F=A5=E7=9C=8B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/basicInformation.vue | 14 +++---- .../components/beupgradedonline.vue | 34 ++------------- .../vehicleinformation/components/other.vue | 4 ++ .../components/recordparameters.vue | 20 --------- .../components/safetyPrecautions.vue | 42 ++++--------------- .../components/upgradeRequirements.vue | 3 -- .../components/upgradedonline.vue | 3 -- .../vehicleinformation/index.vue | 2 + .../vehicleregistration/index.vue | 4 +- 9 files changed, 22 insertions(+), 104 deletions(-) diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue index 4f78383d2..75fa65ae9 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue @@ -185,9 +185,9 @@ {{$t('communicationTerminal')}} -
- {{ (formInline.fileKey === 'null' || formInline.fileKey === '' || - formInline.fileKey == null) ? $t('clickUpload') : $t('viewUploadedFiles') + {{ (fileList === 'null' || fileList === '' || + fileList == null) ? $t('clickUpload') : $t('viewUploadedFiles') }}

注:附件包括测试项目清单、测试报告.测试标准或技术规范

    支持doc/docx/pdf格式,大小50M以内

@@ -296,39 +296,11 @@ import ImportFile from '@/components/ImportFileData/index' handleModule() { downloadFile('ota/otaBaCxKsjjsmccs/exportTemplate', '车型及功能备案' + '.zip', {}) }, - getList() { - let queryParam = JSON.parse(JSON.stringify(this.queryParam)) - Object.keys(queryParam).forEach(val => { - if (queryParam[val] instanceof Array) { - queryParam[val] = queryParam[val].join(',') - } - }) - let query = { - pageNo: this.pageNo, - pageSize: this.pageSize, - ...queryParam - } - this.loading = true - getAction(this.url.list, query).then((res) => { - if (res.success) { - if (res.result.current > 1 && res.result.records.length == 0) { - this.pageNo = 1 - this.getList() - return - } - this.dataSource = res.result.records || [] - this.total = res.result.total - this.loading = false - } else { - this.loading = false - } - }) - }, clickButtonToUpload(item) { this.$refs.uploadFile.perentHandleFunc() this.$refs.uploadFile.visible = true this.uploadName = item - getAction('sys/common/getFileInfos', { id: this.formInline[item] }).then((res) => { + getAction('sys/common/getFileInfos', { id: item }).then((res) => { if (res.success) { this.$refs.uploadFile.perentHandleFunc(res.result) } else { diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/other.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/other.vue index 03c949871..4b96a15e4 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/other.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/other.vue @@ -81,6 +81,10 @@ export default { }, submit(){ this.save() + this.$router.push({ + path: '/vehicleregistration', + query: {} + }) }, }, diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue index 884ef6542..a76624515 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue @@ -934,26 +934,6 @@ export default { this.fileList.uploadName = attIdList this.fileList.certifyingmaterials = this.$t('viewFile') }, - getList() { - let queryParam = JSON.parse(JSON.stringify(this.queryParam)) - Object.keys(queryParam).forEach(val => { - if (queryParam[val] instanceof Array) { - queryParam[val] = queryParam[val].join(',') - } - }) - let query = { - ...queryParam - } - getAction(this.url.list, query).then((res) => { - if (res.success) { - if (res.result.current > 1 && res.result.records.length == 0) { - this.getList() - return - } - } else { - } - }) - }, save(){ let arr =[] this.dataSource.map(item=>{ diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue index f1ecd09e2..ce1d9efe7 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue @@ -22,12 +22,12 @@ style="margin-bottom: 20px" > - @@ -190,9 +190,6 @@ import ImportFile from '@/components/ImportFileData/index' downloadFile('ota/otaBaCxAqcs/exportTemplate', '车型及功能备案' + '.zip', {}) }, getData(){ - if(this.$route.query.type == 1){ - return - } let otaIdT=localStorage.getItem('otaIdT') if(otaIdT==null){ otaIdT='' @@ -200,10 +197,11 @@ import ImportFile from '@/components/ImportFileData/index' getAction('/ota/otaBaCxAqcs/queryByOtaId',{otaIdT:otaIdT,otaId:localStorage.getItem('otaId')}).then(res=>{ if(res.code == 200){ - this.dataSource[0].info = Number(res.result.bhjz) == 0 ? undefined :Number(res.result.bhjz) - this.dataSource[1].info =Number(res.result.fsxjz)== 0 ? undefined :Number(res.result.fsxjz) - this.dataSource[2].info= Number(res.result.sjsbcs)== 0 ? undefined :Number(res.result.sjsbcs) - this.dataSource[3].info=Number(res.result.xxaqjz)== 0 ? undefined :Number(res.result.xxaqjz) + this.dataSource[0].info = res.result.bhjz + this.dataSource[1].info =res.result.fsxjz + // this.dataSource[2].info= Number(res.result.sjsbcs)== 0 ? undefined :Number(res.result.sjsbcs) + this.dataSource[2].info= res.result.sjsbcs + this.dataSource[3].info= res.result.xxaqjz this.fileList.uploadName = res.result.zmclList this.fileList.certifyingmaterials = this.$t('viewFile') this.$refs.uploadFile.perentHandleFunc(this.fileList.uploadName) @@ -236,32 +234,6 @@ import ImportFile from '@/components/ImportFileData/index' this.$refs.uploadFile.visible = true }, - getList() { - let queryParam = JSON.parse(JSON.stringify(this.queryParam)) - Object.keys(queryParam).forEach(val => { - if (queryParam[val] instanceof Array) { - queryParam[val] = queryParam[val].join(',') - } - }) - let query = { - pageNo: this.pageNo, - pageSize: this.pageSize, - ...queryParam - } - // this.loading = true - getAction(this.url.list, query).then((res) => { - if (res.success) { - if (res.result.current > 1 && res.result.records.length == 0) { - this.pageNo = 1 - this.getList() - return - } - this.loading = false - } else { - this.loading = false - } - }) - }, save(){ let obj={} obj.otaId=localStorage.getItem('otaId'), diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/upgradeRequirements.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/upgradeRequirements.vue index 35c5f5d6c..335b566a8 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/upgradeRequirements.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/upgradeRequirements.vue @@ -205,9 +205,6 @@ export default { downloadFile('ota/otaBaCxZxsjyq/exportTemplate', '车型及功能备案' + '.zip', {}) }, getData(){ - if(this.$route.query.type == 1){ - return - } console.log(localStorage.getItem('otaId')); let otaIdT=localStorage.getItem('otaIdT') if(otaIdT==null){ diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue index afc3b71c8..839ff8c15 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue @@ -305,9 +305,6 @@ import uploadFileOta from '@/components/uploadFileOta/file' downloadFile('ota/otaBaCxKsjxtmccs/exportTemplate', '车型及功能备案' + '.zip', {}) }, getData(){ - if(this.$route.query.type == 1){ - return - } let otaIdT=localStorage.getItem('otaIdT') if(otaIdT==null){ otaIdT='' diff --git a/jero-web/src/views/otamanagement/vehicleinformation/index.vue b/jero-web/src/views/otamanagement/vehicleinformation/index.vue index a96283306..c91ca4f3b 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/index.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/index.vue @@ -179,6 +179,8 @@ export default { }, bussLogList(val) { let query = { + pageNo: this.pageNohistory, + pageSize: this.pageSizehistory, otaId:localStorage.getItem('otaId') } this.loading = true diff --git a/jero-web/src/views/otamanagement/vehicleregistration/index.vue b/jero-web/src/views/otamanagement/vehicleregistration/index.vue index 4a24be7d3..b04be3ace 100644 --- a/jero-web/src/views/otamanagement/vehicleregistration/index.vue +++ b/jero-web/src/views/otamanagement/vehicleregistration/index.vue @@ -383,9 +383,7 @@ export default { localStorage.removeItem('otaIdT') this.$router.push({ path: '/vehicleinformation', - query: { - type:1, - } + query: {} }) }, viewProcessClick(row) { From ca93971890506a124ddb352b39ebe6848a9f41a6 Mon Sep 17 00:00:00 2001 From: yuekuo Date: Sun, 26 Mar 2023 13:19:23 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../otamanagement/upgradeactivity/index.vue | 2 ++ .../auxiliaryupgradehavechanged.vue | 1 + .../informationaboutotherupgradetasks.vue | 1 + .../thetargetvehicleofthisupgrade.vue | 28 +++++++++++++------ .../components/upgradehavechanged.vue | 1 + .../components/upgradeimpactassessment.vue | 1 + .../components/upgradetargetmodel.vue | 1 + .../components/usernotification.vue | 1 + .../components/basicInformation.vue | 13 +++++++-- .../components/beupgradedonline.vue | 2 +- .../components/recordparameters.vue | 2 +- 11 files changed, 41 insertions(+), 12 deletions(-) diff --git a/jero-web/src/views/otamanagement/upgradeactivity/index.vue b/jero-web/src/views/otamanagement/upgradeactivity/index.vue index f163e5aa2..caba67e40 100644 --- a/jero-web/src/views/otamanagement/upgradeactivity/index.vue +++ b/jero-web/src/views/otamanagement/upgradeactivity/index.vue @@ -393,6 +393,8 @@ export default { }, // 创建车型 createvehicleandfunctionrecords() { + localStorage.removeItem('otaId') + localStorage.removeItem('otaIdT') this.$router.push({ path: '/upgradeactivityrecord', query: {} diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/auxiliaryupgradehavechanged.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/auxiliaryupgradehavechanged.vue index 64b7d7140..3b163c85e 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/auxiliaryupgradehavechanged.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/auxiliaryupgradehavechanged.vue @@ -1,4 +1,5 @@