ocr搜索
This commit is contained in:
@@ -2,36 +2,36 @@
|
|||||||
<div class="ocr">
|
<div class="ocr">
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
<!-- <search :flag="'1'" :url="url"/>-->
|
<search :flag="'2'" :url="url"/>
|
||||||
<div class="ocr-search-header">
|
<!-- <div class="ocr-search-header">-->
|
||||||
<a-form layout="inline" @keyup.enter.native="searchQuery(queryParams)">
|
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery(queryParams)">-->
|
||||||
<a-row :gutter="44">
|
<!-- <a-row :gutter="44">-->
|
||||||
<a-col :md="6" :sm="12">
|
<!-- <a-col :md="6" :sm="12">-->
|
||||||
<a-form-item :label="'编号'">
|
<!-- <a-form-item :label="'编号'">-->
|
||||||
<j-input :placeholder="'请输入编号'" v-model="queryParams.standNumber"></j-input>
|
<!-- <j-input :placeholder="'请输入编号'" v-model="queryParams.standNumber"></j-input>-->
|
||||||
</a-form-item>
|
<!-- </a-form-item>-->
|
||||||
</a-col>
|
<!-- </a-col>-->
|
||||||
<a-col :md="6" :sm="12">
|
<!-- <a-col :md="6" :sm="12">-->
|
||||||
<a-form-item :label="'标题'">
|
<!-- <a-form-item :label="'标题'">-->
|
||||||
<j-input :placeholder="'请输入标题'" v-model="queryParams.standName"></j-input>
|
<!-- <j-input :placeholder="'请输入标题'" v-model="queryParams.standName"></j-input>-->
|
||||||
</a-form-item>
|
<!-- </a-form-item>-->
|
||||||
</a-col>
|
<!-- </a-col>-->
|
||||||
<a-col :md="6" :sm="12">
|
<!-- <a-col :md="6" :sm="12">-->
|
||||||
<a-form-item :label="'转换结果'">
|
<!-- <a-form-item :label="'转换结果'">-->
|
||||||
<a-select v-model="queryParams.transformation" :placeholder="$t('pleaseSelect')">
|
<!-- <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-option :value="item.value" v-for="(item) in transOptions">{{item.label}}</a-select-option>-->
|
||||||
</a-select>
|
<!-- </a-select>-->
|
||||||
</a-form-item>
|
<!-- </a-form-item>-->
|
||||||
</a-col>
|
<!-- </a-col>-->
|
||||||
<a-col :md="6" :sm="8">
|
<!-- <a-col :md="6" :sm="8">-->
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<!-- <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 type="primary" @click="searchQuery" icon="search">{{$t('query')}}</a-button>-->
|
||||||
<a-button @click="searchReset" icon="reload" style="margin-left: 8px">清空</a-button>
|
<!-- <a-button @click="searchReset" icon="reload" style="margin-left: 8px">清空</a-button>-->
|
||||||
</span>
|
<!-- </span>-->
|
||||||
</a-col>
|
<!-- </a-col>-->
|
||||||
</a-row>
|
<!-- </a-row>-->
|
||||||
</a-form>
|
<!-- </a-form>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text" @click="handleUpload">
|
<div class="operator-text" @click="handleUpload">
|
||||||
@@ -129,6 +129,7 @@
|
|||||||
@actionDown="actionDown"
|
@actionDown="actionDown"
|
||||||
@onSelectChange="onSelectChange"
|
@onSelectChange="onSelectChange"
|
||||||
@actionDelete="actionDelete"
|
@actionDelete="actionDelete"
|
||||||
|
@detailClick="detailClick"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- <a-table bordered :data-source="dataSource" :columns="columns" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" class="tag-con-table" :pagination="false" >-->
|
<!-- <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: {
|
url: {
|
||||||
tableHeader: 'ocr/ocrRecord/getHeader', //表格头部字段
|
tableHeader: 'ocr/ocrRecord/getHeader', //表格头部字段
|
||||||
seachList: 'document/bussDocumentLibraryEO/queryCondition', //搜索字段
|
seachList: 'ocr/ocrRecord/queryCondition', //搜索字段
|
||||||
tableList: 'ocr/ocrRecord/page', //表格数据
|
tableList: 'ocr/ocrRecord/page', //表格数据
|
||||||
// getAddForm: 'document/bussDocumentLibraryEO/getAddForm', // 表单的字段
|
// getAddForm: 'document/bussDocumentLibraryEO/getAddForm', // 表单的字段
|
||||||
// addInfo: 'document/bussDocumentLibraryEO/addInfo', //新增
|
// addInfo: 'document/bussDocumentLibraryEO/addInfo', //新增
|
||||||
@@ -364,6 +365,7 @@
|
|||||||
pageSize:10
|
pageSize:10
|
||||||
},
|
},
|
||||||
selectedIds:'', //选择行id
|
selectedIds:'', //选择行id
|
||||||
|
record:{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props:{
|
props:{
|
||||||
@@ -427,7 +429,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
//同步
|
//同步
|
||||||
actionSynchron(){
|
actionSynchron(val){
|
||||||
|
this.record=val
|
||||||
this.toVisible=true
|
this.toVisible=true
|
||||||
},
|
},
|
||||||
//校核
|
//校核
|
||||||
@@ -498,7 +501,16 @@
|
|||||||
},
|
},
|
||||||
//同步至文档库确认
|
//同步至文档库确认
|
||||||
handleOkTo(){
|
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(){
|
handleCancelTo(){
|
||||||
@@ -531,8 +543,8 @@
|
|||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
//文件详情跳转
|
//文件详情跳转
|
||||||
fileDetail(val){
|
detailClick(val){
|
||||||
console.log('valtext',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