视频选择修改

This commit is contained in:
zhangsir
2024-11-08 19:13:15 +08:00
parent 638d6c5677
commit 7ccb624724

View File

@@ -59,7 +59,7 @@
</div> </div>
<div v-else style="text-align: center;"> <div v-else style="text-align: center;">
<div style="padding: 20px;">{{courseFile.fileName}} <span style="color: green;">上传成功</span></div> <div style="padding: 20px;">{{courseFile.fileName}} <span style="color: green;">上传成功</span></div>
<div><el-button @click="chooseCourseFile(courseFile)" type="primary" size="mini">确定</el-button></div> <div><el-button @click="chooseCourseFile(courseFile,true)" type="primary" size="mini">确定</el-button></div>
</div> </div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@@ -255,8 +255,8 @@
}) })
}, },
chooseCourseFile(ccfile){ chooseCourseFile(ccfile,val=false){
if(ccfile.resType == 10){ if(ccfile.resType == 10&&val){
apiCourseFile.saveUpload(this.successParams).then(rs=>{ apiCourseFile.saveUpload(this.successParams).then(rs=>{
if(rs.status==200){ if(rs.status==200){
this.$emit('choose', rs.result); this.$emit('choose', rs.result);