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 8cf9c9cf3..6d1537b41 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 @@
-
+
-
+
-
+
@@ -103,7 +103,7 @@
{{$t('last')}}
{{$t('next')}}
-
+
diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue
index 66653b1ed..2690dc4a0 100644
--- a/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue
+++ b/jero-web/src/views/otamanagement/vehicleinformation/components/safetyPrecautions.vue
@@ -47,7 +47,7 @@
{{$t('last')}}
{{$t('next')}}
-
+
diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue
index 9d3871bec..5f4f216e0 100644
--- a/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue
+++ b/jero-web/src/views/otamanagement/vehicleinformation/components/upgradedonline.vue
@@ -32,7 +32,7 @@
-
+
@@ -99,7 +99,7 @@
{{$t('next')}}
-
+
diff --git a/jero-web/src/views/otamanagement/vehicleregistration/index.vue b/jero-web/src/views/otamanagement/vehicleregistration/index.vue
index dd41cd958..84613bcec 100644
--- a/jero-web/src/views/otamanagement/vehicleregistration/index.vue
+++ b/jero-web/src/views/otamanagement/vehicleregistration/index.vue
@@ -104,7 +104,7 @@
{{ $t('datamaintenance') }}
-
+