ocr校核修改
This commit is contained in:
@@ -28,7 +28,12 @@
|
||||
@cancel="handleErrCancel"
|
||||
:footer="false"
|
||||
>
|
||||
<span class="err-value">{{errValue}}</span>
|
||||
<div class="err-value">
|
||||
<p class="err-item" v-for="item in errValues">
|
||||
{{item}}
|
||||
</p>
|
||||
</div>
|
||||
<!-- <span class="err-value">{{errValue}}</span>-->
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
@@ -55,7 +60,8 @@
|
||||
},
|
||||
cut:'',
|
||||
preErrVisible:false,
|
||||
errValue:''
|
||||
errValue:'',
|
||||
errValues:[]
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
@@ -122,7 +128,9 @@
|
||||
this.$message.error(val.response.message);
|
||||
}else{
|
||||
this.preErrVisible=true
|
||||
this.errValue=val.response.message
|
||||
let errValue=val.response.message
|
||||
this.errValues=errValue.split('</br>')
|
||||
// this.errValue = errValue
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
},
|
||||
methods:{
|
||||
beforeUpload(file,fileList) {
|
||||
console.log('file',this.accept,file,fileList,this.myfileList)
|
||||
// console.log('file',this.accept,file,fileList,this.myfileList)
|
||||
this.fileTypeSatus=false
|
||||
if(this.myfileList&&this.myfileList.length>=1){
|
||||
// console.log()
|
||||
@@ -93,7 +93,7 @@
|
||||
info.fileList.splice(index,1)
|
||||
}
|
||||
})
|
||||
console.log('fileStatue',this.fileTypeSatus)
|
||||
// console.log('fileStatue',this.fileTypeSatus)
|
||||
if (this.fileTypeSatus) {
|
||||
if (file.size > 100000000) {
|
||||
this.$message.error(this.errorMessage)
|
||||
@@ -152,7 +152,7 @@
|
||||
if(this.myfileList.length > 0){
|
||||
this.$emit('uploadSuccess', this.fileList)
|
||||
this.$message.destroy()
|
||||
this.$message.success(`${info.file.name}`+this.$t('fileUploadFailed'));
|
||||
this.$message.success(`${info.file.name}`+this.$t('uploadSuccessful'));
|
||||
// console.log('fileList111',file,this.fileList,fileList1)
|
||||
}
|
||||
} else if (status === 'uploading') {
|
||||
|
||||
Reference in New Issue
Block a user