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
d7936166
Commit
d7936166
authored
Jul 02, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改显示
parent
941c9ecc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
chapter.vue
src/pages/course/chapter.vue
+2
-2
chapterEditor.vue
src/pages/course/chapterEditor.vue
+11
-6
No files found.
src/pages/course/chapter.vue
View file @
d7936166
...
...
@@ -119,8 +119,8 @@
</el-table>
</q-scroll-area>
</div>
<q-dialog
v-model=
"isViewer"
v-if=
"viewObj"
style=
"width:70%;max-height:80%;"
>
<q-card>
<q-dialog
v-model=
"isViewer"
v-if=
"viewObj"
>
<q-card
style=
"width: 540px;max-height:80%;"
>
<q-card-section
class=
"row items-center q-pb-none"
>
<div
class=
"text-h6"
>
{{ viewObj.ChapterName }}
</div>
<q-space
/>
...
...
src/pages/course/chapterEditor.vue
View file @
d7936166
<
template
>
<div
class=
"flex flex-start window-height"
>
<div
class=
"q-pa-lg full-height"
style=
"border-right:1px solid #f5f5f5;width:
39
0px;"
>
<div
class=
"q-pa-lg full-height"
style=
"border-right:1px solid #f5f5f5;width:
45
0px;"
>
<q-card
class=
"q-pa-md bg-dark text-white q-mb-lg"
>
<span>
{{
courseInfo
.
CourseName
}}
</span>
</q-card>
...
...
@@ -33,7 +33,7 @@
<
q
-
badge
class
=
"bg-white text-grey-8"
>
{{
data
.
CourseRateName
.
replace
(
'课程'
,
''
)
}}
<
/q-badge
>
<
q
-
badge
class
=
"q-ml-xs bg-grey-3 text-dark"
>
{{
data
.
StudyHours
}}
课时
<
/q-badge
>
<
q
-
badge
class
=
"q-ml-xs bg-grey-3 text-dark"
>
{{
data
.
StudyHours
}}
分钟
<
/q-badge
>
<
/div
>
<
/div
>
<
/el-tree
>
...
...
@@ -45,7 +45,7 @@
<
div
class
=
"text-h6 q-mb-md"
>
章节学习内容
<
/div
>
<
div
class
=
"row q-mb-md"
>
<
div
class
=
"col q-mr-md"
>
<
q
-
input
square
filled
label
=
"消耗
课时"
v
-
model
=
"chapter.StudyHours"
suffix
=
"课时
"
mask
=
"#"
fill
-
mask
=
"0"
reverse
-
fill
-
mask
><
/q-input
>
<
q
-
input
square
filled
label
=
"消耗
分钟"
v
-
model
=
"chapter.StudyHours"
suffix
=
"分钟
"
mask
=
"#"
fill
-
mask
=
"0"
reverse
-
fill
-
mask
><
/q-input
>
<
/div
>
<
div
class
=
"col"
>
<
q
-
select
:
options
=
"rateList"
option
-
label
=
"Name"
option
-
value
=
"Id"
square
filled
label
=
"关联等级"
v
-
model
=
"defauRateObj"
><
/q-select
>
...
...
@@ -155,10 +155,8 @@ export default {
}
,
created
()
{
if
(
this
.
$route
.
query
.
chapter
){
this
.
defaultChapterId
=
this
.
$route
.
query
.
chapter
this
.
defaultChapterId
=
this
.
$route
.
query
.
chapter
}
console
.
log
(
this
.
$route
.
query
);
if
(
this
.
$route
.
query
.
courseId
)
{
this
.
courseId
=
this
.
$route
.
query
.
courseId
;
this
.
initTree
();
...
...
@@ -303,6 +301,13 @@ export default {
msg
.
Requirement
=
encodeURIComponent
(
msg
.
Requirement
)
saveChapter
(
msg
).
then
(
r
=>
{
this
.
submiting
=
false
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据保存成功!'
,
position
:
'top'
}
)
if
(
this
.
bakObj
.
CourseRate
!=
this
.
defauRateObj
.
Id
){
if
(
this
.
chapter
.
ChildList
&&
this
.
chapter
.
ChildList
.
length
>
0
){
this
.
updateRate
()
...
...
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