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
e09e893d
Commit
e09e893d
authored
May 06, 2023
by
krysent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5.6
parent
d146a050
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
index.jsx
src/pages/dolessons/index.jsx
+8
-9
index.jsx
src/pages/lessons/index.jsx
+1
-3
No files found.
src/pages/dolessons/index.jsx
View file @
e09e893d
...
...
@@ -8,7 +8,7 @@ import editorIsNull from "@/utils/editorIsNull";
import
{
Box
,
Container
,
Grid
,
Link
,
Stack
,
Typography
}
from
"@mui/material"
;
import
{
useParams
}
from
"@umijs/max"
;
import
{
useRequest
}
from
"ahooks"
;
import
{
message
,
Tabs
}
from
"antd"
;
import
{
message
,
Tabs
,
Badge
}
from
"antd"
;
import
{
useEffect
,
useMemo
,
useRef
,
useState
}
from
"react"
;
import
{
history
}
from
"umi"
;
import
"./index.less"
;
...
...
@@ -65,11 +65,7 @@ function Dolessons() {
}
};
useEffect
(()
=>
{
if
(
courseContent
?.
id
)
{
alert
(
0
)
}
},
[
courseContent
?.
id
]);
const
edit
=
(
text
,
row
,
_
,
action
)
=>
{
return
(
...
...
@@ -144,7 +140,7 @@ function Dolessons() {
title
:
"问题内容"
,
dataIndex
:
"question"
,
key
:
"question"
,
width
:
400
,
width
:
400
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
"此项为必填项"
}]
},
},
{
...
...
@@ -260,7 +256,6 @@ function Dolessons() {
},
},
]
}
onFinish=
{
(
val
)
=>
{
const
data
=
{
...
val
};
if
(
editorIsNull
(
data
?.
trainContent
))
{
...
...
@@ -286,7 +281,11 @@ function Dolessons() {
},
{
key
:
"2"
,
label
:
"查看实验"
,
label
:
(
<
Badge
count=
{
lessonDetail
?.
experimentNum
}
size=
"small"
offset=
{
[
6
,
0
]
}
>
查看实验
</
Badge
>
),
children
:
(
<
Box
boxShadow=
{
"0 0 18px #f0f0f0"
}
borderRadius=
{
2
}
>
<
AutoTable
...
...
src/pages/lessons/index.jsx
View file @
e09e893d
...
...
@@ -64,7 +64,6 @@ function Lessons() {
params
:
{
courseId
:
row
?.
id
},
}).
then
((
res
)
=>
{
if
(
res
.
code
===
"0000"
)
{
console
.
log
(
res
?.
data
?.
dataList
);
setdialogprops
({
open
:
true
,
maxWidth
:
"xl"
,
...
...
@@ -126,7 +125,7 @@ function Lessons() {
dialogprops=
{
dialogprops
}
maxWidth=
{
dialogprops
?.
maxWidth
??
"xs"
}
>
{
dialogprops
?.
title
===
"编辑"
?
(
{
dialogprops
?.
title
===
"编辑"
||
dialogprops
?.
title
===
"新增课程"
?
(
<
InitForm
fields=
{
columns
}
defaultFormValue=
{
dialogprops
?.
defaultFormValue
}
...
...
@@ -195,7 +194,6 @@ function Lessons() {
},
]
}
onFinish=
{
(
val
)
=>
{
console
.
log
(
val
);
const
teacherIdList
=
val
?.
teacherIdList
?.
map
((
it
)
=>
it
?.
id
);
runAsync
({
url
:
"/sysCourseTeacher/relationCourseTeacher"
,
...
...
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