This commit is contained in:
zhutianqi
2021-11-23 18:47:56 +08:00
parent 6f89978a4f
commit 227795738d
2 changed files with 48 additions and 10 deletions
@@ -1359,7 +1359,7 @@ export default {
) {
this.isSubmit = true;
this.uploadFilesdfEo.fileType = this.uploadFilesdfEo.fileType.toString();
this.$http.post(
this.$http.post(
"ocr/OCRRestful/addOcrRecord",
this.uploadFilesdfEo,
{
@@ -1855,6 +1855,8 @@
},
data() {
return {
OCRType: '',
OCRoptions: [],
OCRDatas: [],
OCRData: [],
OCRLoading: false,
@@ -2563,20 +2565,50 @@
} else if (this.OCRDatas.length === 0) {
this.$message.warning('请选择一个文件')
} else {
console.log(this.OCRDatas);
console.log(this.ocrList);
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,
standName: this.ocrList[0].standName,
attId: this.OCRDatas[0].attId,
fileName: this.OCRDatas[0].name,
fileType: this.ocrList[0].name,
if (this.OCRType === '0') {
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,
standName: this.ocrList[0].standName,
attId: this.OCRDatas[0].attId,
fileName: this.OCRDatas[0].fileName,
fileType: this.OCRDatas[0].useModel,
}
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) {
let text = ''
this.OCRType = type
if (type === '0') {
text = 'OCR识别'
this.OCRTitle = '选择OCR实别文件'
@@ -2603,6 +2635,7 @@
this.OCRLoading = false
} else {
this.$message.warning('当前标准没有' + text + '文件')
this.this.OCRData = []
this.OCRLoading = false
}
}
@@ -5265,6 +5298,11 @@
// await this.selectStandardMenu()
this.treeReload = true
//
this.$http.get('lawss/sarStandAttrDetails/getListData', '', {
_this: this
}, res => {
this.OCRoptions = res.data
})
this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this
}, res => {