ocr搜索
This commit is contained in:
@@ -2,36 +2,36 @@
|
||||
<div class="ocr">
|
||||
<a-card :bordered="false">
|
||||
<div class="table-page-search-wrapper">
|
||||
<!-- <search :flag="'1'" :url="url"/>-->
|
||||
<div class="ocr-search-header">
|
||||
<a-form layout="inline" @keyup.enter.native="searchQuery(queryParams)">
|
||||
<a-row :gutter="44">
|
||||
<a-col :md="6" :sm="12">
|
||||
<a-form-item :label="'编号'">
|
||||
<j-input :placeholder="'请输入编号'" v-model="queryParams.standNumber"></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :md="6" :sm="12">
|
||||
<a-form-item :label="'标题'">
|
||||
<j-input :placeholder="'请输入标题'" v-model="queryParams.standName"></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :md="6" :sm="12">
|
||||
<a-form-item :label="'转换结果'">
|
||||
<a-select v-model="queryParams.transformation" :placeholder="$t('pleaseSelect')">
|
||||
<a-select-option :value="item.value" v-for="(item) in transOptions">{{item.label}}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :md="6" :sm="8">
|
||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||
<a-button type="primary" @click="searchQuery" icon="search">{{$t('query')}}</a-button>
|
||||
<a-button @click="searchReset" icon="reload" style="margin-left: 8px">清空</a-button>
|
||||
</span>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<search :flag="'2'" :url="url"/>
|
||||
<!-- <div class="ocr-search-header">-->
|
||||
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery(queryParams)">-->
|
||||
<!-- <a-row :gutter="44">-->
|
||||
<!-- <a-col :md="6" :sm="12">-->
|
||||
<!-- <a-form-item :label="'编号'">-->
|
||||
<!-- <j-input :placeholder="'请输入编号'" v-model="queryParams.standNumber"></j-input>-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- <a-col :md="6" :sm="12">-->
|
||||
<!-- <a-form-item :label="'标题'">-->
|
||||
<!-- <j-input :placeholder="'请输入标题'" v-model="queryParams.standName"></j-input>-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- <a-col :md="6" :sm="12">-->
|
||||
<!-- <a-form-item :label="'转换结果'">-->
|
||||
<!-- <a-select v-model="queryParams.transformation" :placeholder="$t('pleaseSelect')">-->
|
||||
<!-- <a-select-option :value="item.value" v-for="(item) in transOptions">{{item.label}}</a-select-option>-->
|
||||
<!-- </a-select>-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- <a-col :md="6" :sm="8">-->
|
||||
<!-- <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">-->
|
||||
<!-- <a-button type="primary" @click="searchQuery" icon="search">{{$t('query')}}</a-button>-->
|
||||
<!-- <a-button @click="searchReset" icon="reload" style="margin-left: 8px">清空</a-button>-->
|
||||
<!-- </span>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- </a-row>-->
|
||||
<!-- </a-form>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div class="operator-text" @click="handleUpload">
|
||||
@@ -129,6 +129,7 @@
|
||||
@actionDown="actionDown"
|
||||
@onSelectChange="onSelectChange"
|
||||
@actionDelete="actionDelete"
|
||||
@detailClick="detailClick"
|
||||
/>
|
||||
|
||||
<!-- <a-table bordered :data-source="dataSource" :columns="columns" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" class="tag-con-table" :pagination="false" >-->
|
||||
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user