<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: 'XXX', response: '居委清单', phone: 13000000000},
        {name: 'XXX', response: '居委清单', phone: 13000000000},
      ],
    }
  },
}
</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 2
        padding 0 .05rem
        &+p
          border-left .01rem solid $cardFontColor
</style>
