<template>
  <div>
    <el-timeline>
      <el-timeline-item
        v-for="(item, index) in list"
        :key="index"
        :color="index == 0?'#3874f6':''"
        :timestamp="item.time">
        {{item.context}}
      </el-timeline-item>
    </el-timeline>
  </div>
</template>

<script>
export default {
  data () {
    return {
      list:[]
    }
  },
  methods:{
    async listData () {
      const res = await this.$api.requested({
        "id": "20230110135004",
        "content": {
          "sa_logisticsid":this.$route.query.id
        }
      })
      this.list = res.data.data
    }
  },
  mounted () {
    this.listData()
  }
}

</script>
<style>
</style>