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-16 11:25:09 +0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
f6ea217b53d67322672c80aa8dc37f63157422f5
f6ea217b
1 parent
846d6a17
up
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
resources/views/dashboard.blade.php
resources/views/dashboard.blade.php
View file @
f6ea217
...
...
@@ -24,6 +24,7 @@
<div
class=
"content-wrapper position-relative"
>
<section
class=
"contents"
>
<div
id=
"app"
class=
""
>
<div
v-if=
"isLoading"
class=
"loading text-center"
><div
class=
"spinner-container"
><div
role=
"status"
class=
"spinner-border text-primary"
><span
class=
"sr-only"
>
Loading...
</span></div></div></div>
<div
class=
"card p-2 p-md-3"
>
<h4
class=
"text-bold color-main"
>
FAX受信
</h4>
<div
class=
"row"
><div
class=
"col"
>
...
...
@@ -40,6 +41,7 @@
var
app
=
new
Vue
({
el
:
'#app'
,
data
:{
isLoading
:
false
,
ocr
:
{
!!
json_encode
(
$ocr
)
!!
},
ocr_window
:
null
},
...
...
@@ -52,7 +54,7 @@
let
formData
=
new
FormData
();
formData
.
append
(
'attached_file'
,
file
);
this
.
isLoading
=
true
;
axios
.
post
(
"{{route('import_pdf')}}"
,
formData
,
{
headers
:{
'Content-Type'
:
'multipart/form-data'
...
...
@@ -66,6 +68,7 @@
else
alert
(
'Upload false'
);
}).
finally
(()
=>
{
this
.
$refs
.
pdf
.
value
=
''
;
this
.
isLoading
=
false
;
});
},
openPdfWindow
(
options
=
{}){
...
...
Please
register
or
sign in
to post a comment