|
@@ -1,4 +1,5 @@
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table';
|
|
|
+import { formatToDate } from '/@/utils/dateUtil';
|
|
|
|
|
|
export const type = {
|
|
|
0: '菜单',
|
|
@@ -14,6 +15,9 @@ export const tableColumns: BasicColumn[] = [
|
|
|
title: '年份',
|
|
|
dataIndex: 'dateOfIssue',
|
|
|
width: 150,
|
|
|
+ customRender: ({ text }) => {
|
|
|
+ return formatToDate(text, 'YYYY年');
|
|
|
+ },
|
|
|
},
|
|
|
];
|
|
|
|