commit
This commit is contained in:
@@ -1359,7 +1359,7 @@ export default {
|
|||||||
) {
|
) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.uploadFilesdfEo.fileType = this.uploadFilesdfEo.fileType.toString();
|
this.uploadFilesdfEo.fileType = this.uploadFilesdfEo.fileType.toString();
|
||||||
this.$http.post(
|
this.$http.post(
|
||||||
"ocr/OCRRestful/addOcrRecord",
|
"ocr/OCRRestful/addOcrRecord",
|
||||||
this.uploadFilesdfEo,
|
this.uploadFilesdfEo,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1855,6 +1855,8 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
OCRType: '',
|
||||||
|
OCRoptions: [],
|
||||||
OCRDatas: [],
|
OCRDatas: [],
|
||||||
OCRData: [],
|
OCRData: [],
|
||||||
OCRLoading: false,
|
OCRLoading: false,
|
||||||
@@ -2563,20 +2565,50 @@
|
|||||||
} else if (this.OCRDatas.length === 0) {
|
} else if (this.OCRDatas.length === 0) {
|
||||||
this.$message.warning('请选择一个文件')
|
this.$message.warning('请选择一个文件')
|
||||||
} else {
|
} else {
|
||||||
console.log(this.OCRDatas);
|
if (this.OCRType === '0') {
|
||||||
console.log(this.ocrList);
|
let json = {
|
||||||
let json = {
|
standNumber: this.ocrList[0].standYear ? this.ocrList[0].standSortShow + ' ' + this.ocrList[0].standNumber + '-' + this.ocrList[0].standYear : this.ocrList[0].standSortShow + ' ' + this.ocrList[0].standNumber,
|
||||||
standNumber: this.ocrList[0].standYear ? this.ocrList[0].standSortShow + ' ' + this.ocrList[0].standNumber + '-' + this.ocrList[0].standYear : this.ocrList[0].standSortShow + ' ' + this.ocrList[0].standNumber,
|
standName: this.ocrList[0].standName,
|
||||||
standName: this.ocrList[0].standName,
|
attId: this.OCRDatas[0].attId,
|
||||||
attId: this.OCRDatas[0].attId,
|
fileName: this.OCRDatas[0].fileName,
|
||||||
fileName: this.OCRDatas[0].name,
|
fileType: this.OCRDatas[0].useModel,
|
||||||
fileType: this.ocrList[0].name,
|
}
|
||||||
|
this.$http.post(
|
||||||
|
"ocr/OCRRestful/addOcrRecord",
|
||||||
|
json,
|
||||||
|
{
|
||||||
|
_this: this,
|
||||||
|
},
|
||||||
|
(res) => {
|
||||||
|
this.OCRModel = false
|
||||||
|
if (res.ok) {
|
||||||
|
this.$message.success('OCR实别成功')
|
||||||
|
} else {}
|
||||||
|
},
|
||||||
|
(e) => {
|
||||||
|
}
|
||||||
|
);
|
||||||
|
} else if (this.OCRType === '1') {
|
||||||
|
let splitEo = {}
|
||||||
|
splitEo.standId = this.OCRDatas[0].standId
|
||||||
|
splitEo.fileType = this.OCRDatas[0].standFileClassify
|
||||||
|
splitEo.attId = this.OCRDatas[0].attId
|
||||||
|
splitEo.fileName = this.OCRDatas[0].fileName
|
||||||
|
this.$http.postData('lawss/sarFileSplitInfo/fileSplit', splitEo, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
this.OCRModel = false
|
||||||
|
if (res.ok) {
|
||||||
|
this.$message.success('拆分成功')
|
||||||
|
} else {}
|
||||||
|
}, e => {
|
||||||
|
})
|
||||||
}
|
}
|
||||||
console.log(json);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
OCRAdd (type) {
|
OCRAdd (type) {
|
||||||
let text = ''
|
let text = ''
|
||||||
|
this.OCRType = type
|
||||||
if (type === '0') {
|
if (type === '0') {
|
||||||
text = 'OCR识别'
|
text = 'OCR识别'
|
||||||
this.OCRTitle = '选择OCR实别文件'
|
this.OCRTitle = '选择OCR实别文件'
|
||||||
@@ -2603,6 +2635,7 @@
|
|||||||
this.OCRLoading = false
|
this.OCRLoading = false
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('当前标准没有' + text + '文件')
|
this.$message.warning('当前标准没有' + text + '文件')
|
||||||
|
this.this.OCRData = []
|
||||||
this.OCRLoading = false
|
this.OCRLoading = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5265,6 +5298,11 @@
|
|||||||
// await this.selectStandardMenu()
|
// await this.selectStandardMenu()
|
||||||
this.treeReload = true
|
this.treeReload = true
|
||||||
// 从数据库中查询各下拉框数据
|
// 从数据库中查询各下拉框数据
|
||||||
|
this.$http.get('lawss/sarStandAttrDetails/getListData', '', {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
this.OCRoptions = res.data
|
||||||
|
})
|
||||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user