<template>
  <div>
    <a-row>
      <a-col :span="24">
        <div class="tb-title">
          <span>项目组主要成员 <strong style="color: red;">(注：不包含项目申请人)</strong></span>
        </div>
      </a-col>
    </a-row>
    <a-row type="flex" class="row_center">
      <a-col :span="1" class="bg-gray">
        <div class="special-middle">
          <div>序号</div>
        </div>
      </a-col>
      <a-col :span="1" class="bg-gray">
        <div class="special-middle">
          <div>姓名</div>
        </div>
      </a-col>
      <a-col :span="1" class="bg-gray">
        <div class="special-middle">
          <div>出生年月</div>
        </div>
      </a-col>
      <a-col :span="1" class="bg-gray">
        <div class="special-middle">
          <div>性别</div>
        </div>
      </a-col>
      <a-col :span="1" class="bg-gray">
        <div class="special-middle">
          <div>职称</div>
        </div>
      </a-col>
      <a-col :span="1" class="bg-gray">
        <div class="special-middle">
          <div>学位</div>
        </div>
      </a-col>
      <a-col :span="2" class="bg-gray">
        <div class="special-middle">
          <div>工作单位</div>
        </div>
      </a-col>
      <a-col :span="2" class="bg-gray">
        <div class="special-middle">
          <div>电话</div>
        </div>
      </a-col>
      <a-col :span="2" class="bg-gray">
        <div class="special-middle">
          <div>电子邮箱</div>
        </div>
      </a-col>
      <a-col :span="3" class="bg-gray">
        <div class="special-middle">
          <div>证件号码</div>
        </div>
      </a-col>
      <a-col :span="2" class="bg-gray">
        <div class="special-middle">
          <div>项目分工</div>
        </div>
      </a-col>
      <a-col :span="2" class="bg-gray">
        <div class="special-middle">
          <div>每年工作（月）</div>
        </div>
      </a-col>
      <a-col :span="5" class="bg-gray">
        <div class="special-middle">
          <div>个人简历</div>
        </div>
      </a-col>
    </a-row>
    <div>
      <a-row v-for="(item, index) in dataList" :key="'memberEdit'+index" type="flex" class="row_center">
        <a-col :span="1">
          <div class="special-middle">
            <div>
              {{ index + 1 }}
            </div>
          </div>
        </a-col>
        <a-col :span="1">
          <div class="special-middle">
            <div>
              {{ item.name }}
            </div>
          </div>
        </a-col>
        <a-col :span="1">
          <div class="special-middle">
            <div>
              {{ moment(item.birthday).format('YYYY-MM') }}
            </div>
          </div>
        </a-col>
        <a-col :span="1">
          <div class="special-middle">
            <div>
              {{ item.sex }}
            </div>
          </div>
        </a-col>
        <a-col :span="1">
          <div class="special-middle">
            <div>
              {{ item.titleName }}
            </div>
          </div>
        </a-col>
        <a-col :span="1">
          <div class="special-middle">
            <div>
              {{ item.degreeName }}
            </div>
          </div>
        </a-col>
        <a-col :span="2">
          <div class="special-middle">
            <div>
              {{ item.workUnit }}
            </div>
          </div>
        </a-col>
        <a-col :span="2">
          <div class="special-middle">
            <div>
              {{ item.mobile }}
            </div>
          </div>
        </a-col>
        <a-col :span="2">
          <div class="special-middle">
            <div>
              {{ item.email }}
            </div>
          </div>
        </a-col>
        <a-col :span="3">
          <div class="special-middle">
            <div>
              {{ item.certId }}
            </div>
          </div>
        </a-col>
        <a-col :span="2">
          <div class="special-middle">
            <div>
              {{ item.projWork }}
            </div>
          </div>
        </a-col>
        <a-col :span="2">
          <div class="special-middle">
            <div>
              {{ item.forMonths }}
            </div>
          </div>
        </a-col>
        <a-col :span="5">
          <div class="special-middle">
            <div v-if="item.fileName" style="text-align: left;">
              <document-view :fileUrl="item.downloadUrl" :fileName="item.fileName" :imageArray="[item.downloadUrl]"></document-view>
            </div>
            <div v-else>无</div>
          </div>
        </a-col>
      </a-row>
    </div>
  </div>
</template>

<script>
//用法 <proj-group-member :members.sync="formData.members" />
import moment from 'moment'

export default {
  name: 'projectMemberInfo',
  data () {
    return {
    }
  },
  props: {
    dataList: {
      type: Array,
      default: () => {
        return []
      }
    },
  },
  components: {

  },
  created () {
  },
  methods: {
    moment,
  }
}
</script>
<style scoped lang="less">
</style> 
