ocr已入库文件导入

This commit is contained in:
caoyang
2022-03-02 14:56:31 +08:00
parent 31d431d2f4
commit cb423beb93
12 changed files with 40 additions and 29 deletions
@@ -228,7 +228,7 @@
},
//下载
actionDown(val){
console.log()
// console.log()
downloadFile('/sys/common/download', val.fileName, { id: val.id })
},
//删除
@@ -35,6 +35,7 @@
import { getAction, postAction, deleteAction } from '@/api/manage'
import search from '@/components/search/index'
import tableData from '@/components/ocrTable/docTable'
import eventBUs from '../../../../common/event'
export default {
name: 'docTable',
components:{
@@ -186,7 +187,7 @@
let nameSuffix=name[name.length-1]
if(nameSuffix.toLowerCase()=='pdf'){
let params = {
attId: this.rows.connect_id,
attId: this.rows.id,
standName: this.rows.title,
standNumber: this.rows.serial_number
}
@@ -206,6 +207,7 @@
postAction(`ocr/OcrRestful/addOcrRecord`, params).then(res => {
if (res.success) {
this.$message.success(res.message)
eventBUs.$emit('searchReset')
} else {
this.$message.warning(res.message)
}