lanjianrong 3 vuotta sitten
vanhempi
commit
8f5f239a75
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      src/pages/Project/Management/List/index.tsx

+ 4 - 1
src/pages/Project/Management/List/index.tsx

@@ -105,7 +105,10 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
       dataIndex: 'createdID',
       dataIndex: 'createdID',
       key: 'createdID',
       key: 'createdID',
       title: '创建人',
       title: '创建人',
-      renderText: (_, record) => record?.created?.name
+      renderText: (_, record) =>
+        record?.created?.ID
+          ? `${record?.created?.name}(${record?.created?.institution?.name})`
+          : null
     },
     },
     {
     {
       dataIndex: 'reportAccount',
       dataIndex: 'reportAccount',