OCR识别修改
This commit is contained in:
parent
164a6db7c7
commit
2e3c457952
|
|
@ -116,7 +116,7 @@ export default {
|
||||||
const response = file[0].response;
|
const response = file[0].response;
|
||||||
if (response.ocrResult && response.ocrResult.status_code === 200) {
|
if (response.ocrResult && response.ocrResult.status_code === 200) {
|
||||||
// ocr识别成功
|
// ocr识别成功
|
||||||
const chat_res = response.ocrResult.data?.chat_res;
|
const chat_res = response.ocrResult.data;
|
||||||
if (chat_res && typeof chat_res === 'object') {
|
if (chat_res && typeof chat_res === 'object') {
|
||||||
// 直接遍历chat_res对象的属性
|
// 直接遍历chat_res对象的属性
|
||||||
Object.keys(chat_res).forEach(key => {
|
Object.keys(chat_res).forEach(key => {
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,7 @@ export default {
|
||||||
const response = file[0].response;
|
const response = file[0].response;
|
||||||
if (response.ocrResult && response.ocrResult.status_code === 200) {
|
if (response.ocrResult && response.ocrResult.status_code === 200) {
|
||||||
// ocr识别成功
|
// ocr识别成功
|
||||||
const chat_res = response.ocrResult.data?.chat_res;
|
const chat_res = response.ocrResult.data;
|
||||||
if (chat_res && typeof chat_res === 'object') {
|
if (chat_res && typeof chat_res === 'object') {
|
||||||
// 直接遍历chat_res对象的属性
|
// 直接遍历chat_res对象的属性
|
||||||
Object.keys(chat_res).forEach(key => {
|
Object.keys(chat_res).forEach(key => {
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ export default {
|
||||||
const response = file[0].response;
|
const response = file[0].response;
|
||||||
if (response.ocrResult && response.ocrResult.status_code === 200) {
|
if (response.ocrResult && response.ocrResult.status_code === 200) {
|
||||||
// ocr识别成功
|
// ocr识别成功
|
||||||
const chat_res = response.ocrResult.data?.chat_res;
|
const chat_res = response.ocrResult.data;
|
||||||
if (chat_res && typeof chat_res === 'object') {
|
if (chat_res && typeof chat_res === 'object') {
|
||||||
// 直接遍历chat_res对象的属性
|
// 直接遍历chat_res对象的属性
|
||||||
Object.keys(chat_res).forEach(key => {
|
Object.keys(chat_res).forEach(key => {
|
||||||
|
|
|
||||||
|
|
@ -284,7 +284,7 @@ export default {
|
||||||
const response = file[0].response;
|
const response = file[0].response;
|
||||||
if (response.ocrResult && response.ocrResult.status_code === 200) {
|
if (response.ocrResult && response.ocrResult.status_code === 200) {
|
||||||
// ocr识别成功
|
// ocr识别成功
|
||||||
const chat_res = response.ocrResult.data?.chat_res;
|
const chat_res = response.ocrResult.data;
|
||||||
if (chat_res && typeof chat_res === 'object') {
|
if (chat_res && typeof chat_res === 'object') {
|
||||||
// 直接遍历chat_res对象的属性
|
// 直接遍历chat_res对象的属性
|
||||||
Object.keys(chat_res).forEach(key => {
|
Object.keys(chat_res).forEach(key => {
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ export default {
|
||||||
const response = file[0].response;
|
const response = file[0].response;
|
||||||
if (response.ocrResult && response.ocrResult.status_code === 200) {
|
if (response.ocrResult && response.ocrResult.status_code === 200) {
|
||||||
// ocr识别成功
|
// ocr识别成功
|
||||||
const chat_res = response.ocrResult.data?.chat_res;
|
const chat_res = response.ocrResult.data;
|
||||||
if (chat_res && typeof chat_res === 'object') {
|
if (chat_res && typeof chat_res === 'object') {
|
||||||
// 直接遍历chat_res对象的属性
|
// 直接遍历chat_res对象的属性
|
||||||
Object.keys(chat_res).forEach(key => {
|
Object.keys(chat_res).forEach(key => {
|
||||||
|
|
|
||||||
|
|
@ -310,7 +310,7 @@ export default {
|
||||||
const response = file[0].response;
|
const response = file[0].response;
|
||||||
if (response.ocrResult && response.ocrResult.status_code === 200) {
|
if (response.ocrResult && response.ocrResult.status_code === 200) {
|
||||||
// ocr识别成功
|
// ocr识别成功
|
||||||
const chat_res = response.ocrResult.data?.chat_res;
|
const chat_res = response.ocrResult.data;
|
||||||
if (chat_res && typeof chat_res === 'object') {
|
if (chat_res && typeof chat_res === 'object') {
|
||||||
// 直接遍历chat_res对象的属性
|
// 直接遍历chat_res对象的属性
|
||||||
Object.keys(chat_res).forEach(key => {
|
Object.keys(chat_res).forEach(key => {
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ export default {
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
enterpriseId: decryptWithSM4(this.$route.query.enterpriseId)
|
enterpriseId: decryptWithSM4(this.$route.query.enterpriseId)
|
||||||
},
|
},
|
||||||
total: 100,
|
total: 0,
|
||||||
personnelList: [],
|
personnelList: [],
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue