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
3e1836eb
Commit
3e1836eb
authored
May 27, 2024
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change srtykl
parent
ff30c509
Pipeline
#7651
passed with stages
in 21 minutes and 17 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
8 deletions
+73
-8
index.jsx
src/pages/checkhomework/index.jsx
+25
-3
index.jsx
src/pages/myrecord/index.jsx
+23
-1
index.jsx
src/pages/rebustrain/index.jsx
+25
-4
No files found.
src/pages/checkhomework/index.jsx
View file @
3e1836eb
...
@@ -6,7 +6,7 @@ import PremButton from "@/components/PremButton";
...
@@ -6,7 +6,7 @@ import PremButton from "@/components/PremButton";
import
SplitDesc
from
"@/components/SplitDesc"
;
import
SplitDesc
from
"@/components/SplitDesc"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
{
doFetch
}
from
"@/utils/doFetch"
;
import
{
ProDescriptions
}
from
"@ant-design/pro-components"
;
import
{
ProDescriptions
}
from
"@ant-design/pro-components"
;
import
{
Box
,
Container
,
Stack
,
Typography
}
from
"@mui/material"
;
import
{
Box
,
Button
,
Container
,
Stack
,
Typography
}
from
"@mui/material"
;
import
{
useRequest
}
from
"ahooks"
;
import
{
useRequest
}
from
"ahooks"
;
import
{
Divider
,
Drawer
,
message
,
Table
,
Tabs
,
Tag
,
Tooltip
}
from
"antd"
;
import
{
Divider
,
Drawer
,
message
,
Table
,
Tabs
,
Tag
,
Tooltip
}
from
"antd"
;
import
{
useMemo
,
useRef
,
useState
}
from
"react"
;
import
{
useMemo
,
useRef
,
useState
}
from
"react"
;
...
@@ -475,11 +475,31 @@ function Checkhomework() {
...
@@ -475,11 +475,31 @@ function Checkhomework() {
<div style={{ position: "relative", minHeight: 360 }}>
<div style={{ position: "relative", minHeight: 360 }}>
<Drawer
<Drawer
{...drawer}
{...drawer}
width={"100
%
"} //fixer
width={"100
vh
"} //fixer
title={false}
title={false}
closable={false}
closable={false}
destroyOnClose
destroyOnClose
>
>
<Button
variant="contained"
style={{
position: "absolute",
right: 18,
top: 18,
zIndex: 9999,
}}
color="error"
onClick={() => {
setDrawer((s) => {
return {
...s,
open: false,
};
});
}}
>
ESC
</Button>
<PointViewer
<PointViewer
position={drawer?.position}
position={drawer?.position}
CurGongjianData={dialogprops?.tabdata?.CurGongjianData}
CurGongjianData={dialogprops?.tabdata?.CurGongjianData}
...
@@ -583,6 +603,7 @@ function Checkhomework() {
...
@@ -583,6 +603,7 @@ function Checkhomework() {
}));
}));
}}
}}
style={{ cursor: "pointer" }}
style={{ cursor: "pointer" }}
color="#13c2c2"
>
>
{its.Name}
{its.Name}
</Tag>
</Tag>
...
@@ -624,6 +645,7 @@ function Checkhomework() {
...
@@ -624,6 +645,7 @@ function Checkhomework() {
}));
}));
}}
}}
style={{ cursor: "pointer" }}
style={{ cursor: "pointer" }}
color="#13c2c2"
>
>
{its.Name}
{its.Name}
</Tag>
</Tag>
...
@@ -659,7 +681,7 @@ function Checkhomework() {
...
@@ -659,7 +681,7 @@ function Checkhomework() {
dataIndex: "testTime",
dataIndex: "testTime",
key: "testTime",
key: "testTime",
render: (text, record) => {
render: (text, record) => {
return record.testTime +
'分'
;
return record.testTime +
"分"
;
},
},
},
},
{
{
...
...
src/pages/myrecord/index.jsx
View file @
3e1836eb
...
@@ -266,11 +266,31 @@ function Record() {
...
@@ -266,11 +266,31 @@ function Record() {
<
div
style=
{
{
position
:
"relative"
,
minHeight
:
360
}
}
>
<
div
style=
{
{
position
:
"relative"
,
minHeight
:
360
}
}
>
<
Drawer
<
Drawer
{
...
drawer
}
{
...
drawer
}
width=
{
"100
%
"
}
//fixer
width=
{
"100
vh
"
}
//fixer
title=
{
false
}
title=
{
false
}
closable=
{
false
}
closable=
{
false
}
destroyOnClose
destroyOnClose
>
>
<
Button
variant=
"contained"
style=
{
{
position
:
"absolute"
,
right
:
18
,
top
:
18
,
zIndex
:
9999
,
}
}
color=
"error"
onClick=
{
()
=>
{
setDrawer
((
s
)
=>
{
return
{
...
s
,
open
:
false
,
};
});
}
}
>
ESC
</
Button
>
<
PointViewer
<
PointViewer
position=
{
drawer
?.
position
}
position=
{
drawer
?.
position
}
CurGongjianData=
{
dialogprops
?.
tabdata
?.
CurGongjianData
}
CurGongjianData=
{
dialogprops
?.
tabdata
?.
CurGongjianData
}
...
@@ -372,6 +392,7 @@ function Record() {
...
@@ -372,6 +392,7 @@ function Record() {
}));
}));
}
}
}
}
style=
{
{
cursor
:
"pointer"
}
}
style=
{
{
cursor
:
"pointer"
}
}
color=
"#13c2c2"
>
>
{
its
.
Name
}
{
its
.
Name
}
</
Tag
>
</
Tag
>
...
@@ -413,6 +434,7 @@ function Record() {
...
@@ -413,6 +434,7 @@ function Record() {
}));
}));
}
}
}
}
style=
{
{
cursor
:
"pointer"
}
}
style=
{
{
cursor
:
"pointer"
}
}
color=
"#13c2c2"
>
>
{
its
.
Name
}
{
its
.
Name
}
</
Tag
>
</
Tag
>
...
...
src/pages/rebustrain/index.jsx
View file @
3e1836eb
...
@@ -51,7 +51,7 @@ function Dolessons() {
...
@@ -51,7 +51,7 @@ function Dolessons() {
{
{
refreshDeps
:
[
active
],
refreshDeps
:
[
active
],
onSuccess
:
(
data
,
params
)
=>
{
onSuccess
:
(
data
,
params
)
=>
{
if
(
data
?.
code
!==
"0000"
)
{
if
(
data
?.
code
!==
"0000"
)
{
return
;
return
;
}
}
setdatas
((
s
)
=>
({
setdatas
((
s
)
=>
({
...
@@ -435,11 +435,31 @@ function Dolessons() {
...
@@ -435,11 +435,31 @@ function Dolessons() {
<div style={{ position: "relative", minHeight: 360 }}>
<div style={{ position: "relative", minHeight: 360 }}>
<Drawer
<Drawer
{...drawer}
{...drawer}
width={"100
%
"} //fixer
width={"100
vh
"} //fixer
title={false}
title={false}
closable={false}
closable={false}
destroyOnClose
destroyOnClose
>
>
<Button
variant="contained"
style={{
position: "absolute",
right: 18,
top: 18,
zIndex: 9999,
}}
color="error"
onClick={() => {
setDrawer((s) => {
return {
...s,
open: false,
};
});
}}
>
ESC
</Button>
<PointViewer
<PointViewer
position={drawer?.position}
position={drawer?.position}
CurGongjianData={dialogprops?.tabdata?.CurGongjianData}
CurGongjianData={dialogprops?.tabdata?.CurGongjianData}
...
@@ -543,6 +563,7 @@ function Dolessons() {
...
@@ -543,6 +563,7 @@ function Dolessons() {
}));
}));
}}
}}
style={{ cursor: "pointer" }}
style={{ cursor: "pointer" }}
color="#13c2c2"
>
>
{its.Name}
{its.Name}
</Tag>
</Tag>
...
@@ -584,6 +605,7 @@ function Dolessons() {
...
@@ -584,6 +605,7 @@ function Dolessons() {
}));
}));
}}
}}
style={{ cursor: "pointer" }}
style={{ cursor: "pointer" }}
color="#13c2c2"
>
>
{its.Name}
{its.Name}
</Tag>
</Tag>
...
@@ -619,8 +641,7 @@ function Dolessons() {
...
@@ -619,8 +641,7 @@ function Dolessons() {
dataIndex: "testTime",
dataIndex: "testTime",
key: "testTime",
key: "testTime",
render: (text, record) => {
render: (text, record) => {
return record.testTime + '分';
return record.testTime + "分";
},
},
},
},
{
{
...
...
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