Commit 0b0d8619 authored by 李苏's avatar 李苏 💬

pdf接口

parent f700bd78
...@@ -198,9 +198,6 @@ ...@@ -198,9 +198,6 @@
mounted() { mounted() {
this.initpage() this.initpage()
dbenlarge('kwrkb01', 1, this.initpage) dbenlarge('kwrkb01', 1, this.initpage)
pdfshow("pdf/dcAcess.pdf", "gphy", 20000).then(e => {
this.sivpdf = e
})
this.gettime() this.gettime()
this.isFocus() this.isFocus()
this.appdestory() this.appdestory()
...@@ -212,6 +209,7 @@ ...@@ -212,6 +209,7 @@
}, },
data: function() { data: function() {
return { return {
pdfurl:"test2",
addtop:0, addtop:0,
xlh:"", xlh:"",
gx:"", gx:"",
...@@ -345,6 +343,30 @@ ...@@ -345,6 +343,30 @@
} }
}, },
methods: { 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(){ isFocus(){
let $xlh=$("#kwrkb01").find('input[name="xlh"]') let $xlh=$("#kwrkb01").find('input[name="xlh"]')
$xlh.focus() $xlh.focus()
...@@ -353,6 +375,7 @@ ...@@ -353,6 +375,7 @@
scanxlh(e){ scanxlh(e){
var evt = window.event || e; var evt = window.event || e;
if (evt.keyCode == 13) { if (evt.keyCode == 13) {
this.apiscanxlh()
console.log(this.xlh) console.log(this.xlh)
$("#kwrkb01").find(".rz").append("<br>>" + "<span>" +"正在查询:"+this.xlh+"</sapn>") $("#kwrkb01").find(".rz").append("<br>>" + "<span>" +"正在查询:"+this.xlh+"</sapn>")
this.addtop = this.addtop + 600 this.addtop = this.addtop + 600
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment