Commit fd0c39fa by yangxiaolei

跳转页面传值并搜索

parent b89963d5
...@@ -567,7 +567,12 @@ export default { ...@@ -567,7 +567,12 @@ export default {
}; };
}, },
methods: {}, methods: {},
mounted: function () {}, mounted: function () {
if(this.$route.query && this.$route.query.trn){
this.model.infcon.ownref = this.$route.query.trn
this.handleSearch()
}
},
}; };
</script> </script>
<style> <style>
......
...@@ -431,6 +431,10 @@ export default { ...@@ -431,6 +431,10 @@ export default {
}, },
methods: {}, methods: {},
created: function () { created: function () {
if(this.$route.query && this.$route.query.trn){
this.model.infcon.seaownref = this.$route.query.trn
this.handleSearch()
}
}, },
computed:{ computed:{
mode () { mode () {
......
...@@ -623,11 +623,13 @@ export default { ...@@ -623,11 +623,13 @@ export default {
}, },
methods: { methods: {
onInfoView(type ="infbrd"){ onInfoView(type ="infbrd"){
let viewurl let viewurl,orderNum
if(type == "infbrd"){ if(type == "infbrd"){
viewurl = "/#/info/infbrd" orderNum = this.model.brdgrp.rec.ownref
viewurl = "/#/info/infbrd" + "?trn=" + orderNum
} else{ } else{
viewurl = "/#/info/inflid" orderNum = this.model.lidgrp.rec.ownref
viewurl = "/#/info/inflid" + "?trn=" + orderNum
} }
const serial = Utils.generateUUID(); const serial = Utils.generateUUID();
window.open(viewurl, serial, 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'); window.open(viewurl, serial, 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
......
...@@ -601,7 +601,8 @@ export default { ...@@ -601,7 +601,8 @@ export default {
// }, // },
onInfoView(){ onInfoView(){
let viewurl = "/#/info/inflid" let orderNum = this.model.lidgrp.rec.ownref
let viewurl = "/#/info/inflid" + "?trn=" + orderNum
const serial = Utils.generateUUID(); const serial = Utils.generateUUID();
window.open(viewurl, serial, 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no'); window.open(viewurl, serial, 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}, },
......
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