report.vue 703 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <web-view :src="url" class="map"></web-view>
  3. <!-- <web-view v-if="flag" :src="url"></web-view> -->
  4. <!-- <iframe v-else :src="url" width="340" height="360" allowfullscreen allow="autoplay; fullscreen; microphone;"></iframe> -->
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. // url:"https://datav.aliyuncs.com/share/235518097ffd673bc1eb05011b9a02b6",
  11. url: 'http://192.168.1.116:8011',
  12. flag: true
  13. }
  14. },
  15. onLoad: function(option) {
  16. if (option.url) {
  17. this.url = option.url;
  18. uni.setNavigationBarTitle({
  19. title: "库点监控"
  20. })
  21. this.flag = false
  22. }
  23. },
  24. methods: {}
  25. }
  26. </script>
  27. <style>
  28. .map {
  29. /* height: 400px; */
  30. }
  31. </style>