From 70fca26e10e184a730d44a708ac8337787cdd796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=BE=B7=E8=B6=85?= <13143889+he-dechao@user.noreply.gitee.com> Date: Thu, 24 Jul 2025 22:02:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=81=E4=B9=A6=E7=B1=BB=E5=9E=8B=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=B8=8E=E5=90=8E=E7=AB=AF=E6=9E=9A=E4=B8=BE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=8C=B9=E9=85=8D=E7=9A=84=E4=B8=8B=E6=8B=89=E6=A1=86?= =?UTF-8?q?=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/hr/salary/certification/index.vue | 51 +++++++++++++-------- 1 file changed, 32 insertions(+), 19 deletions(-) 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: '持证人',