ocr识别修改

This commit is contained in:
caoyang
2022-03-02 14:06:09 +08:00
parent 3111ffec48
commit b4627a9a31
12 changed files with 835 additions and 91 deletions
+20 -24
View File
@@ -22,7 +22,7 @@
<!-- 上传弹框-->
<a-modal
class="show-content"
title="上传文件"
:title="$t('UploadFile')"
:visible="fileVisible"
:confirm-loading="confirmLoading"
@ok="modalOk"
@@ -41,26 +41,26 @@
<!-- 同步弹框-->
<a-modal
class="show-content"
title="同步至文档库"
:title="$t('SyncLibrary')"
v-if="toVisible"
:visible="toVisible"
:confirm-loading="confirmLoading"
@ok="handleOkTo"
@cancel="handleCancelTo"
>
<p style="text-align: center">该文件未进行校验,确定要同步至文档库?</p>
<p style="text-align: center">{{$t('sureSynchronize')}}</p>
</a-modal>
<!-- 校核弹框-->
<a-modal
class="show-content"
title="校核"
:title="$t('check')"
v-if="checkVisible"
:visible="checkVisible"
:confirm-loading="confirmLoading"
@ok="handleOkCheck"
@cancel="handleCancelCheck"
>
<p style="text-align: center">确定对该文件未进行校验?</p>
<p style="text-align: center">{{$t('sureVerified')}}</p>
</a-modal>
<div class="table-detail">
<tableData
@@ -86,9 +86,9 @@
<script>
import { axios } from '@/utils/request'
import { getAction, postAction, deleteAction } from '@/api/manage'
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
import search from '@/components/search/index'
import tableData from '@/components/tableDate/index'
import tableData from '@/components/ocrTable/index'
import addForm from '@/components/ocrAddForm/index'
import docTable from './modules/docTable'
import ocrUpload from '@/components/ocrUpload/index'
@@ -108,21 +108,21 @@
return{
OperationList: [
{
text: '同步至文档库',
text: this.$t('SyncLibrary'),
ClickEvent: 'actionSynchron'
},
}, //同步至文档库
{
text: '校核',
text: this.$t('check'),
ClickEvent: 'actionCheck'
},
}, //校核
{
text: '下载',
text: this.$t('download'),
ClickEvent: 'actionDown'
},
}, //下载
{
text: '删除',
text: this.$t('delete'),
ClickEvent: 'actionDelete'
}
} //删除
],
pageSize:10,
labelCol: { span:4 },
@@ -189,7 +189,7 @@
}
if(this.selectedIds){
this.$confirm({
title: '确认要批量删除?',
title: this.$t('ConfirmBatchDeletion'),
content: '',
onOk:
async () => {
@@ -205,7 +205,7 @@
onCancel() {},
});
}else{
this.$message.warning('请选择至少一条数据!');
this.$message.warning(this.$t('selectLeastOne'));
}
},
//同步
@@ -228,11 +228,8 @@
},
//下载
actionDown(val){
if(val.resultContent=='转换成功'){
}else{
this.$message.warning('未转换成功或已同步至文档库')
}
console.log()
downloadFile('/sys/common/download', val.fileName, { id: val.id })
},
//删除
actionDelete(record){
@@ -240,7 +237,7 @@
id:record.id
}
this.$confirm({
title: '确认删除?',
title: this.$t('ConfirmDelete'),
content: '',
onOk:
async () => {
@@ -262,7 +259,6 @@
},
onSelectChange(selectedRowKeys,selectedRows){
this.selectedIds=selectedRowKeys.join(',')
// console.log('seIds',this.selectedIds)
},
//上传确定按钮