lanjianrong преди 3 години
родител
ревизия
8f5f239a75
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  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',
       key: 'createdID',
       title: '创建人',
-      renderText: (_, record) => record?.created?.name
+      renderText: (_, record) =>
+        record?.created?.ID
+          ? `${record?.created?.name}(${record?.created?.institution?.name})`
+          : null
     },
     {
       dataIndex: 'reportAccount',