diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js
index b64ce7989..4731695af 100644
--- a/jero-web/src/common/lang/en-us.js
+++ b/jero-web/src/common/lang/en-us.js
@@ -1719,4 +1719,5 @@ module.exports = {
note:'Note: The attachment includes the list of test items and test report. Test standard or technical specification',
format:'It supports doc/docx/pdf format and is less than 50M in size',
cantTransferToYourself:"Can't transfer to yourself",
+ theDataYouInitiate:'The data you selected does not meet the process initiation criteria. Please recheck and initiate',
}
\ No newline at end of file
diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js
index 93b2e98a9..a6a83d627 100644
--- a/jero-web/src/common/lang/zh-cn.js
+++ b/jero-web/src/common/lang/zh-cn.js
@@ -77,7 +77,7 @@ module.exports = {
yes: '是',
not: '否',
have:'有',
-
+
notOnlyRz: '否',
EnterValue: '请输入值',
SavedQuery: '保存的查询',
@@ -1821,4 +1821,5 @@ module.exports = {
note:'注:附件包括测试项目清单、测试报告.测试标准或技术规范',
format:'支持doc/docx/pdf格式,大小50M以内',
cantTransferToYourself:"不能转办给自己",
+ theDataYouInitiate:'您所选的数据,均不符合流程发起条件,请重新检查后发起',
}
\ No newline at end of file
diff --git a/jero-web/src/components/uploadFileOta/file.vue b/jero-web/src/components/uploadFileOta/file.vue
index 510dc1a4c..d61721059 100644
--- a/jero-web/src/components/uploadFileOta/file.vue
+++ b/jero-web/src/components/uploadFileOta/file.vue
@@ -34,7 +34,7 @@
export default {
name: 'file',
- props: ['disableds', 'disabled', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile', 'isMultiple', 'restrictUploads', 'Uploadable'],
+ props: ['disableds', 'disabled','acceptcode', 'thisFileUploadUrl', 'readonly', 'thisFileType', 'isUploadFile', 'isMultiple', 'restrictUploads', 'Uploadable'],
data() {
return {
visible: false,
@@ -88,6 +88,16 @@
// let thisFileType = this.thisFileType.replace(/\s+/g, "");
console.log(file)
this.fileTypeSatus = true
+ //根据格式拦截
+ if(this.acceptcode){
+ let fileNames = file.name.split('.')
+ let fileType = fileNames[fileNames.length - 1].toLocaleLowerCase()
+ let extList = this.acceptcode.split(',')
+ if (!extList.find((item) => item == fileType)) {
+ this.$message.error(this.$t('uploadOnly') + this.acceptcode + this.$t('type'))
+ return false
+ }
+ }
if (this.isMultiple) {
if ((this.myfileList && this.myfileList.length == 1) || this.myfileList && this.myfileList.length > 1) {
this.$message.warning(this.$t('onlyOnefileUploaded'))
diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue
index 1b6efda2d..d3a2a4bd3 100644
--- a/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue
+++ b/jero-web/src/views/otamanagement/vehicleinformation/components/beupgradedonline.vue
@@ -50,13 +50,13 @@
-
{{ $t('note') }}
{{ $t('format') }}