#
luxiaotao1123
2024-09-10 8bd64cd6a3f8721c2b1eb4075e61a1d3381e4aa8
zy-acs-flow/src/page/operationRecord/OperationRecordList.jsx
@@ -42,6 +42,7 @@
import * as Common from '@/utils/common';
import rowSx from './rowSx';
import { format } from 'date-fns';
import OperationDetail from './OperationDetail'
const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({
    '& .css-1vooibu-MuiSvgIcon-root': {
@@ -133,7 +134,10 @@
                <StyledDatagrid
                    preferenceKey='operationRecord'
                    bulkActionButtons={false}
                    rowClick={(id, resource, record) => false}
                    rowClick={(id, resource, record) => {
                        setDrawerVal(!!drawerVal && drawerVal === record ? null : record);
                        return false;
                    }}
                    omit={['appkey', 'statusBool', 'err', 'updateTime', 'createTime', 'memo']}
                    rowSx={rowSx(drawerVal || null)}
                >
@@ -162,6 +166,10 @@
                drawerVal={drawerVal}
                setDrawerVal={setDrawerVal}
            >
                <OperationDetail
                    operation={drawerVal}
                    setDrawerVal={setDrawerVal}
                />
            </PageDrawer>
        </Box>
    )