|
|
|
@ -64,10 +64,8 @@ |
|
|
|
|
:on-error="uploadError" |
|
|
|
|
:before-remove="beforeRemove" |
|
|
|
|
action="" |
|
|
|
|
:headers="headers" |
|
|
|
|
:file-list="item.competitionStageContentSetting.fileList" |
|
|
|
|
:http-request="res => handleRequest(res, item)" |
|
|
|
|
name="file"> |
|
|
|
|
:http-request="res => handleRequest(res, item)"> |
|
|
|
|
<el-button size="small" |
|
|
|
|
type="primary">上传文件</el-button> |
|
|
|
|
</el-upload> |
|
|
|
@ -348,11 +346,11 @@ export default { |
|
|
|
|
this.$emit('next', next) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
// 发布才需要判断必填 |
|
|
|
|
if (status) { |
|
|
|
|
let invalid = 0 |
|
|
|
|
const { playStartTime, playEndTime } = this.step1 |
|
|
|
|
for (const e of form) { |
|
|
|
|
// 发布才需要判断必填 |
|
|
|
|
if (status) { |
|
|
|
|
if (!e.time.length) { |
|
|
|
|
invalid = 1 |
|
|
|
|
util.errorMsg('请选择比赛时间') |
|
|
|
@ -363,8 +361,6 @@ export default { |
|
|
|
|
util.errorMsg('设置的阶段比赛时间必须要在第一步设置的竞赛时间范围内,请重新设置。') |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
e.startTime = e.time[0] |
|
|
|
|
e.endTime = e.time[1] |
|
|
|
|
if (e.method !== 2 && !e.cid) { |
|
|
|
|
invalid = 1 |
|
|
|
|
util.errorMsg('请选择课程') |
|
|
|
@ -409,8 +405,11 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (invalid) return |
|
|
|
|
|
|
|
|
|
e.startTime = e.time[0] |
|
|
|
|
e.endTime = e.time[1] |
|
|
|
|
} |
|
|
|
|
if (invalid) return |
|
|
|
|
// 处理单选框 |
|
|
|
|
for (const e of form) { |
|
|
|
|
e.offlineButton = e.offlineButton ? 1 : 0 |
|
|
|
|