拆分入库文本修改

This commit is contained in:
caoyang
2022-06-10 15:40:25 +08:00
parent 5087161562
commit d14a42ebdf
3 changed files with 39 additions and 42 deletions
+3 -3
View File
@@ -18,9 +18,9 @@
<span v-if="ol.text==$t('SyncLibrary')" v-has="'ocr:ocrRecord:syncToDocument'">
{{record.resultContent=='转换成功'&&record.syncState=='未同步'&&record.fileSource=='1'?ol.text:''}}
</span>
<span v-if="ol.text==$t('check')">
{{record.resultContent=='转换成功'&&record.syncState=='未同步'?ol.text:''}}
</span>
<!-- <span v-if="ol.text==$t('check')">-->
<!-- {{record.resultContent=='转换成功'&&record.syncState=='未同步'?ol.text:''}}-->
<!-- </span>-->
<span v-if="ol.text==$t('download') && record.createBy == userData.username"
v-has="'ocr:ocrRestful:downFile'">
{{record.resultContent=='转换成功'?ol.text:''}}
+34 -38
View File
@@ -69,7 +69,6 @@
@actionSynchron="actionSynchron"
:url="url"
showAction
@actionCheck="actionCheck"
@actionDown="actionDown"
@onSelectChange="onSelectChange"
@actionDelete="actionDelete"
@@ -114,10 +113,10 @@
text: this.$t('SyncLibrary'),
ClickEvent: 'actionSynchron'
}, //同步至文档库
{
text: this.$t('check'),
ClickEvent: 'actionCheck'
}, //校核
// {
// text: this.$t('check'),
// ClickEvent: 'actionCheck'
// }, //校核
{
text: this.$t('download'),
ClickEvent: 'actionDown'
@@ -309,39 +308,36 @@
}
},
//校核
actionCheck(val){
// this.checkVisible=true
this.loading=true
axios({
url: '/jero-boot/ocr/ocrCheck/verifyCheckFlag',
method: 'get',
params: {
id:val.id
},
headers: {
'X-Access-Token':this.token
}
})
.then( (res) => {
if (res.data.success) {
let newUrl = this.$router.resolve({
path: '/ocr/ocrSplit',
query:{
fileName: val.docRealName,
id:val.id
}
})
window.open(newUrl.href, '_blank')
}else{
this.$message.error(res.data.message)
}
}).finally(()=>{
this.loading=false
})
},
// actionCheck(val){
// // this.checkVisible=true
// this.loading=true
// axios({
// url: '/jero-boot/ocr/ocrCheck/verifyCheckFlag',
// method: 'get',
// params: {
// id:val.id
// },
// headers: {
// 'X-Access-Token':this.token
// }
// })
// .then( (res) => {
// if (res.data.success) {
// let newUrl = this.$router.resolve({
// path: '/ocr/ocrSplit',
// query:{
// fileName: val.docRealName,
// id:val.id
// }
// })
// window.open(newUrl.href, '_blank')
// }else{
// this.$message.error(res.data.message)
// }
// }).finally(()=>{
// this.loading=false
// })
// },
//下载
actionDown(val){
let fileNames=val.docRealName.split('_')
@@ -259,10 +259,11 @@
attId: file.id,
title: file.title,
fileName:file.file_name,
titleEn:file.title_en,
serialNumber: file.serial_number,
connectId: file.connect_id,
fileGroup: this.fileGroup,
fileType:file.text_info
fileType:file.text_info_id
}
if(!this.submitFlag){