Merge remote-tracking branch 'origin/dev_2nd_LCYH' into dev_2nd_LCYH

# Conflicts:
#	jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue
This commit is contained in:
zyx.net
2023-03-27 15:14:47 +08:00
8 changed files with 226 additions and 197 deletions
+9 -7
View File
@@ -76,6 +76,8 @@ module.exports = {
numericalValue: '数值', numericalValue: '数值',
yes: '是', yes: '是',
not: '否', not: '否',
have:'有',
notOnlyRz: '否', notOnlyRz: '否',
EnterValue: '请输入值', EnterValue: '请输入值',
SavedQuery: '保存的查询', SavedQuery: '保存的查询',
@@ -1595,11 +1597,11 @@ module.exports = {
electroniccontrollertype:'电子控制器型号', electroniccontrollertype:'电子控制器型号',
hardwareversioninformation:'硬件版本信息', hardwareversioninformation:'硬件版本信息',
initialsoftwareversionnumber:'初始软件版本号', initialsoftwareversionnumber:'初始软件版本号',
inflammatorydata:'初始软件包的完整性验证数据', inflammatorydata:'初始软件包的完整性验证数据(需统一哈希算法并说明,例如SM3:d192e819d6990624f40e3585106ee134)',
environmentalprotection:'升级是否影响整车安全啊、节能、环保、防盗等性能', environmentalprotection:'升级是否影响整车安全、节能、环保、防盗等性能',
operatingsystemtype:'操作系统类型', operatingsystemtype:'操作系统类型',
operatingsystemmanufacturer:'操作系统生产企业', operatingsystemmanufacturer:'操作系统生产企业',
operatingsystemversion:'操作系统版本号', operatingsystemversion:'软件版本号',
addcontroller:'添加控制器', addcontroller:'添加控制器',
addsystem:'添加系统', addsystem:'添加系统',
functionname:'功能名称', functionname:'功能名称',
@@ -1635,7 +1637,7 @@ module.exports = {
Taskconfirmationresult:'任务确认结果', Taskconfirmationresult:'任务确认结果',
Compliancetaskhandling:'符合性任务办理', Compliancetaskhandling:'符合性任务办理',
resultofhandling:'处理结果', resultofhandling:'处理结果',
networksecurityrequirements:'网络安全要求', networksecurityrequirements:'激光雷达',
upgradefunctionrequirements:'升级功能要求', upgradefunctionrequirements:'升级功能要求',
usernotificationrequirement:'用户告知要求', usernotificationrequirement:'用户告知要求',
ineffectiveupgrades:'应保护升级包的真实性和完整性,以合理地防止其受到损害,并合理地防止无效升级', ineffectiveupgrades:'应保护升级包的真实性和完整性,以合理地防止其受到损害,并合理地防止无效升级',
@@ -1666,7 +1668,7 @@ module.exports = {
'(a)告知车辆用户车辆升级的结果(成功或失败);\n' + '(a)告知车辆用户车辆升级的结果(成功或失败);\n' +
'\n' + '\n' +
'(b)若升级成功,告知车辆用户已实施的变更,用户手册(如果适用)的任何相关更新。', '(b)若升级成功,告知车辆用户已实施的变更,用户手册(如果适用)的任何相关更新。',
upgradepacketprotectionmeasures:'升级包保护措施', upgradepacketprotectionmeasures:'软件版本(集)识别与存储',
otaupgradedsecuritymeasuresforvehicles:'车辆OTA升级安全措施', otaupgradedsecuritymeasuresforvehicles:'车辆OTA升级安全措施',
authenticityandintegrityprotectionmechanism:'真实性、完整性保护机制(可多选)', authenticityandintegrityprotectionmechanism:'真实性、完整性保护机制(可多选)',
failsafmechanism:'防失效保护机制(可多选)', failsafmechanism:'防失效保护机制(可多选)',
@@ -1696,7 +1698,7 @@ module.exports = {
vehiclecommunicationsystem:'车载通信系统', vehiclecommunicationsystem:'车载通信系统',
driversurveillancecamera:'驾驶员监控摄像头', driversurveillancecamera:'驾驶员监控摄像头',
drivermonitoringinfraredsensor:'驾驶员监控红外传感器', drivermonitoringinfraredsensor:'驾驶员监控红外传感器',
vehiclesatellitepositioningequipment:'车载卫星定位设备', vehiclesatellitepositioningequipment:'车载卫星定位设备(接收卫星信号及辅助定位信号的装置,PPP/GNSS/RTK)',
inertialnavigationsystem:'惯性导航系统', inertialnavigationsystem:'惯性导航系统',
wheelspeedmeter:'轮速计', wheelspeedmeter:'轮速计',
highprecisionmap:'高精度地图', highprecisionmap:'高精度地图',
@@ -1743,7 +1745,7 @@ module.exports = {
afterthesoftwareversionupgraded:'软件版本号升级后', afterthesoftwareversionupgraded:'软件版本号升级后',
beforetheOSversionupgraded:'操作系统版本号升级前', beforetheOSversionupgraded:'操作系统版本号升级前',
aftertheoperatingsystemversionupgraded:'操作系统版本号升级后', aftertheoperatingsystemversionupgraded:'操作系统版本号升级后',
initialpackageforintegrityinflammatorydata:'初始软件包的完整性验证数据', initialpackageforintegrityinflammatorydata:'初始软件包的完整性验证数据(需统一哈希算法并说明,例如SM3:d192e819d6990624f40e3585106ee134)',
upgradepackageintegrityverificationdata:'升级包完整性验证数据', upgradepackageintegrityverificationdata:'升级包完整性验证数据',
upgradepackagesize:'升级包大小', upgradepackagesize:'升级包大小',
differentialupgradeornot:'是否差分升级', differentialupgradeornot:'是否差分升级',
@@ -9,7 +9,7 @@
name="file" name="file"
:file-list="myfileList" :file-list="myfileList"
:multiple="true" :multiple="true"
:action="uploadAction+'?state='+2+'&cut='+cut" :action="actionUrl"
:headers="headers" :headers="headers"
@preview="preview" @preview="preview"
:before-upload="beforeUpload" :before-upload="beforeUpload"
@@ -34,7 +34,7 @@ import { mapGetters } from 'vuex'
export default { export default {
name: 'file', name: 'file',
props: ['disableds', 'disabled', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile','detailDate','accept'], props: ['disableds', 'disabled', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile', 'detailDate', 'accept', 'isParameter'],
data() { data() {
return { return {
visible: false, visible: false,
@@ -50,6 +50,15 @@ export default {
cut: '' cut: ''
} }
}, },
computed: {
actionUrl() {
if (this.isParameter) {
return this.uploadAction + '?state=' + 3 + '&cut=' + this.cut
} else {
return this.uploadAction + '?state=' + 2 + '&cut=' + this.cut
}
}
},
created() { created() {
const token = Vue.ls.get(ACCESS_TOKEN) const token = Vue.ls.get(ACCESS_TOKEN)
this.headers = { 'X-Access-Token': token } this.headers = { 'X-Access-Token': token }
@@ -10,6 +10,7 @@
{{$t('templateDownload')}} {{$t('templateDownload')}}
</div> </div>
</div> </div>
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-form-model class="formAdd" ref="ruleForm"> <a-form-model class="formAdd" ref="ruleForm">
<a-row :gutter="24"> <a-row :gutter="24">
@@ -58,7 +59,7 @@
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text-add"> <div class="box-title-text-add">
<div class="title-text-add"> <div class="title-text-add plus">
<span class="title-text-text" :title="$t('Modelandfunctionrecord')">{{$t('Modelandfunctionrecord')}}</span> <span class="title-text-text" :title="$t('Modelandfunctionrecord')">{{$t('Modelandfunctionrecord')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="dutyTerritory"> <a-form-model-item class="itemModel" prop="dutyTerritory">
@@ -288,9 +289,9 @@ import ImportFile from '@/components/ImportFileData/index'
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
margin-right: 16px; margin-right: 16px;
overflow: hidden; // overflow: hidden;
text-overflow: ellipsis; // text-overflow: ellipsis;
white-space: nowrap; // white-space: nowrap;
height: 42px; height: 42px;
line-height: 42px; line-height: 42px;
margin-top: 3px; margin-top: 3px;
@@ -336,4 +337,8 @@ import ImportFile from '@/components/ImportFileData/index'
.bootom-button{ .bootom-button{
text-align: center!important; text-align: center!important;
} }
.plus{
margin-top: 5px;
line-height: 1.4 !important;
}
</style> </style>
@@ -228,10 +228,16 @@ export default {
} }
}) })
}, },
save(){
},
next(){ next(){
this.save()
this.$emit('recordparametersdown') this.$emit('recordparametersdown')
}, },
last(){ last(){
this.save()
this.$emit('recordparametersup') this.$emit('recordparametersup')
}, },
dateChange(item) { dateChange(item) {
@@ -103,7 +103,7 @@
<a-button type="primary" style='width: 73px;margin-right: 50px' @click='last'>{{$t('last')}}</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> <a-button type="primary" style='width: 73px' @click='next'>{{$t('next')}}</a-button>
</div> </div>
<uploadFile ref="uploadFile" :acceptcode="'doc,docx,pdf'" @uploadSuccess="uploadSuccess"></uploadFile> <uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"></uploadFile>
</div> </div>
</template> </template>
@@ -113,15 +113,15 @@ export default {
} }
.title-text-add { .title-text-add {
width: 114px; width: 200px;
text-align: right; text-align: right;
display: inline-block; display: inline-block;
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
margin-right: 16px; margin-right: 16px;
overflow: hidden; // overflow: hidden;
text-overflow: ellipsis; // text-overflow: ellipsis;
white-space: nowrap; // white-space: nowrap;
height: 42px; height: 42px;
line-height: 42px; line-height: 42px;
margin-top: 3px; margin-top: 3px;
@@ -133,9 +133,9 @@ export default {
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
margin-right: 16px; margin-right: 16px;
overflow: hidden; // overflow: hidden;
text-overflow: ellipsis; // text-overflow: ellipsis;
white-space: nowrap; // white-space: nowrap;
height: 42px; height: 42px;
line-height: 42px; line-height: 42px;
margin-top: 3px; margin-top: 3px;
@@ -95,7 +95,7 @@
<div style='width: 300px'> <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='content-text' style='background: #f3f6f6;line-height: 50px;text-align: center;color: #191E29;font-weight: bold'>{{$t('fillincontent')}}</span>
<span class='radio-text'> <span class='radio-text'>
<a-radio-group style='margin-left: 40px;' v-model="query.jgld"> <a-radio-group style='margin-left: 40px;' v-model="query.jgldPz">
<a-radio :value="1"> {{ $t('yes') }} </a-radio> <a-radio :value="1"> {{ $t('yes') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio> <a-radio :value="2"> {{ $t('not') }} </a-radio>
</a-radio-group> </a-radio-group>
@@ -239,8 +239,8 @@
<!-- 可升级--> <!-- 可升级-->
<span slot="systemclass" slot-scope="text,record" > <span slot="systemclass" 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="1"> {{ $t('have') }} </a-radio>
<a-radio :value="2"> {{ $t('not') }} </a-radio> <a-radio :value="2"> {{ $t('nothing') }} </a-radio>
</a-radio-group> </a-radio-group>
</span> </span>
<span slot="controllername" slot-scope="text,record"> <span slot="controllername" slot-scope="text,record">
@@ -263,7 +263,7 @@
</span> </span>
<!-- 操作列--> <!-- 操作列-->
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
<a class="text-operation" @click="addlineAtBot" style='width: 73px;margin-right: 50px'>{{$t('addcontroller')}}</a> <a class="text-operation" style='width: 73px;margin-right: 50px' @click="addlineAtBot">{{$t('addcontroller')}}</a>
<a class="text-operation" v-if="dataSourceList.length >1" @click="deleteData(record)" >{{$t('delete')}}</a> <a class="text-operation" v-if="dataSourceList.length >1" @click="deleteData(record)" >{{$t('delete')}}</a>
</span> </span>
</a-table> </a-table>
@@ -977,11 +977,14 @@ export default {
return obj; return obj;
}, },
addlineAtBot(){ addlineAtBot(){
let obj={bjmc:'车端OTA升级功能模块'} let obj={}
obj.bjmc='车端OTA升级功能模块'
this.dataSourceList.push(obj) this.dataSourceList.push(obj)
this.$forceUpdate()
}, },
deleteData(record){ deleteData(record){
this.dataSourceList.splice(this.dataSourceList.indexOf(record),1) this.dataSourceList.splice(this.dataSourceList.indexOf(record),1)
this.$forceUpdate()
}, },
} }
} }
@@ -1142,7 +1145,7 @@ button{
line-height: 50px; line-height: 50px;
} }
.text-box-three{ .text-box-three{
isplay: inline-block; display: inline-block;
float: left; float: left;
border: #e8e8e8 solid 1px; border: #e8e8e8 solid 1px;
width: 100%; width: 100%;
@@ -1150,7 +1153,7 @@ button{
line-height: 250px; line-height: 250px;
} }
.text-box-four{ .text-box-four{
isplay: inline-block; display: inline-block;
float: left; float: left;
border: #e8e8e8 solid 1px; border: #e8e8e8 solid 1px;
width: 100%; width: 100%;
@@ -1158,15 +1161,18 @@ button{
line-height: 600px; line-height: 600px;
} }
.four-text-text{ .four-text-text{
isplay: inline-block; display: inline-block;
float: left; float: left;
border: #e8e8e8 solid 1px; border: #e8e8e8 solid 1px;
width: 50%; width: 50%;
height: 600px; height: 600px;
line-height: 600px; line-height: 20px;
display: flex;
justify-content: center;
align-items: center;
} }
.four-text{ .four-text{
isplay: inline-block; display: inline-block;
float: left; float: left;
border: #e8e8e8 solid 1px; border: #e8e8e8 solid 1px;
width: 50%; width: 50%;
@@ -1174,7 +1180,7 @@ button{
line-height: 150px; line-height: 150px;
} }
.text-box-five{ .text-box-five{
isplay: inline-block; display: inline-block;
float: left; float: left;
border: #e8e8e8 solid 1px; border: #e8e8e8 solid 1px;
width: 100%; width: 100%;
@@ -1182,9 +1188,10 @@ button{
line-height: 100px; line-height: 100px;
} }
span{ span{
overflow: hidden; /*超出部分隐藏*/ /* overflow: hidden; /*超出部分隐藏*/
text-overflow: ellipsis; /*超出部分省略号表示*/ /* text-overflow: ellipsis; 超出部分省略号表示 */
white-space: nowrap; white-space: wrap;
/* word-wrap: normal; */
} }
.item-input{ .item-input{
margin-top: 9px; margin-top: 9px;
@@ -317,7 +317,7 @@
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button> <a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
</div> </div>
</a-drawer> </a-drawer>
<uploadFileChange ref="uploadFile" @uploadSuccess="uploadSuccess"></uploadFileChange> <uploadFileChange :isParameter="true" ref="uploadFile" @uploadSuccess="uploadSuccess"></uploadFileChange>
</div> </div>
</template> </template>