Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gavelinfo
kwell-mes
Commits
0b0d8619
Commit
0b0d8619
authored
Feb 18, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdf接口
parent
f700bd78
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
index.html
...l/src/main/resources/templates/views/kmes/gphy/index.html
+26
-3
No files found.
gavel/src/main/resources/templates/views/kmes/gphy/index.html
View file @
0b0d8619
...
...
@@ -198,9 +198,6 @@
mounted
()
{
this
.
initpage
()
dbenlarge
(
'kwrkb01'
,
1
,
this
.
initpage
)
pdfshow
(
"pdf/dcAcess.pdf"
,
"gphy"
,
20000
).
then
(
e
=>
{
this
.
sivpdf
=
e
})
this
.
gettime
()
this
.
isFocus
()
this
.
appdestory
()
...
...
@@ -212,6 +209,7 @@
},
data
:
function
()
{
return
{
pdfurl
:
"test2"
,
addtop
:
0
,
xlh
:
""
,
gx
:
""
,
...
...
@@ -345,6 +343,30 @@
}
},
methods
:
{
// 扫码接口
apiscanxlh
(){
let
that
=
this
gas
.
post
(
'test1'
,{},
function
(
res
){
if
(
res
.
data
&&
res
.
data
.
records
){
/* 赋值操作 */
/* 日志操作 */
/* pdf地址 */
let
gx
=
res
.
data
.
records
.
gx
let
nowpdfurl
=
"test2"
nowpdfurl
=
nowpdfurl
+
"?gx="
+
gx
if
(
nowpdfurl
!=
that
.
pdfurl
)
{
that
.
pdfurl
=
nowpdfurl
/* 清除计时器 */
if
(
that
.
sivpdf
){
clearInterval
(
that
.
sivpdf
)
}
pdfshow
(
that
.
pdfurl
,
"gphy"
,
20000
).
then
(
e
=>
{
this
.
sivpdf
=
e
})
}
}
});
},
isFocus
(){
let
$xlh
=
$
(
"#kwrkb01"
).
find
(
'input[name="xlh"]'
)
$xlh
.
focus
()
...
...
@@ -353,6 +375,7 @@
scanxlh
(
e
){
var
evt
=
window
.
event
||
e
;
if
(
evt
.
keyCode
==
13
)
{
this
.
apiscanxlh
()
console
.
log
(
this
.
xlh
)
$
(
"#kwrkb01"
).
find
(
".rz"
).
append
(
"<br>>"
+
"<span>"
+
"正在查询:"
+
this
.
xlh
+
"</sapn>"
)
this
.
addtop
=
this
.
addtop
+
600
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment