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

pdf接口

parent f700bd78
......@@ -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
......
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