diff --git a/src/views/hr/salary/certification/index.vue b/src/views/hr/salary/certification/index.vue index fe4e1c0..53e9cc3 100644 --- a/src/views/hr/salary/certification/index.vue +++ b/src/views/hr/salary/certification/index.vue @@ -94,24 +94,25 @@ - - - - - - + + + + {{ item.label }} + + + - - - - - {{ user.name }}({{ user.account }}) - - - - - + + + + + {{ user.name }}({{ user.account }}) + + + + @@ -218,7 +219,15 @@ const formRules = { { required: true, message: '请选择有效期结束日期' } ] } - +const CERTIFICATION_TYPE_OPTIONS = [ + { label: '高处作业', value: 'height-operation' }, + { label: '低压电工', value: 'low-voltage-operation' }, + { label: '高压电工', value: 'high-voltage-operation' }, + { label: '海上交通安全', value: 'maritime-traffic-safety' }, + { label: '驾驶证', value: 'driving-license' }, + { label: '防雷检测', value: 'lightning-protection-detection' }, + { label: '无人机驾驶', value: 'drone-driving' } +] // 表格列定义 const columns = [ { @@ -234,7 +243,11 @@ const columns = [ { title: '证书类型', dataIndex: 'certificationType', - width: 150 + width: 150, + render: ({ record }) => { + const type = CERTIFICATION_TYPE_OPTIONS.find(item => item.value === record.certificationType) + return type ? type.label : '-' + } }, { title: '持证人',