perf: 证书仓库增加有效期显示

pull/361/head
xiaojunnuo 2025-03-12 11:15:46 +08:00
parent aa3032db35
commit be87124ada
1 changed files with 19 additions and 4 deletions

View File

@ -140,7 +140,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
} }
}, },
rowHandle: { rowHandle: {
width: 200, width: 100,
fixed: "right", fixed: "right",
buttons: { buttons: {
view: { show: false }, view: { show: false },
@ -223,8 +223,8 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
show: false show: false
} }
}, },
expiresTime: { expiresLeft: {
title: "过期时间", title: "有效天数",
search: { search: {
show: false show: false
}, },
@ -234,7 +234,9 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
}, },
column: { column: {
sorter: true, sorter: true,
cellRender({ value }) { conditionalRender: false,
cellRender({ row }) {
const value = row.expiresTime;
if (!value) { if (!value) {
return "-"; return "-";
} }
@ -246,6 +248,19 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
} }
} }
}, },
expiresTime: {
title: "过期时间",
search: {
show: false
},
type: "datetime",
form: {
show: false
},
column: {
sorter: true
}
},
certProvider: { certProvider: {
title: "证书颁发机构", title: "证书颁发机构",
search: { search: {