reportDetail.vue 497 B

1234567891011121314151617181920212223
  1. <template>
  2. <web-view :src="url"></web-view>
  3. </template>
  4. <script>
  5. export default {
  6. data () {
  7. return {
  8. url:""
  9. }
  10. },
  11. onLoad(options){
  12. const eventChannel = this.getOpenerEventChannel()
  13. eventChannel.on('webUrl', (data)=> {
  14. const timestamp=new Date().getTime()
  15. this.url=`${data.url}&userId=${this.userInfo.user_id}&token=${this.$store.state.user.token}&timestamp=${timestamp}`
  16. })
  17. }
  18. }
  19. </script>