skyouc
2025-05-07 d7041dfde46d11117e48e047be321e0be9209d0f
rsf-admin/src/page/task/TaskList.jsx
@@ -172,7 +172,7 @@
 */
const DoneButton = (props) => {
    const record = useRecordContext();
    const notify = useNotify();
    const notify = useNotify();
    const refresh = useRefresh();
    const clickComplete = (event) => {
        event.stopPropagation();
@@ -211,7 +211,7 @@
        cancleTask(record)
    };
    //取消任务
    const cancleTask = async (row) => {
    const cancleTask = async (row) => {
        console.log(row);
        const { data: { code, data, msg } } = await request.post(`/task/remove/` + row.id);
        if (code === 200) {
@@ -222,11 +222,14 @@
        }
    }
    return (
        <Button
            onClick={clickCancel}
            label="toolbar.cancel">
            <CancelIcon />
        </Button>
        record.taskStatus === 1 ?
            <Button
                onClick={clickCancel}
                label="toolbar.cancel">
                <CancelIcon />
            </Button>
            :
            <></>
    )
}
/**