landTransportation.vue 2.0 KB

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