已参加考试列表
This commit is contained in:
commit
0b9497a2c8
|
@ -276,10 +276,10 @@ export default {
|
||||||
|
|
||||||
beforeUpload(file) {
|
beforeUpload(file) {
|
||||||
//文件类型 (后缀)
|
//文件类型 (后缀)
|
||||||
var suffix = file.name.substring(file.name.lastIndexOf('.') + 1);
|
// var suffix = file.name.substring(file.name.lastIndexOf('.') + 1);
|
||||||
if (this.fileUpload.tabkey == '1' && suffix != 'mp4') {
|
// if (this.fileUpload.tabkey == '1' && suffix != 'mp4') {
|
||||||
return this.$message.error('文件类型必须是mp4');
|
// return this.$message.error('文件类型必须是mp4');
|
||||||
}
|
// }
|
||||||
|
|
||||||
//告知用户是否正在上传
|
//告知用户是否正在上传
|
||||||
this.uploadLoading = true;
|
this.uploadLoading = true;
|
||||||
|
@ -503,7 +503,7 @@ export default {
|
||||||
this.fileUpload.textForm.disabled = true;
|
this.fileUpload.textForm.disabled = true;
|
||||||
this.videoServerLink.disabled = true;
|
this.videoServerLink.disabled = true;
|
||||||
this.thirdAddress.disabled = true;
|
this.thirdAddress.disabled = true;
|
||||||
|
|
||||||
//分配到各自的提交模块
|
//分配到各自的提交模块
|
||||||
if (this.courseware.type == '1' || this.courseware.type == '2') {
|
if (this.courseware.type == '1' || this.courseware.type == '2') {
|
||||||
this.parentTabKey = '1';
|
this.parentTabKey = '1';
|
||||||
|
@ -521,6 +521,8 @@ export default {
|
||||||
this.successOssFile.push(successOssFile_);
|
this.successOssFile.push(successOssFile_);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log(this.successOssFile);
|
||||||
|
|
||||||
if (this.courseware.type == '1') {
|
if (this.courseware.type == '1') {
|
||||||
this.fileUpload.tabkey = '1';
|
this.fileUpload.tabkey = '1';
|
||||||
this.fileUpload.videoForm = this.courseware;
|
this.fileUpload.videoForm = this.courseware;
|
||||||
|
|
Loading…
Reference in New Issue