Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
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
张伯涛
tea-resources-web
Commits
c505617d
Commit
c505617d
authored
Aug 21, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
6e02bfe3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
index.vue
src/views/courseInformation/classManagement/index.vue
+1
-1
courseCatalogues.vue
...s/courseInformation/courseManagement/courseCatalogues.vue
+2
-2
No files found.
src/views/courseInformation/classManagement/index.vue
View file @
c505617d
...
@@ -1061,7 +1061,7 @@
...
@@ -1061,7 +1061,7 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"needUnitType === '0'"
label=
"课程:"
prop=
"teDirection"
>
<el-form-item
label=
"课程:"
prop=
"teDirection"
>
<el-input
v-model=
"form.lessonName"
placeholder=
"请输入课程名称"
></el-input>
<el-input
v-model=
"form.lessonName"
placeholder=
"请输入课程名称"
></el-input>
<!-- <el-select v-model="form.lessonName" filterable placeholder="请选择课程名称" clearable>-->
<!-- <el-select v-model="form.lessonName" filterable placeholder="请选择课程名称" clearable>-->
<!-- <el-option-->
<!-- <el-option-->
...
...
src/views/courseInformation/courseManagement/courseCatalogues.vue
View file @
c505617d
...
@@ -1925,7 +1925,7 @@ export default {
...
@@ -1925,7 +1925,7 @@ export default {
console
.
log
(
'111111111111111111111'
,
this
.
batchFilelist
)
console
.
log
(
'111111111111111111111'
,
this
.
batchFilelist
)
if
(
this
.
batchFilelist
&&
this
.
batchFilelist
.
length
>
0
)
{
if
(
this
.
batchFilelist
&&
this
.
batchFilelist
.
length
>
0
)
{
this
.
batchFilelist
.
forEach
(
item
=>
{
this
.
batchFilelist
.
forEach
(
item
=>
{
const
name
=
item
.
name
.
split
(
'.'
)
[
0
]
// 便利上传的多份视频,获取每个视频的名字
const
name
=
item
.
name
.
split
(
'.'
)
.
slice
(
0
,
-
1
).
join
(
'.'
)
// 便利上传的多份视频,获取每个视频的名字
this
.
foundNode
=
this
.
findNodeByName
(
this
.
chapterList
,
name
)
// 视频名字所对应的课程小节对象
this
.
foundNode
=
this
.
findNodeByName
(
this
.
chapterList
,
name
)
// 视频名字所对应的课程小节对象
console
.
log
(
'name'
,
name
)
console
.
log
(
'name'
,
name
)
console
.
log
(
'foundNode'
,
this
.
foundNode
)
console
.
log
(
'foundNode'
,
this
.
foundNode
)
...
@@ -1978,7 +1978,7 @@ export default {
...
@@ -1978,7 +1978,7 @@ export default {
},
},
/** 批量上传调用的上传接口*/
/** 批量上传调用的上传接口*/
uploadFun
(
item
,
file
,
itemForm
)
{
uploadFun
(
item
,
file
,
itemForm
)
{
const
name
=
file
.
name
.
split
(
'.'
)
[
0
]
// 便利上传的多份视频,获取每个视频的名字
const
name
=
file
.
name
.
split
(
'.'
)
.
slice
(
0
,
-
1
).
join
(
'.'
)
// 便利上传的多份视频,获取每个视频的名字
const
formData
=
new
FormData
()
// 当前为空
const
formData
=
new
FormData
()
// 当前为空
formData
.
append
(
'type'
,
0
)
formData
.
append
(
'type'
,
0
)
formData
.
append
(
'chapterId'
,
item
.
businessId
)
formData
.
append
(
'chapterId'
,
item
.
businessId
)
...
...
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