Commit c505617d authored by 张伯涛's avatar 张伯涛

bug修改

parent 6e02bfe3
......@@ -1061,7 +1061,7 @@
/>
</el-select>
</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-select v-model="form.lessonName" filterable placeholder="请选择课程名称" clearable>-->
<!-- <el-option-->
......
......@@ -1925,7 +1925,7 @@ export default {
console.log('111111111111111111111', this.batchFilelist)
if (this.batchFilelist && this.batchFilelist.length > 0) {
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) // 视频名字所对应的课程小节对象
console.log('name', name)
console.log('foundNode', this.foundNode)
......@@ -1978,7 +1978,7 @@ export default {
},
/** 批量上传调用的上传接口*/
uploadFun(item, file, itemForm) {
const name = file.name.split('.')[0] // 便利上传的多份视频,获取每个视频的名字
const name = file.name.split('.').slice(0, -1).join('.') // 便利上传的多份视频,获取每个视频的名字
const formData = new FormData() // 当前为空
formData.append('type', 0)
formData.append('chapterId', item.businessId)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment