From 44db345ae7731f6ee791301047e83496857859a2 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 5 Feb 2025 15:50:10 +0800 Subject: [PATCH 01/14] =?UTF-8?q?feat:=20=E8=AF=81=E4=B9=A6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=A2=9E=E5=8A=A0=E7=8A=B6=E6=80=81=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/enum.js | 6 ++++++ src/views/hrm/certificate.vue | 23 ++++++++++++++++++++++- src/views/hrm/certificates.vue | 15 +++++++++++++-- 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/src/utils/enum.js b/src/utils/enum.js index df6f5d13..acecc11a 100644 --- a/src/utils/enum.js +++ b/src/utils/enum.js @@ -206,4 +206,10 @@ export const wmState = new EnumFactory({ 30: { text: '返修', type: 'warning' }, 40: { text: '检验', type: 'primary' }, 50: { text: '报废', type: 'danger' }, +}, parseInt) + +export const certStateEnum = new EnumFactory({ + 10: { text: '正常', type: 'success' }, + 20: { text: '临期', type: 'warning' }, + 30: { text: '过期', type: 'danger' } }, parseInt) \ No newline at end of file diff --git a/src/views/hrm/certificate.vue b/src/views/hrm/certificate.vue index 3c3be5e2..11bb3b10 100644 --- a/src/views/hrm/certificate.vue +++ b/src/views/hrm/certificate.vue @@ -35,6 +35,15 @@ :label="item.label" :value="item.value" > + + +
@@ -79,6 +88,16 @@ + + + @@ -185,7 +204,8 @@ -