<template>
  <div class="hasten" v-if="hastenList.length">
    <div class="hastenItem" v-for="(item, index) in hastenList" :key="index">
      <div class="date item">
        <div class="label">催办时间：</div>
        <div class="value">{{ item.createTime }}</div>
      </div>
      <div class="number item">
        <div class="label">催办次数：</div>
        <div class="value">{{ index + 1 }}</div>
      </div>
      <div class="content item">
        <div class="label">催办内容：</div>
        <div class="value">{{ item.urgeMessage }}</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'hasten',
  props: {
    hastenList: {
      type: Array,
      defaule: () => [],
    },
  },
  data() {
    return {};
  },
};
</script>
<style lang="scss" scoped>
.hasten {
  background: #fff;
  padding: 10px 16px;
  margin: 6px 10px 10px;
  .hastenItem {
    border-bottom: 1px solid #ccc;
    margin-bottom: 5px;
    padding-bottom: 5px;
    &:last-child {
      border-bottom: none;
    }
    .item {
      display: flex;
      padding: 3px 0;
      font-size: 14px;
      color: #444;
      .label {
        width: 110px;
      }
      .value {
        flex: 1;
      }
    }
  }
}
</style>
