RoadWidth.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div class="right_five">
  3. <CommonTitle title="道路路幅" />
  4. <div class="content" id="chartThree" v-loading="isLoading"
  5. element-loading-background="rgba(0, 22, 52, 0.75)">
  6. </div>
  7. </div>
  8. </template>
  9. <script setup>
  10. import {
  11. ref,
  12. onMounted,
  13. nextTick
  14. } from 'vue'
  15. import {
  16. setEchartsSolidBar
  17. } from '../echarts/option.js'
  18. import CommonTitle from "@/views/c-cpns/CommonTitle.vue";
  19. import {getSelectDllfCount} from "@/service/http.js";
  20. const isLoading = ref(false);
  21. onMounted(() => {
  22. isLoading.value = true;
  23. getSelectDllfCount().then(res => {
  24. isLoading.value = false;
  25. let arr = res.data.data.Rows;
  26. setEchartsSolidBar(document.getElementById("chartThree"),arr)
  27. })
  28. })
  29. </script>
  30. <style scoped lang="scss">
  31. .center {
  32. display: flex;
  33. justify-content: flex-start;
  34. align-items: center;
  35. }
  36. .center_center{
  37. display: flex;
  38. justify-content: center;
  39. align-items: center;
  40. }
  41. .right_five{
  42. height: 35%;
  43. padding-top: 10px;
  44. box-sizing: border-box;
  45. .content {
  46. height: 90%;
  47. width: 90%;
  48. margin: 0 20px;
  49. box-sizing: border-box;
  50. display: flex;
  51. flex-wrap: wrap;
  52. }
  53. }
  54. </style>