后端返回值变更

This commit is contained in:
砂糖
2025-08-02 16:39:40 +08:00
parent bac9fbd1fb
commit 5dcae21584

View File

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