<template>
  <div class="app-container">
    <div class="filter-container" />

    <el-table
      v-loading="listLoading"
      :data="list"
      border
      fit
      highlight-current-row
      style="width: 100%;"
    >
      <el-table-column label="名称" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.name }}</span>
        </template>
      </el-table-column>

      <el-table-column label="名称-藏文" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.nameZ }}</span>
        </template>
      </el-table-column>

      <el-table-column label="性别" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.sex }}</span>
        </template>
      </el-table-column>

      <el-table-column label="描述" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.description }}</span>
        </template>
      </el-table-column>

      <el-table-column label="描述-藏文" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.descriptionZ }}</span>
        </template>
      </el-table-column>

      <el-table-column label="职位" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.duty }}</span>
        </template>
      </el-table-column>

      <el-table-column label="职位-藏文" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.dutyZ }}</span>
        </template>
      </el-table-column>

      <el-table-column label="身份证号" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.idCard }}</span>
        </template>
      </el-table-column>

      <el-table-column label="身份证地址" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.idCardAddress }}</span>
        </template>
      </el-table-column>

      <el-table-column label="注册手机号" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.phone }}</span>
        </template>
      </el-table-column>

      <el-table-column label="常住地(县)Id" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.PermanentResidenceRegionId }}</span>
        </template>
      </el-table-column>

      <el-table-column label="常住地(县)" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.PermanentResidenceRegion }}</span>
        </template>
      </el-table-column>

      <el-table-column label="常住地(镇)Id" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.PermanentResidenceTownId }}</span>
        </template>
      </el-table-column>

      <el-table-column label="常住地(镇)" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.PermanentResidenceTown }}</span>
        </template>
      </el-table-column>

      <el-table-column label="常住地(乡)Id" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.PermanentResidenceTownShipId }}</span>
        </template>
      </el-table-column>

      <el-table-column label="常住地(乡)" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.PermanentResidenceTownShip }}</span>
        </template>
      </el-table-column>

      <el-table-column label="是否是融媒体工作人员" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.isNews ? "是" : "否" }}</span>
        </template>
      </el-table-column>

      <el-table-column label="是否是融媒体领导" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.isNewsLeader ? "是" : "否" }}</span>
        </template>
      </el-table-column>

      <el-table-column label="是否是便民工作人员" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.isConvenience ? "是" : "否" }}</span>
        </template>
      </el-table-column>

      <el-table-column label="是否是便民领导" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.isConvenienceLeader ? "是" : "否" }}</span>
        </template>
      </el-table-column>

      <el-table-column label="行政组织归属" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.organizationAttribution }}</span>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import Pagination from '@/components/Pagination'
import { staffList } from '@/api/staff'

export default {
  components: { Pagination },
  data() {
    return {
      listLoading: false,
      loading: false,
      list: []
    }
  },
  created() {
    this.getList()
  },
  methods: {
    getList() {
      staffList().then(res => {
        console.log(res)
        this.list = res.d.records
      })
    }
  }
}
</script>

<style></style>
