Commit 9ae4cd62 authored by maojiafeng's avatar maojiafeng

毛佳锋写的

parent 282acf4b
Pipeline #3374 failed with stages
in 2 minutes and 13 seconds
...@@ -124,6 +124,11 @@ export default [ ...@@ -124,6 +124,11 @@ export default [
path: "/work/mybustrain", path: "/work/mybustrain",
component: "./mybustrain", component: "./mybustrain",
}, },
{
name: "实训成绩",
path: "/work/myrebustrain/:id",
component: "./myrebustrain",
},
{ {
name: "成绩单", name: "成绩单",
path: "/work/record", path: "/work/record",
......
...@@ -209,7 +209,7 @@ export default function ShopProductCard({ ...@@ -209,7 +209,7 @@ export default function ShopProductCard({
<IconButton <IconButton
disabled={shut === "1"} disabled={shut === "1"}
onClick={() => { onClick={() => {
history.push("/work/myrebustrain/" + product.id);
}} }}
> >
<CheckIcon <CheckIcon
......
import AutoTable from "@/components/AutoTable";
import { useParams } from "@umijs/max";
import { Box, Container, Stack, Typography } from "@mui/material";
import { useMemo, useRef } from "react";
import "./index.less";
function Record() {
const actionRef = useRef();
const params = useParams();
const columns = useMemo(() => {
let res = [
{ title: "课程名称", dataIndex: "courseName", key: "courseName" },
{ title: "实训名称", dataIndex: "trainName", key: "trainName" },
{ title: "实验名称", dataIndex: "experimentName", key: "experimentName" },
{
title: "分数",
dataIndex: "scoreWeight",
key: "scoreWeight",
hideInSearch: true,
},
{
title: "提交时间",
dataIndex: "finishTime",
key: "finishTimeRange",
valueType: "dateTimeRange",
},
{
title: "批阅时间",
dataIndex: "reviewTime",
key: "reviewTimeRange",
valueType: "dateTimeRange",
},
{
title: "批阅状态",
dataIndex: "reviewTypeName",
key: "reviewType",
valueType: "select",
options: [
{ label: "待批阅", value: "1" },
{ label: "已批阅", value: "2" },
],
},
];
return res;
}, []);
return (
<Container maxWidth={false}>
<Stack direction={"row"} mb={2}>
<Typography variant="h5">成绩单</Typography>
</Stack>
<Box boxShadow={"0 0 18px #f0f0f0"} borderRadius={2}>
<AutoTable
actionRef={actionRef}
scroll={{ x: 1366 }}
columns={[...columns]}
path={"/studentTrain/experimentPage"}
extraparams={{
id: params?.id,
}}
></AutoTable>
</Box>
</Container>
);
}
export default Record;
.white {
.ant-pro-card {
background-color: #f6f6f6 !important;
}
.ant-table-tbody,td {
background-color: #f9f9f9 !important;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment