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