e7a00556c623e32eb60f6f4f4f4d06397b116a7f.svn-base 728 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <div>
  3. <basic-map :height="height||mapHeight" layersUrl='/resManager.catalog/rescatalog/resList'
  4. queryUrl="querymanage/querymanage/list" toolbar></basic-map>
  5. </div>
  6. </template>
  7. <script>
  8. import BasicMap from '@/components/BasicMap/BasicMap.vue';
  9. import {getAction} from "../../api/manage";
  10. export default {
  11. name: 'mapIndex',
  12. props:{
  13. height: {
  14. type: String
  15. }
  16. },
  17. data(){
  18. return{
  19. mapHeight:null
  20. }
  21. },
  22. components: {
  23. BasicMap
  24. },
  25. beforeMount() {
  26. let calcHeight = window.document.documentElement.clientHeight - 156;
  27. this.mapHeight = calcHeight.toString()+'px';
  28. }
  29. };
  30. </script>