diff --git a/jero-web/src/views/documentManage/ocr/index.vue b/jero-web/src/views/documentManage/ocr/index.vue index 69c453a85..c27e461fe 100644 --- a/jero-web/src/views/documentManage/ocr/index.vue +++ b/jero-web/src/views/documentManage/ocr/index.vue @@ -2,36 +2,36 @@
- -
- - - - - - - - - - - - - - - - {{item.label}} - - - - - - {{$t('query')}} - 清空 - - - - -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -129,6 +129,7 @@ @actionDown="actionDown" @onSelectChange="onSelectChange" @actionDelete="actionDelete" + @detailClick="detailClick" /> @@ -242,7 +243,7 @@ }, url: { tableHeader: 'ocr/ocrRecord/getHeader', //表格头部字段 - seachList: 'document/bussDocumentLibraryEO/queryCondition', //搜索字段 + seachList: 'ocr/ocrRecord/queryCondition', //搜索字段 tableList: 'ocr/ocrRecord/page', //表格数据 // getAddForm: 'document/bussDocumentLibraryEO/getAddForm', // 表单的字段 // addInfo: 'document/bussDocumentLibraryEO/addInfo', //新增 @@ -364,6 +365,7 @@ pageSize:10 }, selectedIds:'', //选择行id + record:{} } }, props:{ @@ -427,7 +429,8 @@ } }, //同步 - actionSynchron(){ + actionSynchron(val){ + this.record=val this.toVisible=true }, //校核 @@ -498,7 +501,16 @@ }, //同步至文档库确认 handleOkTo(){ - this.toVisible=false + let params={ + ...this.record + } + postAction(`ocr/ocrRecord/syncToDocument`,params).then(res=>{ + if(res.success){ + this.$message.success(res.result) + this.toVisible=false + } + }) + }, //同步至文档库取消 handleCancelTo(){ @@ -531,8 +543,8 @@ this.loadData() }, //文件详情跳转 - fileDetail(val){ - console.log('valtext',val) + detailClick(val){ + window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + val.id)) } } }