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
721eae4a
Commit
721eae4a
authored
Jan 13, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3748a040
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
chapterEditor.vue
src/pages/course/chapterEditor.vue
+11
-7
No files found.
src/pages/course/chapterEditor.vue
View file @
721eae4a
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<div
class=
"q-mt-lg"
style=
"height:calc(100% - 140px)"
>
<div
class=
"q-mt-lg"
style=
"height:calc(100% - 140px)"
>
<q-scroll-area
:thumb-style=
"thumbStyle"
:content-style=
"contentStyle"
<q-scroll-area
:thumb-style=
"thumbStyle"
:content-style=
"contentStyle"
:content-active-style=
"contentActiveStyle"
style=
"height: 100%; width: 100%;padding-right:10px;"
>
:content-active-style=
"contentActiveStyle"
style=
"height: 100%; width: 100%;padding-right:10px;"
>
<el-tree
ref=
"chapterTree"
:default-expanded-keys=
"default
ChapterId
"
@
node-click=
"changeNode"
<el-tree
ref=
"chapterTree"
:default-expanded-keys=
"default
ExpandedKeys
"
@
node-click=
"changeNode"
v-loading=
"canOptions"
class=
"chapter-tree"
:data=
"dataList"
empty-text=
"暂无章节数据,请点击”添加同级“开始录入开始吧"
v-loading=
"canOptions"
class=
"chapter-tree"
:data=
"dataList"
empty-text=
"暂无章节数据,请点击”添加同级“开始录入开始吧"
:props=
"defaultProps"
node-key=
"ChapterId"
@
node-drag-start=
"handleDragStart"
:props=
"defaultProps"
node-key=
"ChapterId"
@
node-drag-start=
"handleDragStart"
@
node-drag-enter=
"handleDragEnter"
@
node-drag-leave=
"handleDragLeave"
@
node-drag-over=
"handleDragOver"
@
node-drag-enter=
"handleDragEnter"
@
node-drag-leave=
"handleDragLeave"
@
node-drag-over=
"handleDragOver"
...
@@ -216,6 +216,7 @@
...
@@ -216,6 +216,7 @@
opacity
:
0.75
opacity
:
0.75
}
,
}
,
defaultChapterId
:
0
,
defaultChapterId
:
0
,
defaultExpandedKeys
:[],
//默认展开数组
splitterModel
:
30
,
//左侧默认占据多大
splitterModel
:
30
,
//左侧默认占据多大
isShowChapter
:
false
,
//是否显示导入
isShowChapter
:
false
,
//是否显示导入
chapterObj
:
{
}
,
chapterObj
:
{
}
,
...
@@ -266,9 +267,17 @@
...
@@ -266,9 +267,17 @@
PageCount
:
0
PageCount
:
0
}
;
}
;
}
,
}
,
computed
:
{
accept
:
{
get
()
{
return
'.xls,.xlsx'
;
}
,
}
}
,
created
()
{
created
()
{
if
(
this
.
$route
.
query
.
chapter
)
{
if
(
this
.
$route
.
query
.
chapter
)
{
this
.
defaultChapterId
=
this
.
$route
.
query
.
chapter
;
this
.
defaultChapterId
=
this
.
$route
.
query
.
chapter
;
this
.
defaultExpandedKeys
.
push
(
this
.
defaultChapterId
);
}
}
if
(
this
.
$route
.
query
.
courseId
)
{
if
(
this
.
$route
.
query
.
courseId
)
{
this
.
courseId
=
this
.
$route
.
query
.
courseId
;
this
.
courseId
=
this
.
$route
.
query
.
courseId
;
...
@@ -310,7 +319,6 @@
...
@@ -310,7 +319,6 @@
}
,
}
,
//导入成功获取所有
//导入成功获取所有
getAllWords
(
ChapterId
)
{
getAllWords
(
ChapterId
)
{
console
.
log
(
ChapterId
,
'ChapterId'
);
this
.
wordMsg
.
CourseId
=
this
.
courseId
;
this
.
wordMsg
.
CourseId
=
this
.
courseId
;
this
.
wordMsg
.
ChapterId
=
ChapterId
;
this
.
wordMsg
.
ChapterId
=
ChapterId
;
GetCourseWordsPage
(
this
.
wordMsg
).
then
(
res
=>
{
GetCourseWordsPage
(
this
.
wordMsg
).
then
(
res
=>
{
...
@@ -376,7 +384,6 @@
...
@@ -376,7 +384,6 @@
}
)
}
)
}
,
}
,
changeNode
(
data
,
node
,
ev
)
{
changeNode
(
data
,
node
,
ev
)
{
console
.
log
(
'进入'
);
if
(
this
.
chapter
&&
this
.
chapter
.
ChapterId
>
0
)
{
if
(
this
.
chapter
&&
this
.
chapter
.
ChapterId
>
0
)
{
if
(
this
.
defauRateObj
.
Id
!=
0
)
{
if
(
this
.
defauRateObj
.
Id
!=
0
)
{
this
.
chapter
.
CourseRate
=
this
.
defauRateObj
.
Id
this
.
chapter
.
CourseRate
=
this
.
defauRateObj
.
Id
...
@@ -419,7 +426,6 @@
...
@@ -419,7 +426,6 @@
this
.
addObj
.
CourseId
=
data
.
CourseId
;
this
.
addObj
.
CourseId
=
data
.
CourseId
;
this
.
addObj
.
ChapterId
=
data
.
ChapterId
;
this
.
addObj
.
ChapterId
=
data
.
ChapterId
;
//点击调用章节下的单词
//点击调用章节下的单词
console
.
log
(
'点击了'
);
this
.
getAllWords
(
data
.
ChapterNo
);
this
.
getAllWords
(
data
.
ChapterNo
);
}
,
}
,
updateRate
()
{
updateRate
()
{
...
@@ -760,7 +766,6 @@
...
@@ -760,7 +766,6 @@
}
}
}
}
}
;
}
;
<
/script
>
<
/script
>
<
style
>
<
style
>
...
@@ -795,5 +800,4 @@
...
@@ -795,5 +800,4 @@
font
-
size
:
14
px
;
font
-
size
:
14
px
;
width
:
100
%
width
:
100
%
}
}
<
/style>
<
/style
>
\ No newline at end of file
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