血透系统pad前端

pastData.vue 2.9KB

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