productData.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <div class="Index">
  3. <h2 style="margin-bottom: 20px;padding-bottom:7px;border-bottom:2px solid #ddd">生产统计</h2>
  4. <header class="header">
  5. <div class="left">
  6. <E-Out-Sheepfold></E-Out-Sheepfold>
  7. </div>
  8. <div class="right">
  9. <E-Give-Birth></E-Give-Birth>
  10. </div>
  11. </header>
  12. <section class="section">
  13. <h2>生产数据</h2>
  14. <ul class="ul">
  15. <li class="li">
  16. <span class="title">本月出生数</span>
  17. <span class="content">681</span>
  18. </li>
  19. <li class="li">
  20. <span class="title">本月调入数</span>
  21. <span class="content">40</span>
  22. </li>
  23. <li class="li">
  24. <span class="title">本月调出数</span>
  25. <span class="content">886</span>
  26. </li>
  27. <li class="li">
  28. <span class="title">累计调入数</span>
  29. <span class="content">8258</span>
  30. </li>
  31. <li class="li">
  32. <span class="title">累计调出数</span>
  33. <span class="content">8530</span>
  34. </li>
  35. </ul>
  36. </section>
  37. </div>
  38. </template>
  39. <script>
  40. import EOutSheepfold from "./charts/EOutSheepfold";
  41. import EGiveBirth from "./charts/EGiveBirth";
  42. export default {
  43. name: "Index",
  44. components: {
  45. "E-Out-Sheepfold": EOutSheepfold,
  46. "E-Give-Birth": EGiveBirth
  47. },
  48. data() {
  49. return {};
  50. },
  51. created() {},
  52. methods: {
  53. }
  54. };
  55. </script>
  56. <style lang="scss" scoped>
  57. .Index {
  58. .header {
  59. display: flex;
  60. padding-right: 11%;
  61. .left {
  62. width: 50%;
  63. height: 400px;
  64. }
  65. .right {
  66. width: 50%;
  67. height: 400px;
  68. }
  69. }
  70. .section {
  71. margin: 50px 0;
  72. padding: 10px 10px 10px 10px;
  73. border: 1px solid #ccc;
  74. border-radius: 10px;
  75. h2{
  76. color: #292929;
  77. }
  78. .ul {
  79. display: flex;
  80. justify-content: space-around;
  81. padding: 40px 8% 80px 8%;
  82. .li {
  83. height: 80px;
  84. width: 180px;
  85. background-color: #ddd;
  86. border-radius: 10px;
  87. padding: 10px 0;
  88. display: flex;
  89. flex-direction: column;
  90. justify-content: space-around;
  91. align-items: center;
  92. .title {
  93. font-size: 22px;
  94. font-weight: 600;
  95. color: #444;
  96. }
  97. .content {
  98. font-size: 22px;
  99. font-weight: 600;
  100. color: rgb(48, 115, 240);
  101. }
  102. }
  103. }
  104. }
  105. }
  106. </style>