Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
be234e33
提交
be234e33
编写于
6月 24, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
视频不符合规范
上级
a78e30e5
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
+3
-3
edit-course-dialog.vue
...mponents/education/custom-resource/edit-course-dialog.vue
+3
-3
未找到文件。
src/components/education/custom-resource/edit-course-dialog.vue
浏览文件 @
be234e33
...
...
@@ -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
(
isGt
MaxNum
||
!
isMP4
)
{
this
.
$message
.
error
(
"视频不符合规范,请根据规范上传视频"
);
return
;
}
if
(
usedGtMaxStore
)
{
if
(
usedGtMaxStore
||
isGt
)
{
this
.
$message
({
showClose
:
true
,
message
:
'您上传的文件大小已超限制,无法上传。如有疑问可拨打云鹊医电话:400-920-7788'
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录