personCertificationStatusTable.vue 3.03 KB
<template>
  <a-card title="认证状态信息" :bordered="false">
    <div>
      <a-table ref="table" size="middle" bordered  :columns="personApproveData" :dataSource="collCreditStatusList" :pagination="false" :loading="loading" :rowKey="record => record.id" @change="handleTableChange">
        <!-- <span slot="action" slot-scope="text, record">
          <a @click="handleEdit(record)">修改</a>
          <a-divider type="vertical" />
          <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete()">
            <a>删除</a>
          </a-popconfirm>
        </span> -->
      </a-table>
    </div>
  </a-card>
</template>

<script>
import { JeecgListMixin } from '@/mixins/CoreListMixin'
export default {
  name: 'personCertificationStatusTable',
  mixins: [JeecgListMixin],
  props: {
    userType: {
      type: Number,
      default: null,
    },
    collCreditStatusList:{
      type:Array,
      default:[]
    }
  },
  data () {
    return {
      creditCertCode:JSON.parse(sessionStorage.getItem('CREDITCERTCODE')),
      creditCertDetailCode:JSON.parse(sessionStorage.getItem('CREDITCERTDETAILCODE')),
      personApproveData: [
        {
          title: '序号',
          dataIndex: '',
          key: 'rowIndex',
          align: 'center',
          width: 60,
          customRender: function (t, r, index) {
            return parseInt(index) + 1
          }
        },
        {
          title: '认证名称',
          align: 'center',
          dataIndex: 'certCode',
          customRender: (t,r,index)=> {
            for(var i=0; i<this.creditCertCode.length; i++){
              if(t === this.creditCertCode[i].name){
                return this.creditCertCode[i].title
              }
            }
          }
        },
        {
          title: '节点服务',
          align: 'center',
          dataIndex: 'certDetailCode',
          customRender: (t,r,index)=> {
            for(var i=0; i<this.creditCertDetailCode.length; i++){
              if(t === this.creditCertDetailCode[i].name){
                return this.creditCertDetailCode[i].title
              }
            }
          }
        },
        {
          title: '认证结果',
          align: 'center',
          dataIndex: 'certStatus',
          customRender: function (t, r, index) {
            if(t==0){
              return '初始化'
            }else if(t==1){
              return '成功'
            }else if(t==2){
              return '失败'
            }else if(t==3){
              return '认证中'
            }
          }
        },
        {
          title: '认证日期',
          align: 'center',
          dataIndex: 'certDate'
        },
        {
          title: '备注',
          align: 'center',
          dataIndex: 'remark'
        },
        {
          title: '操作',
          dataIndex: 'action',
          scopedSlots: { customRender: 'action' },
          align: 'center',
          width: 150,
          fixed: 'right'
        }
      ],
      disableMixinCreated:true,
    }
  },
  methods: {

  }
}
</script>
<style>
</style>