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 @@ -