index.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div class="margin-of-content">
  3. <zj-page-container direction="row">
  4. <zj-page-fill>
  5. <zj-page-container direction="row">
  6. <div style="width: 26%">
  7. <zj-page-container>
  8. <div class="module-inner-margin" style="height: 28%">
  9. <!-- 辅配件统计 -->
  10. <accessoryStatistics />
  11. </div>
  12. <div class="module-inner-margin" style="height: 38%">
  13. <!-- 工单统计 -->
  14. <workOrderStatistics />
  15. </div>
  16. <div class="module-inner-margin" style="min-height: 30.32%; height: 44.32%">
  17. <!-- 工单趋势 -->
  18. <workOrderTrend />
  19. </div>
  20. </zj-page-container>
  21. </div>
  22. <div style="width: 48%">
  23. <zj-page-container>
  24. <div class="module-inner-margin h70">
  25. <mapdata />
  26. </div>
  27. <div class="module-inner-margin h30">
  28. <trendChart />
  29. </div>
  30. </zj-page-container>
  31. </div>
  32. <div style="width: 26%">
  33. <zj-page-container>
  34. <div class="module-inner-margin" style="height: 28%">
  35. <orderStatistics />
  36. </div>
  37. <div class="module-inner-margin" style="height: 38%">
  38. <orderTrend />
  39. </div>
  40. <div class="module-inner-margin" style="min-height: 30.32%; height: 44.32%">
  41. <orderAmountTrend />
  42. </div>
  43. </zj-page-container>
  44. </div>
  45. </zj-page-container>
  46. </zj-page-fill>
  47. </zj-page-container>
  48. </div>
  49. </template>
  50. <script>
  51. import orderAmountTrend from './components/orderAmountTrend.vue'
  52. import workOrderTrend from './components/workOrderTrend.vue'
  53. import orderTrend from './components/orderTrend.vue'
  54. import accessoryStatistics from './components/accessoryStatistics.vue'
  55. import orderStatistics from './components/orderStatistics.vue'
  56. import mapdata from './components/mapdata.vue'
  57. import workOrderStatistics from './components/workOrderStatistics.vue'
  58. import trendChart from './components/trendChart.vue'
  59. export default {
  60. components: {
  61. orderAmountTrend,
  62. workOrderTrend,
  63. orderTrend,
  64. accessoryStatistics,
  65. orderStatistics,
  66. mapdata,
  67. workOrderStatistics,
  68. trendChart
  69. },
  70. data() {
  71. return {
  72. showMap: false
  73. }
  74. },
  75. mounted() {
  76. this.$nextTick(() => {
  77. this.showMap = true
  78. })
  79. },
  80. beforeUnmount() {},
  81. methods: {}
  82. }
  83. </script>
  84. <style scoped lang="scss">
  85. .margin-of-content {
  86. width: 100%;
  87. height: 100%;
  88. box-sizing: border-box;
  89. padding: 6px;
  90. }
  91. .module-inner-margin {
  92. box-sizing: border-box;
  93. padding: 6px;
  94. }
  95. .h30 {
  96. height: 30%;
  97. }
  98. .h53 {
  99. height: 53%;
  100. }
  101. .h47 {
  102. height: 47%;
  103. }
  104. .h70 {
  105. height: 70%;
  106. }
  107. </style>