pastData.vue 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <div class="plate-box">
  3. <h2 class="DetailsTit"><span>{{title}}</span></h2>
  4. <div class="tableTit " >
  5. <ul>
  6. <li v-for="(item,index) in tableTit" :key="index" :value="item.value" >{{item}}</li>
  7. </ul>
  8. </div>
  9. <div class="tableDate" >
  10. <ul>
  11. <li v-for="(item,index) in tableDate" :key="index" :value="item.value" >
  12. <span>{{item.data}}</span>
  13. <span>{{item.model}}</span>
  14. <span>{{item.weightBefore}}</span>
  15. <span>{{item.weightafter}}</span>
  16. <span>{{item.set}}</span>
  17. <span>{{item.actual}}</span>
  18. </li>
  19. </ul>
  20. </div>
  21. <div class="middleLine"></div>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. name: "pastData",
  27. data() {
  28. return {
  29. title: "往期数据 ",
  30. tableTit: [
  31. "日期",
  32. "透析模式",
  33. "透前称重(kg)",
  34. "透后称重(kg)",
  35. "设定脱水(L)",
  36. "实际脱水(L)"
  37. ],
  38. tableDate: [
  39. {
  40. value: "1",
  41. data: "05-18 ",
  42. model: "HD",
  43. weightBefore: "10",
  44. weightafter: "30",
  45. set: "20",
  46. actual: "3"
  47. },
  48. {
  49. value: "1",
  50. data: "05-18 ",
  51. model: "HD",
  52. weightBefore: "10",
  53. weightafter: "30",
  54. set: "20",
  55. actual: "3"
  56. },
  57. {
  58. value: "1",
  59. data: "05-18 ",
  60. model: "HD",
  61. weightBefore: "10",
  62. weightafter: "30",
  63. set: "20",
  64. actual: "3"
  65. },
  66. {
  67. value: "1",
  68. data: "05-18 ",
  69. model: "HD",
  70. weightBefore: "10",
  71. weightafter: "30",
  72. set: "20",
  73. actual: "3"
  74. }
  75. ]
  76. };
  77. }
  78. };
  79. </script>
  80. <style rel="stylesheet/scss" lang="scss" scoped>
  81. .tableTit {
  82. background: $main-color;
  83. color: $text-color;
  84. @include box-sizing;
  85. ul {
  86. @include display-flex;
  87. @include align-items-center;
  88. @include text-align;
  89. @include justify-content-center;
  90. li {
  91. @include flex;
  92. border-right: 1px $border-color solid;
  93. font-size: 16px;
  94. height: 44px;
  95. line-height: 44px;
  96. }
  97. &:last-child {
  98. border-right: none;
  99. }
  100. }
  101. }
  102. .tableDate {
  103. background: $text-color;
  104. color: $pgh-color;
  105. @include box-sizing;
  106. ul {
  107. li {
  108. font-size: 16px;
  109. height: 44px;
  110. line-height: 44px;
  111. @include display-flex;
  112. @include align-items-center;
  113. @include text-align;
  114. @include justify-content-center;
  115. span {
  116. @include flex;
  117. border-right: 1px $border-color solid;
  118. border-bottom: 1px $border-color solid;
  119. }
  120. }
  121. &:last-child {
  122. border-right: none;
  123. }
  124. }
  125. }
  126. </style>