ocr下载修改

This commit is contained in:
caoyang
2022-03-24 17:50:44 +08:00
parent bf33cfedf5
commit daf079fe0b
8 changed files with 100 additions and 32 deletions
@@ -5,15 +5,15 @@
<search :flag="'2'" :url="url"/>
</div>
<div class="table-operator">
<div class="operator-text" @click="handleUpload">
<div class="operator-text" @click="handleUpload" v-has="'ocr:ocrRestful:addOcrRecord'">
<a-icon type="plus" />
{{ $t('upload1') }}
</div>
<div class="operator-text" @click="handleFileExport">
<div class="operator-text" @click="handleFileExport" v-has="'document:ocrPageInfo'">
<a-icon type="export" />
{{ $t('RetrieveFiles') }}
</div>
<div class="operator-text" @click="handleDel">
<div class="operator-text" @click="handleDel" v-has="'ocr:ocrRecord:deleteBatch'">
<a-icon type="delete" />
{{ $t('BatchDelete') }}
</div>
@@ -311,8 +311,11 @@
},
//下载
actionDown(val){
let fileName=val.docRealName.split('_')
fileName=fileName[fileName.length-1]
let fileNames=val.docRealName.split('_')
let name = fileNames.shift()
let fileName=fileNames.join('_')
// let fileName=val.fileName.split('.')[0]
downloadFile('ocr/OcrRestful/downFile', fileName, { fileName: val.docRealName })
},
//删除