defaultPage.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <div class="container">
  3. <quick-launch class="item1" :sysType="sysType" />
  4. <audit-data class="item2" :sysType="sysType"/>
  5. <realtime-data class="item3" :sysType="sysType"/>
  6. <sales-reached class="item4" :sysType="sysType"/>
  7. <sales-trend class="item5" :sysType="sysType"/>
  8. <charge-today class="item6" :sysType="sysType"/>
  9. <pay-today class="item7" :sysType="sysType"/>
  10. </div>
  11. </template>
  12. <script>
  13. import quickLaunch from "../components/quick-launch";
  14. import auditData from "../components/audit-data";
  15. import realtimeData from "../components/realtime-data";
  16. import salesReached from "../components/sales-reached";
  17. import salesTrend from "../components/sales-trend";
  18. import chargeToday from "../components/charge-today";
  19. import payToday from "../components/pay-today";
  20. export default {
  21. name: "wel",
  22. data() {
  23. return {};
  24. },
  25. props:{
  26. sysType:Number
  27. },
  28. created() {},
  29. components: {
  30. quickLaunch,
  31. auditData,
  32. realtimeData,
  33. salesReached,
  34. salesTrend,
  35. chargeToday,
  36. payToday
  37. },
  38. computed: {},
  39. methods: {}
  40. };
  41. </script>
  42. <style lang="scss" scoped>
  43. .item1 {
  44. grid-area: a;
  45. }
  46. .item2 {
  47. grid-area: b;
  48. }
  49. .item3 {
  50. grid-area: c;
  51. }
  52. .item4 {
  53. grid-area: d;
  54. }
  55. .item5 {
  56. grid-area: e;
  57. }
  58. .item6 {
  59. grid-area: f;
  60. }
  61. .item7 {
  62. grid-area: g;
  63. }
  64. .container {
  65. display: grid;
  66. width: 100%;
  67. height: 95.5vh;
  68. grid-template-columns: repeat(auto-fill, 10%);
  69. grid-template-rows: 140px 180px 180px 350px 400px;
  70. grid-template-areas:
  71. "a a a a a a a a a a"
  72. "b b b b b b b b b b"
  73. "c c c c c c c c c c"
  74. "d d d d e e e e e e"
  75. "f f f f f g g g g g";
  76. }
  77. </style>