血透系统pad前端

pastData.vue 2.9KB

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