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
89a3da6b
Commit
89a3da6b
authored
Aug 15, 2023
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
2067db83
Pipeline
#4232
failed with stages
in 3 minutes and 27 seconds
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
307 additions
and
238 deletions
+307
-238
index.jsx
src/pages/checkhomework/index.jsx
+84
-44
index.jsx
src/pages/lessons/index.jsx
+0
-3
index.jsx
src/pages/mybustrain/index.jsx
+0
-3
index.jsx
src/pages/rebustrain/index.jsx
+223
-188
No files found.
src/pages/checkhomework/index.jsx
View file @
89a3da6b
...
...
@@ -83,6 +83,32 @@ function Checkhomework() {
);
};
const
remove
=
(
text
,
row
,
_
)
=>
{
return
(
<
PremButton
pop=
{
{
disabled
:
row
?.
reviewType
!==
1
,
title
:
"是否退回该实训?"
,
okText
:
"确认"
,
cancelText
:
"取消"
,
onConfirm
:
async
()
=>
{
await
runAsync
({
url
:
"/studentExperiment/remake"
,
params
:
{
id
:
row
?.
id
},
});
},
}
}
btn=
{
{
disabled
:
row
?.
reviewType
!==
1
,
size
:
"small"
,
color
:
"error"
,
}
}
>
退回
</
PremButton
>
);
};
const
columns
=
useMemo
(
()
=>
[
{
title
:
"学生姓名"
,
dataIndex
:
"studentName"
,
key
:
"studentName"
},
...
...
@@ -223,50 +249,64 @@ function Checkhomework() {
}
);
const
items
=
[
{
key
:
"2"
,
label
:
`已提交`
,
children
:
(
<
Box
boxShadow=
{
"0 0 18px #f0f0f0"
}
borderRadius=
{
2
}
>
<
AutoTable
actionRef=
{
actionRefs
}
formRef=
{
formRefs
}
scroll=
{
{
x
:
1366
}
}
columns=
{
[
...
columes
,
{
title
:
"操作"
,
valueType
:
"option"
,
width
:
88
,
render
:
(
text
,
row
,
_
,
action
)
=>
[
audit
(
text
,
row
,
_
,
action
)],
},
]
}
path=
"/studentExperiment/queryPageByLoginTeacher"
rerendered=
{
false
}
extraparams=
{
{
type
:
"2"
}
}
></
AutoTable
>
</
Box
>
),
},
{
key
:
"1"
,
label
:
`待提交`
,
children
:
(
<
Box
boxShadow=
{
"0 0 18px #f0f0f0"
}
borderRadius=
{
2
}
>
<
AutoTable
actionRef=
{
actionRef
}
formRef=
{
formRef
}
scroll=
{
{
x
:
1366
}
}
columns=
{
[...
columns
]
}
extraparams=
{
{
type
:
"1"
}
}
path=
"/studentExperiment/queryPageByLoginTeacher"
rerendered=
{
false
}
></
AutoTable
>
</
Box
>
),
},
];
//全部数量
let
totaldata
=
useRequest
(
async
()
=>
{
let
res
=
await
doFetch
({
url
:
"/studentExperiment/queryCountByLoginTeacher"
,
params
:
{},
});
return
res
?.
data
?.
data
;
},
{});
const
items
=
useMemo
(()
=>
{
return
[
{
key
:
"2"
,
label
:
`已提交
${
totaldata
?.
data
?.
submitNum
??
0
}
`,
children: (
<Box boxShadow={"0 0 18px #f0f0f0"} borderRadius={2}>
<AutoTable
actionRef={actionRefs}
formRef={formRefs}
scroll={{ x: 1366 }}
columns={[
...columes,
{
title: "操作",
valueType: "option",
width: 136,
render: (text, row, _, action) => [
audit(text, row, _, action),
remove(text, row, _, action)
],
},
]}
path="/studentExperiment/queryPageByLoginTeacher"
rerendered={false}
extraparams={{ type: "2" }}
></AutoTable>
</Box>
),
},
{
key: "1",
label: `
待提交
$
{
totaldata
?.
data
?.
notSubmitNum
??
0
}
`,
children: (
<Box boxShadow={"0 0 18px #f0f0f0"} borderRadius={2}>
<AutoTable
actionRef={actionRef}
formRef={formRef}
scroll={{ x: 1366 }}
columns={[...columns]}
extraparams={{ type: "1" }}
path="/studentExperiment/queryPageByLoginTeacher"
rerendered={false}
></AutoTable>
</Box>
),
},
];
}, [totaldata]);
return (
<Container maxWidth={false}>
...
...
src/pages/lessons/index.jsx
View file @
89a3da6b
...
...
@@ -6,9 +6,6 @@ import ShopProductLoadingCard from "@/components/ProductCard/loading";
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
PRODUCTS
from
"@/_mock/products"
;
import
{
Box
,
Container
,
Grid
,
Stack
,
Typography
}
from
"@mui/material"
;
import
Checkbox
from
"@mui/material/Checkbox"
;
import
FormControlLabel
from
"@mui/material/FormControlLabel"
;
import
FormGroup
from
"@mui/material/FormGroup"
;
import
{
useRequest
}
from
"ahooks"
;
import
{
Empty
,
Input
,
message
,
Tabs
}
from
"antd"
;
import
{
useMemo
,
useState
}
from
"react"
;
...
...
src/pages/mybustrain/index.jsx
View file @
89a3da6b
...
...
@@ -5,9 +5,6 @@ import ShopProductCard from "@/components/ProductCard/stucard";
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
PRODUCTS
from
"@/_mock/products"
;
import
{
Box
,
Container
,
Grid
,
Stack
,
Typography
}
from
"@mui/material"
;
import
Checkbox
from
"@mui/material/Checkbox"
;
import
FormControlLabel
from
"@mui/material/FormControlLabel"
;
import
FormGroup
from
"@mui/material/FormGroup"
;
import
{
useRequest
}
from
"ahooks"
;
import
{
Empty
,
Input
,
message
,
Tabs
}
from
"antd"
;
import
{
useMemo
,
useState
}
from
"react"
;
...
...
src/pages/rebustrain/index.jsx
View file @
89a3da6b
This diff is collapsed.
Click to expand it.
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