ocr已入库文件导入
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user