ocr修改
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
</div>
|
||||
|
||||
<doc-table v-if="drawVisible" :drawVisible="drawVisible" :drawTableSorce="drawTableSorce" @visible="docVisible" @exportVisible="exportVisible"></doc-table>
|
||||
<ocr-upload ref="uploadFile1" :disabled="disabled" :accept="accept" :title="title" :listType='listType' @uploadSuccess="uploadSuccess"></ocr-upload>
|
||||
<ocr-upload ref="uploadFile1" :disabled="disabled" :accept="accept" :listType='listType' @uploadSuccess="uploadSuccess"></ocr-upload>
|
||||
</a-card>
|
||||
</div>
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
accept:'application/pdf',
|
||||
today:'',
|
||||
timer:'',
|
||||
title:this.$t('UploadFile'),
|
||||
uploadTitle:this.$t('UploadFile'),
|
||||
listType:'text',
|
||||
token:Vue.ls.get(ACCESS_TOKEN),
|
||||
websock: null,
|
||||
@@ -355,13 +355,18 @@
|
||||
},
|
||||
//上传文件
|
||||
uploadSuccess(data) {
|
||||
console.log('data11',data)
|
||||
let attIdList = []
|
||||
let attNameList = []
|
||||
if(data && data.length > 0){
|
||||
data.forEach(item => {
|
||||
attIdList.push(item.id || data.name)
|
||||
attNameList.push(itme.fileName)
|
||||
})
|
||||
this.form.attId = attIdList.join(',')
|
||||
this.form.fileName=attNameList.join(',')
|
||||
}
|
||||
this.$refs.uploadFile1.visible=false
|
||||
},
|
||||
fileUpload(){
|
||||
|
||||
@@ -411,6 +416,7 @@
|
||||
addFormClick() {
|
||||
this.fileVisible = false
|
||||
},
|
||||
|
||||
},
|
||||
beforeDestroy(){
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user