后端返回值变更
This commit is contained in:
@@ -16,15 +16,13 @@
|
|||||||
|
|
||||||
<!-- 提取质保单信息,选择使用ocr还是使用大模型 -->
|
<!-- 提取质保单信息,选择使用ocr还是使用大模型 -->
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12">
|
<!-- <el-col :span="12">
|
||||||
<!-- 卡片按钮,点击后调用ocr -->
|
|
||||||
<div style="height: 300px; border: 1px solid #ccc; border-radius: 10px; padding: 20px; cursor: pointer;" @click="handleOcr">
|
<div style="height: 300px; border: 1px solid #ccc; border-radius: 10px; padding: 20px; cursor: pointer;" @click="handleOcr">
|
||||||
OCR识别
|
OCR识别
|
||||||
<img :src="ocrImage" alt="ocr" style="width: 100%; height: 100%;" />
|
<img :src="ocrImage" alt="ocr" style="width: 100%; height: 100%;" />
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
<el-col :span="12">
|
<el-col :span="24">
|
||||||
<!-- 卡片按钮,点击后调用大模型 -->
|
|
||||||
<div style="height: 300px; border: 1px solid #ccc; border-radius: 10px; padding: 20px; cursor: pointer;" @click="handleModel">
|
<div style="height: 300px; border: 1px solid #ccc; border-radius: 10px; padding: 20px; cursor: pointer;" @click="handleModel">
|
||||||
大模型识别
|
大模型识别
|
||||||
<img :src="modelImage" alt="model" style="width: 100%; height: 100%;" />
|
<img :src="modelImage" alt="model" style="width: 100%; height: 100%;" />
|
||||||
@@ -93,8 +91,8 @@ const so = {
|
|||||||
loading: '等待大模型识别结果',
|
loading: '等待大模型识别结果',
|
||||||
handler: async (vm) => {
|
handler: async (vm) => {
|
||||||
const res = await recognizeBomByModel({ imageUrl: vm.file.url })
|
const res = await recognizeBomByModel({ imageUrl: vm.file.url })
|
||||||
vm.newResult = res.data.structuredResult.attributes;
|
vm.newResult = res.data.attributes;
|
||||||
vm.$modal.msgSuccess(res.data.structuredResult.summary);
|
vm.$modal.msgSuccess("识别成功");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user