|
@@ -86,18 +86,18 @@ const TableList: React.FC<{}> = () => {
|
|
</div>);
|
|
</div>);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- {
|
|
|
|
- title: '间隔时间',
|
|
|
|
- dataIndex: 'period',
|
|
|
|
- width: 110,
|
|
|
|
- hideInSearch: true,
|
|
|
|
- hideInForm: true,
|
|
|
|
- render: (text, row) => {
|
|
|
|
- return (<>
|
|
|
|
- <span>{minuteToDay(row.period)}</span>
|
|
|
|
- </>);
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // title: '间隔时间',
|
|
|
|
+ // dataIndex: 'period',
|
|
|
|
+ // width: 110,
|
|
|
|
+ // hideInSearch: true,
|
|
|
|
+ // hideInForm: true,
|
|
|
|
+ // render: (text, row) => {
|
|
|
|
+ // return (<>
|
|
|
|
+ // <span>{minuteToDay(row.period)}</span>
|
|
|
|
+ // </>);
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
title: '提醒时间',
|
|
title: '提醒时间',
|
|
dataIndex: 'remindTime',
|
|
dataIndex: 'remindTime',
|
|
@@ -119,11 +119,21 @@ const TableList: React.FC<{}> = () => {
|
|
{
|
|
{
|
|
title: '操作',
|
|
title: '操作',
|
|
dataIndex: 'option',
|
|
dataIndex: 'option',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 200,
|
|
valueType: 'option',
|
|
valueType: 'option',
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
render: (_, record, index, action) => (
|
|
render: (_, record, index, action) => (
|
|
<>
|
|
<>
|
|
|
|
+ <a
|
|
|
|
+ onClick={(e) => {
|
|
|
|
+ e.stopPropagation();
|
|
|
|
+ setFormValues(record);
|
|
|
|
+ setShowVisible(true);
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
|
|
+ 查看
|
|
|
|
+ </a>
|
|
|
|
+ <Divider type="vertical"/>
|
|
<a
|
|
<a
|
|
onClick={(e) => {
|
|
onClick={(e) => {
|
|
e.stopPropagation();
|
|
e.stopPropagation();
|
|
@@ -188,22 +198,6 @@ const TableList: React.FC<{}> = () => {
|
|
}}
|
|
}}
|
|
columns={columns}
|
|
columns={columns}
|
|
// rowSelection={{}}
|
|
// rowSelection={{}}
|
|
- onRow={record => {
|
|
|
|
- return {
|
|
|
|
- onClick: event => {
|
|
|
|
- setFormValues(record);
|
|
|
|
- setShowVisible(true);
|
|
|
|
- }, // 点击行
|
|
|
|
- onDoubleClick: event => {
|
|
|
|
- },
|
|
|
|
- onContextMenu: event => {
|
|
|
|
- },
|
|
|
|
- onMouseEnter: event => {
|
|
|
|
- }, // 鼠标移入行
|
|
|
|
- onMouseLeave: event => {
|
|
|
|
- },
|
|
|
|
- };
|
|
|
|
- }}
|
|
|
|
/>
|
|
/>
|
|
{modelVisible ? (
|
|
{modelVisible ? (
|
|
<UpdateForm
|
|
<UpdateForm
|
|
@@ -214,8 +208,7 @@ const TableList: React.FC<{}> = () => {
|
|
}
|
|
}
|
|
}}
|
|
}}
|
|
modalVisible={modelVisible}
|
|
modalVisible={modelVisible}
|
|
- values={formValues}>
|
|
|
|
- </UpdateForm>
|
|
|
|
|
|
+ values={formValues} />
|
|
) : null}
|
|
) : null}
|
|
{showVisible ? (
|
|
{showVisible ? (
|
|
<Modal
|
|
<Modal
|