#
zhou zhou
2 天以前 c65d967bee45b38f0077cfd8f7971787b7042e98
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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;