personCertificationStatusTable.vue
3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<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>