<template>
  <div class="command">
    <m-sub title="值班人员表" />
    <div class="table">
      <div>
        <p>姓名</p>
        <p>责任居委范围</p>
        <p>联系电话</p>
      </div>
      <div v-for="(item, i) in list" :key="i">
        <p>{{item.name}}</p>
        <p>{{item.response}}</p>
        <p>{{item.phone}}</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Command',
  data() {
    return {
      list: [
        {name: '尤懿', response: '均乐，振兴，顺天村，江阴，新昌', phone: 13916876901},
        {name: '许俊', response: '均乐，振兴，顺天村，江阴，新昌', phone: 13816326142},
      ],
    }
  },
}
</script>

<style lang="stylus" scoped>
.command
  .table
    border .01rem solid $cardFontColor
    >div
      display flex
      background $color-map(.15)
      &:first-child
        background $color-map()
      &+div
        border-top inherit
      p
        flex 1
        line-height 1.7
        padding 0 .05rem
        overflow hidden
        text-overflow ellipsis
        white-space nowrap
        &+p
          border-left .01rem solid $cardFontColor
        &:first-child
          flex 0.2
        &:last-child
          flex 0.4
</style>
