Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
ea7e6b42
Commit
ea7e6b42
authored
Jan 22, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
feb59d72
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
22 deletions
+39
-22
lessonPreparation.vue
src/pages/course/lessonPreparation.vue
+39
-22
No files found.
src/pages/course/lessonPreparation.vue
View file @
ea7e6b42
...
...
@@ -326,27 +326,44 @@
//获取选择模板数据
refreshPage
(
val
){
console
.
log
(
val
,
'val'
);
this
.
addMsg
.
LessonPlanList
[
0
].
CourseName
=
val
.
LessonPlanList
[
0
].
CourseName
;
this
.
addMsg
.
LessonPlanList
[
1
].
CourseName
=
val
.
LessonPlanList
[
1
].
CourseName
;
this
.
addMsg
.
LessonPlanList
[
0
].
CourseTitle
=
val
.
LessonPlanList
[
0
].
CourseTitle
;
this
.
addMsg
.
LessonPlanList
[
1
].
CourseTitle
=
val
.
LessonPlanList
[
1
].
CourseTitle
;
val
.
LessonPlanList
[
0
].
LessonPlanDetailsList
.
forEach
(
x
=>
{
let
obj
=
{
ProjectContent
:
x
.
ProjectContent
,
Duration
:
x
.
Duration
if
(
val
&&
val
.
LessonPlanList
.
length
>
0
){
let
data
=
val
.
LessonPlanList
;
data
.
forEach
((
x
,
i
)
=>
{
if
(
i
==
0
){
x
.
LessonPlanId
=
this
.
addMsg
.
LessonPlanList
[
0
].
LessonPlanId
;
}
else
if
(
i
==
1
){
x
.
LessonPlanId
=
this
.
addMsg
.
LessonPlanList
[
1
].
LessonPlanId
;
}
else
{
x
.
LessonPlanId
=
0
;
}
this
.
addMsg
.
LessonPlanList
[
0
].
LessonPlanDetailsList
.
push
(
obj
);
})
val
.
LessonPlanList
[
1
].
LessonPlanDetailsList
.
forEach
(
x
=>
{
let
obj
=
{
ProjectContent
:
x
.
ProjectContent
,
Duration
:
x
.
Duration
this
.
addMsg
.
LessonPlanList
=
data
}
this
.
addMsg
.
LessonPlanList
[
1
].
LessonPlanDetailsList
.
push
(
obj
);
})
this
.
addMsg
.
LessonPlan
[
0
].
LessonPlanProjectsList
[
0
].
ProjectContent
=
val
.
LessonPlanList
[
0
].
LessonPlanProjectsList
[
0
].
ProjectContent
this
.
addMsg
.
LessonPlan
[
1
].
LessonPlanProjectsList
[
1
].
ProjectContent
=
val
.
LessonPlanList
[
1
].
LessonPlanProjectsList
[
1
].
ProjectContent
// this.addMsg.LessonPlanList[0].CourseName = val.LessonPlanList[0].CourseName;
// this.addMsg.LessonPlanList[1].CourseName = val.LessonPlanList[1].CourseName;
// this.addMsg.LessonPlanList[0].CourseTitle = val.LessonPlanList[0].CourseTitle;
// this.addMsg.LessonPlanList[1].CourseTitle = val.LessonPlanList[1].CourseTitle;
// val.LessonPlanList[0].LessonPlanDetailsList.forEach(x=>{
// let obj={
// ProjectContent:x.ProjectContent,
// Duration:x.Duration
// }
// this.addMsg.LessonPlanList[0].LessonPlanDetailsList.push(obj);
// })
// val.LessonPlanList[1].LessonPlanDetailsList.forEach(x=>{
// let obj={
// ProjectContent:x.ProjectContent,
// Duration:x.Duration
// }
// this.addMsg.LessonPlanList[1].LessonPlanDetailsList.push(obj);
// })
//
// this.addMsg.LessonPlan[0].LessonPlanProjectsList[0].ProjectContent = val.LessonPlanList[0].LessonPlanProjectsList[0].ProjectContent
// this.addMsg.LessonPlan[1].LessonPlanProjectsList[1].ProjectContent = val.LessonPlanList[1].LessonPlanProjectsList[1].ProjectContent
},
//提交
saveInfo
(
num
)
{
...
...
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