import React from "react";
|
import {
|
Edit,
|
SimpleForm,
|
TextInput,
|
NumberInput,
|
} from 'react-admin';
|
import { Stack, Grid, Typography } from '@mui/material';
|
import EditBaseAside from "@/page/components/EditBaseAside";
|
import CustomerTopToolBar from "@/page/components/EditTopToolBar";
|
|
const AiCallLogEdit = () => (
|
<Edit actions={<CustomerTopToolBar />} aside={<EditBaseAside />}>
|
<SimpleForm toolbar={false}>
|
<Grid container width={{ xs: '100%', xl: '80%' }} rowSpacing={3} columnSpacing={3}>
|
<Grid item xs={12}>
|
<Typography variant="h6" gutterBottom>调用详情</Typography>
|
<Stack direction='row' gap={2}>
|
<TextInput source="routeCode" label="路由编码" disabled />
|
<TextInput source="modelCode" label="模型编码" disabled />
|
</Stack>
|
<Stack direction='row' gap={2}>
|
<NumberInput source="attemptNo" label="尝试序号" disabled />
|
<TextInput source="result$" label="结果" disabled />
|
</Stack>
|
<Stack direction='row' gap={2}>
|
<NumberInput source="spendTime" label="耗时(ms)" disabled />
|
</Stack>
|
<Stack direction='row' gap={2}>
|
<TextInput source="err" label="错误信息" fullWidth multiline minRows={4} disabled />
|
</Stack>
|
</Grid>
|
</Grid>
|
</SimpleForm>
|
</Edit>
|
);
|
|
export default AiCallLogEdit;
|