Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cs_vsofpm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
cs_vsofpm
Commits
9ae4cd62
Commit
9ae4cd62
authored
May 19, 2023
by
maojiafeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
毛佳锋写的
parent
282acf4b
Pipeline
#3374
failed with stages
in 2 minutes and 13 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
1 deletion
+83
-1
routes.ts
config/routes.ts
+5
-0
stucard.jsx
src/components/ProductCard/stucard.jsx
+1
-1
index.jsx
src/pages/myrebustrain/index.jsx
+69
-0
index.less
src/pages/myrebustrain/index.less
+8
-0
No files found.
config/routes.ts
View file @
9ae4cd62
...
@@ -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"
,
...
...
src/components/ProductCard/stucard.jsx
View file @
9ae4cd62
...
@@ -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
...
...
src/pages/myrebustrain/index.jsx
0 → 100644
View file @
9ae4cd62
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
;
src/pages/myrebustrain/index.less
0 → 100644
View file @
9ae4cd62
.white {
.ant-pro-card {
background-color: #f6f6f6 !important;
}
.ant-table-tbody,td {
background-color: #f9f9f9 !important;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment