This commit is contained in:
“zouyf” 2024-12-18 10:31:20 +08:00
parent 9a2a55c62b
commit 058509b29c
4 changed files with 219 additions and 4 deletions

View File

@ -0,0 +1,203 @@
{
"words_result": [
{
"type": "print",
"location": {
"top": 8,
"left": 11,
"width": 485,
"height": 18
},
"words": "(1)风华正茂:"
},
{
"type": "print",
"location": {
"top": 37,
"left": 11,
"width": 485,
"height": 18
},
"words": "(2)书生意气:"
},
{
"type": "print",
"location": {
"top": 67,
"left": 11,
"width": 484,
"height": 18
},
"words": "(3)指点江山:"
},
{
"type": "print",
"location": {
"top": 96,
"left": 11,
"width": 485,
"height": 18
},
"words": "(4)峥嵘岁月:"
},
{
"type": "print",
"location": {
"top": 125,
"left": 10,
"width": 180,
"height": 17
},
"words": "[答案](1)风采才华正盛。"
},
{
"type": "print",
"location": {
"top": 155,
"left": 11,
"width": 179,
"height": 16
},
"words": "(2)词中指同学们意气奔放。"
},
{
"type": "print",
"location": {
"top": 185,
"left": 12,
"width": 118,
"height": 16
},
"words": "(3)评论国家大事。"
},
{
"type": "print",
"location": {
"top": 214,
"left": 12,
"width": 376,
"height": 16
},
"words": "(4)不寻常的日子。峥嵘,这里是不平凡、 不寻常的意思。"
}
],
"formula_result": [],
"img_direction": 0,
"results": [
{
"chars": [],
"words_type": "print",
"words": {
"words_location": {
"left": 11,
"height": 18,
"width": 485,
"top": 8
},
"word": "(1)风华正茂:",
"line_probability": {}
}
},
{
"chars": [],
"words_type": "print",
"words": {
"words_location": {
"left": 11,
"height": 18,
"width": 485,
"top": 37
},
"word": "(2)书生意气:",
"line_probability": {}
}
},
{
"chars": [],
"words_type": "print",
"words": {
"words_location": {
"left": 11,
"height": 18,
"width": 484,
"top": 67
},
"word": "(3)指点江山:",
"line_probability": {}
}
},
{
"chars": [],
"words_type": "print",
"words": {
"words_location": {
"left": 11,
"height": 18,
"width": 485,
"top": 96
},
"word": "(4)峥嵘岁月:",
"line_probability": {}
}
},
{
"chars": [],
"words_type": "print",
"words": {
"words_location": {
"left": 10,
"height": 17,
"width": 180,
"top": 125
},
"word": "[答案](1)风采才华正盛。",
"line_probability": {}
}
},
{
"chars": [],
"words_type": "print",
"words": {
"words_location": {
"left": 11,
"height": 16,
"width": 179,
"top": 155
},
"word": "(2)词中指同学们意气奔放。",
"line_probability": {}
}
},
{
"chars": [],
"words_type": "print",
"words": {
"words_location": {
"left": 12,
"height": 16,
"width": 118,
"top": 185
},
"word": "(3)评论国家大事。",
"line_probability": {}
}
},
{
"chars": [],
"words_type": "print",
"words": {
"words_location": {
"left": 12,
"height": 16,
"width": 376,
"top": 214
},
"word": "(4)不寻常的日子。峥嵘,这里是不平凡、 不寻常的意思。",
"line_probability": {}
}
}
],
"layouts_num": 0,
"results_num": 8,
"log_id": 1868923976840586200
}

View File

@ -7,7 +7,7 @@
<i class="iconfont icon-xiangyou"></i> <i class="iconfont icon-xiangyou"></i>
</div> </div>
<div class="book-list" v-loading="treeLoading"> <div class="book-list" v-loading="treeLoading">
<el-tree :data="treeData" accordion :props="defaultProps" node-key="id" <el-tree :data="treeData" accordion :props="defaultProps" node-key="id" :render-content="renderContent"
:default-expanded-keys="defaultExpandedKeys" :current-node-key="curNode.data.id" highlight-current :default-expanded-keys="defaultExpandedKeys" :current-node-key="curNode.data.id" highlight-current
@node-click="handleNodeClick"> @node-click="handleNodeClick">
<template #default="{ node }"> <template #default="{ node }">
@ -178,6 +178,18 @@ const handleNodeClick = (data) => {
sessionStore.set('subject.curNode', nodeData) sessionStore.set('subject.curNode', nodeData)
emit('nodeClick', curData) emit('nodeClick', curData)
} }
const renderContent = (h, { node, data, store }) => {
return h(
'span',
{
style: {
color: data.bookId==''||data.bookId=='0' ? '#758CAE' : 'black',
},
},
node.label
);
}
onMounted( async () => { onMounted( async () => {
treeLoading.value = true treeLoading.value = true
try{ try{

View File

@ -43,7 +43,7 @@
</div> </div>
<!-- orc 使用说明 --> <!-- orc 使用说明 -->
<div class="import-manual-explain"> <div class="import-manual-explain">
<p>orc 使用说明</p> <p>orc 使用说明填空题暂无法整题识别</p>
<p>1本地浏览 </p> <p>1本地浏览 </p>
<p>2获取剪贴板图片 </p> <p>2获取剪贴板图片 </p>
<p>3整题识别可识别整张图片自动填充到对应内容 </p> <p>3整题识别可识别整张图片自动填充到对应内容 </p>

View File

@ -402,8 +402,8 @@ const changeBook = async(data) => {
let cata = parseCataByNode(data.node) let cata = parseCataByNode(data.node)
currentNode.value = data.node currentNode.value = data.node
uploadData.value.levelFirstId = cata[0] uploadData.value.levelFirstId = cata[0]
uploadData.value.levelSecondId = cata[1]==null||cata[1]== undefined ? '' : cata[1] uploadData.value.levelSecondId = cata[1] ?? ''
uploadData.value.levelThirdId = cata[2]==null||cata[2]== undefined ? '' : cata[2] uploadData.value.levelThirdId = cata[2] ?? ''
uploadData.value.textbookId = data.textBook.curBookId uploadData.value.textbookId = data.textBook.curBookId
getModelInfo({cataid: currentNode.value.id}).then(res=>{ getModelInfo({cataid: currentNode.value.id}).then(res=>{
console.log(res) console.log(res)