提交 be234e33 编写于 作者: guangjun.yang's avatar guangjun.yang

视频不符合规范

上级 a78e30e5
......@@ -83,7 +83,7 @@
:limit="3"
:on-exceed="handleExceed"
:show-file-list="false"
:disabled="needShowUploadProcess"
:disabled="needShowUploadProcess || (formData.courseCustomChapterModels[0].courseCustomLectureModelList.length >= orgCourseInfo.limitModel.maxLimitVideoCount)"
>
<el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">
......@@ -690,11 +690,11 @@ export default {
const isGt = file.size > this.orgCourseInfo.limitModel.maxLimitOneVideoSize;
const isGtMaxNum = this.formData.courseCustomChapterModels[0].courseCustomLectureModelList.length >= this.orgCourseInfo.limitModel.maxLimitVideoCount;
const usedGtMaxStore = this.orgCourseInfo.limitModel.usedStorageSpace + file.size > this.orgCourseInfo.limitModel.maxStorageSpace;
if (isGt || !isMP4 || isGtMaxNum) {
if (isGtMaxNum || !isMP4) {
this.$message.error("视频不符合规范,请根据规范上传视频");
return;
}
if(usedGtMaxStore) {
if(usedGtMaxStore || isGt) {
this.$message({
showClose: true,
message: '您上传的文件大小已超限制,无法上传。如有疑问可拨打云鹊医电话:400-920-7788',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册