lanjianrong 3 年之前
父節點
當前提交
39304791ce
共有 1 個文件被更改,包括 6 次插入11 次删除
  1. 6 11
      src/pages/Project/Management/index.tsx

+ 6 - 11
src/pages/Project/Management/index.tsx

@@ -72,8 +72,7 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
                 dataID: record.ID
               }
             })
-          }}
-        >
+          }}>
           {text}
         </span>
       )
@@ -138,16 +137,14 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
                   dataID: record.ID
                 }
               })
-            }}
-          >
+            }}>
             编辑
           </div>
           <Popconfirm
             title="确认删除吗?"
             okText="确认"
             cancelText="取消"
-            onConfirm={() => tryDelProject({ ID: record.ID })}
-          >
+            onConfirm={() => tryDelProject({ ID: record.ID })}>
             <div className="pl-2 text-hex-fd3995 cursor-pointer hover:text-hex-e7026e">
               <DeleteOutlined />
             </div>
@@ -188,8 +185,7 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
               type="primary"
               onClick={() =>
                 setState({ ...state, visible: true, currentModalType: ModalType.ADD, title: '' })
-              }
-            >
+              }>
               新建项目
             </Button>
           ]
@@ -206,8 +202,7 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
           </>
         }
         visible={state.visible}
-        onVisibleChange={onAnimateChange}
-      >
+        onVisibleChange={onAnimateChange}>
         {state.currentModalType === ModalType.PREVIEW ? (
           <Detail
             defaultFormData={state.defaultFormData}
@@ -234,6 +229,6 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
 export default connect(
   ({ project, schemaBase }: { project: ProjectModelState; schemaBase: SchemaBaseModelState }) => ({
     pTypeList: project.projectTypeList.map(item => ({ label: item.name, value: item.ID })),
-    schema: schemaBase.base[BaseMenuEnum.PROJECT]?.schema
+    schema: schemaBase.base[BaseMenuEnum.PROJECT]
   })
 )(List)