<template>
  <div>
    <van-list
      width="100%"
      v-model="loading"
      :finished="finished"
      @load="onLoad"
    >
      <table class="table">
        <tr style="background: #409EFF">
          <th style="color: white" width="20%">日期</th>
          <th style="color: white" width="20%">班次</th>
          <th style="color: white" width="20%">分区</th>
          <th style="color: white" width="20%">机号</th>
          <th style="color: white" width="20%">治疗模式</th>
        </tr>

        <tr style="background: #ebf1f7" v-for="(item,index) in tableDate" :key="index" :value="item.value">
          <td  width="20%">{{parseTime(item.schedule_date, "{y}-{m}-{d}")}}</td>
          <td  width="20%">{{scheduleType(item.schedule_type)}}</td>
          <td  width="20%">{{item.zone.name}}</td>
          <td  width="20%">{{item.bed.number}}</td>
          <td  width="20%">{{item.mode.name}}</td>

        </tr>
      </table>
    </van-list>

  </div>
</template>


<script>
    export default {
        name: "dialysisRecord"
    }
</script>

<style scoped>

</style>
