|
@@ -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}
|
|
|
/>
|