Browse Source

fix: change educational socialSecurity

DESKTOP-USV654P\pc 1 month ago
parent
commit
6679e705cd
2 changed files with 5 additions and 1 deletions
  1. 1 1
      Makefile
  2. 4 0
      src/views/educational/socialSecurity/components/data.config.ts

+ 1 - 1
Makefile

@@ -12,7 +12,7 @@ build:
 
 commit:
 	git add . && \
-	git commit --no-verify -m "fix: add educational socialSecurity"
+	git commit --no-verify -m "fix: change educational socialSecurity"
 
 checkPre:
 	git checkout pre

+ 4 - 0
src/views/educational/socialSecurity/components/data.config.ts

@@ -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年');
+    },
   },
 ];