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
9c6b3d33
Commit
9c6b3d33
authored
Jul 07, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新备课相关
parent
51aea3d8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
346 additions
and
249 deletions
+346
-249
App.vue
src/App.vue
+3
-1
MainLayout.vue
src/layouts/MainLayout.vue
+2
-2
lessonPreparation.vue
src/pages/course/lessonPreparation.vue
+123
-83
prepareclassDetails.vue
src/pages/course/prepareclassDetails.vue
+218
-163
No files found.
src/App.vue
View file @
9c6b3d33
...
...
@@ -13,7 +13,9 @@ export default {
<
style
>
@import
url('~assets/css/font.css')
;
@import
url('//at.alicdn.com/t/font_2077629_1f7iels6h8w.css')
;
.q-scrollarea__thumb
{
z-index
:
999999
!important
;
}
html
,
body
,
#q-app
{
...
...
src/layouts/MainLayout.vue
View file @
9c6b3d33
...
...
@@ -68,7 +68,7 @@
</div>
</div>
<div
class=
"col"
style=
"background: #f2f4f7;"
>
<q-scroll-area
class=
"fit"
:thumb-style=
"thumbStyle"
:bar-style=
"barStyle"
visible
style=
"
"
>
<q-scroll-area
:thumb-style=
"thumbStyle"
:bar-style=
"barStyle"
visible
class=
"fit content-scroll full-width full-height
"
>
<router-view
/>
</q-scroll-area>
</div>
...
...
@@ -307,7 +307,7 @@
<
style
>
@import
url('~assets/css/common.css')
;
.full-width
{
.
content-scroll
>
.scroll
>
.
full-width
{
height
:
100%
;
}
...
...
src/pages/course/lessonPreparation.vue
View file @
9c6b3d33
...
...
@@ -182,15 +182,28 @@
line-height
:
unset
!important
;
letter-spacing
:
unset
!important
;
}
</
style
>
<
template
>
<div
class=
"row"
>
<div
class=
"page-body lessonPreparation"
style=
"width:40%"
v-if=
"chapter"
>
<div
class=
"prepareTopTitle q-table__title"
>
<div
class=
"row full-height"
>
<div
class=
"page-body lessonPreparation"
style=
"width:40%;height: calc(100% - 30px) !important;"
>
<q-scroll-area
:thumb-style=
"thumbStyle"
:content-style=
"contentStyle"
:content-active-style=
"contentActiveStyle"
class=
"full-width full-height"
>
<div
class=
"row"
>
<div
class=
"prepareTopTitle q-table__title col"
>
<div
class=
"prePare_Line"
></div>
<div>
{{
courseName
}}
</div>
</div>
<div
class=
"prepareTopTitle q-table__title"
v-if=
"chapters && chapters.length>0"
>
<div
class=
"prePare_Line"
></div>
<div>
{{
chapter
.
CourseName
}}
</div>
<div>
{{
chapters
[
0
].
ChapterName
}}
</div>
</div>
</div>
<div
v-if=
"chapters && chapters.length>0"
>
<div
v-for=
"(chapter,i) in chapters[0].ChildList"
>
<div
class=
"preSecond"
>
{{
chapter
.
ChapterName
}}
</div>
...
...
@@ -215,8 +228,17 @@
</div>
<div
class=
"prePare_Content text-center q-pa-lg"
style=
"background:#FBF6F0"
v-else
>
暂无内容
</div>
</div>
<div
class=
"page-body lessonPreparation row col"
>
</div>
<div
v-else
class=
"q-pa-lg bg-grey-2 rounded-borders q-my-lg"
>
暂无章节信息
</div>
</q-scroll-area>
</div>
<div
class=
"page-body lessonPreparation row col"
style=
"height: calc(100% - 30px) !important;"
>
<q-scroll-area
:thumb-style=
"thumbStyle"
:content-style=
"contentStyle"
:content-active-style=
"contentActiveStyle"
class=
"full-width full-height"
>
<div>
<div
class=
"lessTop"
>
备课编辑
</div>
<div
style=
"margin:20px 0;"
>
...
...
@@ -270,13 +292,14 @@
</div>
</div>
<div
style=
"margin-top:30px;"
v-if=
"isShowEdit
"
>
<div
style=
"margin-top:30px;
"
>
<span
class=
"beikeModule"
@
click=
"saveInfo(1)"
>
存为模板
</span>
<q-btn
label=
"提交"
size=
"md"
color=
"accent q-px-md"
@
click=
"saveInfo(0)"
/>
</div>
<lessoncheck-form
v-if=
"IsShowLessForm"
@
close=
"closeTeachSaveForm"
@
success=
"refreshPage"
>
</lessoncheck-form>
</div>
</q-scroll-area>
</div>
</div>
</
template
>
...
...
@@ -299,6 +322,15 @@ export default {
},
data
()
{
return
{
contentStyle
:
{},
contentActiveStyle
:
{},
thumbStyle
:
{
right
:
'2px'
,
borderRadius
:
'5px'
,
backgroundColor
:
'#027be3'
,
width
:
'5px'
,
opacity
:
0.75
},
msg
:
{
ClassId
:
0
,
School_Id
:
0
,
...
...
@@ -321,7 +353,8 @@ export default {
},
IsShowLessForm
:
false
,
nowDate
:
''
,
chapter
:
null
,
chapters
:
null
,
courseName
:
""
,
isShowEdit
:
false
,
//是否显示提交按钮
}
},
...
...
@@ -350,9 +383,16 @@ export default {
console
.
log
(
res
.
Data
)
if
(
res
.
Code
==
1
)
{
let
data
=
res
.
Data
;
if
(
data
.
Chapter
)
{
this
.
chapter
=
data
.
Chapter
if
(
data
.
Chapter
&&
data
.
Chapter
.
length
>
0
)
{
if
(
!
data
.
Chapter
[
0
].
ChildList
||
data
.
Chapter
[
0
].
ChildList
.
length
==
0
){
console
.
log
(
data
.
Chapter
[
0
].
ChildList
.
length
)
data
.
Chapter
[
0
].
ChildList
=
[]
data
.
Chapter
[
0
].
ChildList
.
push
(
data
.
Chapter
[
0
])
}
this
.
chapters
=
data
.
Chapter
}
this
.
courseName
=
data
.
CourseName
// this.addMsg.CourseNum = data.CourseNum;
this
.
addMsg
.
ClassId
=
data
.
ClassId
;
this
.
addMsg
.
School_Id
=
data
.
School_Id
;
...
...
src/pages/course/prepareclassDetails.vue
View file @
9c6b3d33
...
...
@@ -17,8 +17,6 @@
}
.prepareclassDetails
.comment
{
height
:
600px
;
overflow
:
auto
;
padding
:
0
15px
;
}
...
...
@@ -218,39 +216,60 @@
<
template
>
<div
class=
"row prepareclassDetails"
>
<div
class=
"page-body col"
v-if=
"data.Chapter"
>
<div
class=
"prepareTopTitle q-table__title"
>
<div
class=
"page-body col"
style=
"height: calc(100% - 30px) !important;"
v-if=
"data.Chapter"
>
<q-scroll-area
:thumb-style=
"thumbStyle"
:content-style=
"contentStyle"
:content-active-style=
"contentActiveStyle"
class=
"full-width full-height"
>
<div
class=
"row"
>
<div
class=
"prepareTopTitle q-table__title col"
>
<div
class=
"prePare_Line"
></div>
<div>
{{
data
.
CourseName
}}
</div>
</div>
<div
class=
"prepareTopTitle q-table__title"
v-if=
"data.Chapter && data.Chapter.length>0"
>
<div
class=
"prePare_Line"
></div>
<div>
{{
data
.
Chapter
.
CourseName
}}
</div>
<div>
{{
data
.
Chapter
[
0
].
ChapterName
}}
</div>
</div>
</div>
<div
v-if=
"data.Chapter && data.Chapter.length>0"
>
<div
v-for=
"(chapter,i) in data.Chapter[0].ChildList"
>
<div
class=
"preSecond"
>
{{
data
.
C
hapter
.
ChapterName
}}
{{
c
hapter
.
ChapterName
}}
</div>
<div
class=
"prepareTopTitle q-table__title"
>
<div
class=
"prePare_Line"
style=
"background-color:#2961FE"
></div>
<div>
章节学习内容
</div>
</div>
<div
class=
"prePare_Content"
v-if=
"data.Chapter.ChapterContent!=''"
v-html=
"decodeURIComponent(data.Chapter.ChapterContent)"
></div>
<div
class=
"prePare_Content"
v-if=
"chapter.ChapterContent!=''"
v-html=
"decodeURIComponent(chapter.ChapterContent)"
></div>
<div
class=
"prePare_Content text-center q-pa-lg"
v-else
>
暂无内容
</div>
<div
class=
"prepareTopTitle q-table__title"
>
<div
class=
"prePare_Line"
style=
"background-color:#2961FE"
></div>
<div>
教学目标
</div>
</div>
<div
class=
"prePare_Content"
style=
"background:#F7F0FB"
v-if=
"data.Chapter.Objectives!=''"
v-html=
"decodeURIComponent(data.Chapter.Objectives)"
>
<div
class=
"prePare_Content"
style=
"background:#F7F0FB"
v-if=
"chapter.Objectives!=''"
v-html=
"decodeURIComponent(chapter.Objectives)"
>
</div>
<div
class=
"prePare_Content text-center q-pa-lg"
style=
"background:#F7F0FB"
v-else
>
暂无内容
</div>
<div
class=
"prepareTopTitle q-table__title"
>
<div
class=
"prePare_Line"
style=
"background:#2961FE"
></div>
<div>
学生学习要求
</div>
</div>
<div
class=
"prePare_Content"
style=
"background:#FBF6F0"
v-if=
"data.Chapter.Requirement!=''"
v-html=
"decodeURIComponent(data.Chapter.Requirement)"
>
<div
class=
"prePare_Content"
style=
"background:#FBF6F0"
v-if=
"chapter.Requirement!=''"
v-html=
"decodeURIComponent(chapter.Requirement)"
>
</div>
<div
class=
"prePare_Content text-center q-pa-lg"
style=
"background:#FBF6F0"
v-else
>
暂无内容
</div>
</div>
<div
class=
"page-body col"
>
</div>
<div
v-else
class=
"q-pa-lg bg-grey-2 rounded-borders q-my-lg"
>
暂无章节信息
</div>
</q-scroll-area>
</div>
<div
class=
"page-body col"
style=
"height: calc(100% - 30px) !important;"
>
<q-scroll-area
:thumb-style=
"thumbStyle"
:content-style=
"contentStyle"
:content-active-style=
"contentActiveStyle"
class=
"full-width full-height"
>
<div
class=
"q-table__title"
>
备课内容
</div>
<div
style=
"width: 100%;"
>
<div
class=
"row"
style=
"margin-top: 10px;align-items: center"
>
...
...
@@ -336,12 +355,16 @@
课后总结
</div>
</div>
<
template
v-if=
"LessonPlanNum>0&&LessonPlanSummaryNum>0
"
>
<
template
v-if=
"(LessonPlanNum>0&&LessonPlanSummaryNum>0) || this.data.LessonPlanList[0].Summary!=''
"
>
<div
class=
"text14-o q-pa-md Pre-ComBg rounded-borders"
style=
"margin-top:10px;background-color:rgb(251, 246, 240)"
>
{{
conclusion
}}
</div>
<div
style=
"display:flex;flex-wrap: wrap;margin-top:20px;"
>
<div
v-if=
"ImgList.length>0"
v-for=
"(item,index) in ImgList"
>
<div
class=
"pre-ImgDiv"
>
<q-img
:src=
"item"
spinner-color=
"white"
style=
"height: 100%;height:100%"
/>
<el-image
style=
"height: 100%;height:100%"
:src=
"item"
fit=
"cover"
:preview-src-list=
"ImgList"
></el-image>
</div>
</div>
</div>
...
...
@@ -351,7 +374,12 @@
<div
style=
"display:flex;flex-wrap: wrap;margin-top:20px;"
>
<div
v-if=
"ImgList.length>0"
v-for=
"(item,index) in ImgList"
>
<div
class=
"pre-ImgDiv"
>
<q-img
:src=
"item"
spinner-color=
"white"
style=
"height: 100%;height:100%"
/>
<el-image
style=
"height: 100%;height:100%"
:src=
"item"
fit=
"cover"
:preview-src-list=
"ImgList"
></el-image>
<q-btn
size=
"7px"
@
click=
"deleteItemImg(index)"
style=
"position:absolute;right:-5px;top:-5px;"
round
color=
"red"
icon=
"iconfont icon-guanbi1"
/>
</div>
...
...
@@ -369,11 +397,19 @@
<!-- <q-btn color="accent" size="sm" class="q-mr-md marginl-15 margint-15" label="提交" @click="saveOrderInfo()"
:loading="Dloading" v-if="(AccountType==false&&data.IsEditSummary<=0)&&isUpData" /> -->
</div>
</q-scroll-area>
</div>
<div
class=
"col-3"
style=
"position: relative;overflow: hidden;border-radius: 6px;background: #FFF;margin: 5px;height:
800px
"
>
style=
"position: relative;overflow: hidden;border-radius: 6px;background: #FFF;margin: 5px;height:
calc(100% - 30px) !important;
"
>
<div
class=
"q-table__title"
style=
"padding: 15px;"
>
评价
</div>
<q-scroll-area
:thumb-style=
"thumbStyle"
:content-style=
"contentStyle"
:content-active-style=
"contentActiveStyle"
class=
"full-width"
style=
"height:calc(100% - 161px);"
>
<div
class=
"comment"
>
<div
class=
"row"
style=
"width: 100%;height: 50px;align-items: center;justify-content: center;font-size: 16px;color: #999999"
...
...
@@ -402,6 +438,7 @@
</div>
</div>
</div>
</q-scroll-area>
<!-- 评论区域-->
<div
class=
"pl column"
>
<div
class=
"row"
style=
"align-items: center"
>
...
...
@@ -443,6 +480,15 @@
name
:
"prepareclassDetails"
,
data
()
{
return
{
contentStyle
:
{},
contentActiveStyle
:
{},
thumbStyle
:
{
right
:
'2px'
,
borderRadius
:
'5px'
,
backgroundColor
:
'#027be3'
,
width
:
'5px'
,
opacity
:
0.75
},
msg
:
{
ClassId
:
0
,
School_Id
:
0
,
...
...
@@ -529,8 +575,16 @@
getList
()
{
getClassLessPlan
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
data
=
res
.
Data
;
console
.
log
(
this
.
data
,
'data'
);
let
data
=
res
.
Data
;
if
(
data
.
Chapter
&&
data
.
Chapter
.
length
>
0
)
{
if
(
!
data
.
Chapter
[
0
].
ChildList
||
data
.
Chapter
[
0
].
ChildList
.
length
==
0
){
console
.
log
(
data
.
Chapter
[
0
].
ChildList
.
length
)
data
.
Chapter
[
0
].
ChildList
=
[]
data
.
Chapter
[
0
].
ChildList
.
push
(
data
.
Chapter
[
0
])
}
this
.
chapters
=
data
.
Chapter
}
this
.
data
=
data
;
this
.
plmsg
.
TeacherId
=
res
.
Data
.
UpdateBy
;
var
beginTimes
=
this
.
nowDate
.
replace
(
/-/g
,
"/"
);
//当前
var
endTimes
=
this
.
data
.
ClassEndTime
.
replace
(
/-/g
,
"/"
);
//结束
...
...
@@ -545,6 +599,7 @@
if
(
this
.
data
.
LessonPlanList
&&
this
.
data
.
LessonPlanList
.
length
>
0
){
this
.
conclusion
=
this
.
data
.
LessonPlanList
[
0
].
Summary
;
this
.
ImgList
=
this
.
data
.
LessonPlanList
[
0
].
ProjectPicList
;
this
.
isShowBtn
=
false
}
}
})
...
...
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