bloodpressTable.vue 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <view class="chartwarp">
  3. <view class="uni-container">
  4. <uni-table ref="table" :loading="loading" border stripe emptyText="暂无更多数据">
  5. <uni-tr>
  6. <uni-th width="100" align="center">日期</uni-th>
  7. <uni-th width="95" align="center">透前收缩压</uni-th>
  8. <uni-th width="95" align="center">透前舒张压</uni-th>
  9. <uni-th width="95" align="center">透后收缩压</uni-th>
  10. <uni-th width="95" align="center">透后舒张压</uni-th>
  11. </uni-tr>
  12. <uni-tr v-for="(item, index) in record" :key="index">
  13. <uni-td>{{ item.assessment_date }}</uni-td>
  14. <uni-td align="center">
  15. <view class="name">{{ item.diastolic_blood_pressure_before }}</view>
  16. </uni-td>
  17. <uni-td align="center">{{ item.systolic_blood_pressure_before }}</uni-td>
  18. <uni-td align="center">{{ item.diastolic_blood_pressure_after }}</uni-td>
  19. <uni-td align="center">{{ item.systolic_blood_pressure_after }}</uni-td>
  20. </uni-tr>
  21. </uni-table>
  22. <view class="uni-pagination-box">
  23. <uni-pagination show-icon :page-size="pageSize" :current="pageCurrent" :total="total"
  24. @change="change" />
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. props: {
  32. record: Array
  33. },
  34. data() {
  35. return {
  36. searchVal: '',
  37. tableData: [],
  38. // 每页数据量
  39. pageSize: 10,
  40. // 当前页
  41. pageCurrent: 1,
  42. // 数据总量
  43. total: 0,
  44. loading: false
  45. }
  46. },
  47. onShow() {
  48. }
  49. }
  50. </script>
  51. <style>
  52. page {
  53. height: 100%;
  54. background-color: #f3f3f9;
  55. }
  56. .chartwarp{
  57. margin-top: 30rpx;
  58. }
  59. .uni-group {
  60. display: flex;
  61. align-items: center;
  62. }
  63. </style>