标签管理新增

This commit is contained in:
caoyang
2022-03-04 18:11:34 +08:00
parent 17dacd9107
commit 0b231aaee0
17 changed files with 258 additions and 236 deletions
@@ -195,10 +195,10 @@
async () => {
deleteAction(`ocr/ocrRecord/deleteBatch`, param).then(res => {
if (res.success) {
this.$message.success(res.result)
this.$message.success(this.$t('OperationSuccessful'))
eventBUs.$emit('searchReset')
}else{
this.$message.warning(res.message)
this.$message.warning(this.$t('operationFailed'))
}
})
},
@@ -244,10 +244,10 @@
async () => {
deleteAction(`ocr/ocrRecord/delete`,params).then(res=> {
if(res.success){
this.$message.success(res.result)
this.$message.success(this.$t('OperationSuccessful'))
eventBUs.$emit('searchReset')
}else{
this.$message.warning(res.message)
this.$message.warning(this.$t('operationFailed'))
}
})
},
@@ -291,10 +291,10 @@
postAction(`ocr/ocrRecord/syncToDocument`,params).then(res=>{
if(res.success){
eventBUs.$emit('searchReset')
this.$message.success(res.message)
this.$message.success(this.$t('OperationSuccessful'))
this.toVisible=false
}else{
this.$message.warning(res.message)
this.$message.warning(this.$t('operationFailed'))
}
})
},
@@ -1,11 +0,0 @@
<template>
</template>
<script>
export default {
name: 'ocraddForm',
}
</script>
<style lang="less" scoped>
</style>
@@ -162,7 +162,7 @@
},
onSelectChange(rowKeys,rows){
if(rowKeys.length>1){
this.$message.warning('只能选择一条数据')
this.$message.warning(this.$t('OnlyOneSelected'))
}else{
this.rowId=rowKeys[0]
this.rows=rows[0]
@@ -181,7 +181,7 @@
//导入按钮
tableExport(){
if(this.rows.length>1){
this.$message.warning('只能选择一条数据')
this.$message.warning(this.$t('OnlyOneSelected'))
}else {
if(this.rows.file_name){
let name = this.rows.file_name.split('.')
@@ -207,15 +207,15 @@
}
postAction(`ocr/OcrRestful/addOcrRecord`, params).then(res => {
if (res.success) {
this.$message.success(res.message)
this.$message.success(this.$t('OperationSuccessful'))
eventBUs.$emit('searchReset')
} else {
this.$message.warning(res.message)
this.$message.warning(this.$t('operationFailed'))
}
})
// this.$emit('exportVisible',true)
}else{
this.$message.warning('只能导入pdf文件')
this.$message.warning(this.$t('OnlyPDF'))
}
}