Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Dung Diego
/
ocr-tool
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dung Diego
2026-07-22 13:35:04 +0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
98eccf09e6014badfd03f44e449c03c446d0c59c
98eccf09
1 parent
753acee1
up
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
app/Http/Controllers/OcrController.php
resources/views/dashboard.blade.php
app/Http/Controllers/OcrController.php
View file @
98eccf0
...
...
@@ -12,7 +12,7 @@
class
OcrController
extends
Controller
{
public
function
index
(
Request
$request
){
return
view
(
'dashboard'
,[
'ocr'
=>
[],
'mst_
field'
=>
MstField
::
get
()
]);
return
view
(
'dashboard'
,[
'ocr'
=>
[],
'mst_
template'
=>
[],
'mst_field'
=>
MstField
::
get
(),
]);
}
public
function
show_pdf
(
Request
$request
)
{
...
...
resources/views/dashboard.blade.php
View file @
98eccf0
...
...
@@ -54,8 +54,16 @@
<div
class=
"row mt-3"
>
<div
class=
"col"
v-for=
"(k,v) in mst_template"
>
<strong>
@{{ k }}
</strong>
:
@{{ v }}
</div>
</div>
<div
class=
"row mt-3"
>
<div
class=
"col"
v-for=
"field in mst_field.filter(f => [0, 3].includes(f.field_type))"
:key=
"field.field_name"
>
<strong>
@{{ field.name }}
</strong>
:
@{{ order[field.field_name] }}
...
...
@@ -68,7 +76,6 @@
<tr>
<th
v-for=
"field in mst_field.filter(f => [1, 2].includes(f.field_type))"
:key=
"field.field_name"
>
@{{ field.name }}
</th>
...
...
@@ -82,7 +89,6 @@
>
<td
v-for=
"field in mst_field.filter(f => [1, 2].includes(f.field_type))"
:key=
"field.field_name"
>
@{{ item[field.field_name] }}
</td>
...
...
@@ -106,6 +112,7 @@
ocr_window
:
null
,
order
:{},
table
:[],
mst_field
:{
!!
json_encode
(
$mst_field
)
!!
},
mst_template
:{
!!
json_encode
(
$mst_template
)
!!
},
},
mounted
()
{
},
...
...
Please
register
or
sign in
to post a comment