Prechádzať zdrojové kódy

fix: 项目管理-隐藏新建项目、项目编辑按钮

outaozhen 3 rokov pred
rodič
commit
faf79836f3
1 zmenil súbory, kde vykonal 19 pridanie a 19 odobranie
  1. 19 19
      src/pages/Project/Management/List/index.tsx

+ 19 - 19
src/pages/Project/Management/List/index.tsx

@@ -127,7 +127,7 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
       onHeaderCell: () => ({ style: { textAlign: 'center' } }),
       render: (_, record) => (
         <div className="divide-x divide-bg-gray-400 flex flex-row justify-center items-center">
-          <div
+          {/* <div
             className="pr-2 text-primary cursor-pointer hover:text-hex-967bbd"
             onClick={() => {
               setState({
@@ -139,10 +139,10 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
               })
             }}>
             编辑
-          </div>
+          </div> */}
 
           <div
-            className="pl-2 text-hex-fd3995 cursor-pointer hover:text-hex-e7026e"
+            className="text-hex-fd3995 cursor-pointer hover:text-hex-e7026e"
             onClick={() => handleDelProject(record.ID)}>
             <DeleteOutlined />
           </div>
@@ -186,22 +186,22 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
             onSearch: val => setState({ ...state, params: { ...state.params, search: val } }),
             style: { width: '250px' },
             placeholder: '请输入项目名称'
-          },
-          actions: [
-            <Button
-              key="add"
-              type="primary"
-              onClick={() =>
-                setState({
-                  ...state,
-                  visible: true,
-                  currentModalType: ModalType.ADD,
-                  title: null
-                })
-              }>
-              新建项目
-            </Button>
-          ]
+          }
+          // actions: [
+          //   <Button
+          //     key="add"
+          //     type="primary"
+          //     onClick={() =>
+          //       setState({
+          //         ...state,
+          //         visible: true,
+          //         currentModalType: ModalType.ADD,
+          //         title: null
+          //       })
+          //     }>
+          //     新建项目
+          //   </Button>
+          // ]
         }}
         search={false}
       />