|
@@ -9,9 +9,9 @@
|
|
|
<div class="create-box light-iview-form">
|
|
|
<Loading v-show="isLoading"></Loading>
|
|
|
<Steps :current="current">
|
|
|
- <Step :title="$t('activity.basicInfo')" content=""></Step>
|
|
|
+ <Step :title="$t('jyzx.offline.info')" content=""></Step>
|
|
|
<!-- <Step title="活动单位" content=""></Step> -->
|
|
|
- <Step :title="$t('activity.basicInfo')" content=""></Step>
|
|
|
+ <Step :title="$t('train.create.advancedTitle')" content=""></Step>
|
|
|
<Step :title="$t('homework.publish')" content=""></Step>
|
|
|
</Steps>
|
|
|
<div style="height: 95%;">
|
|
@@ -175,7 +175,18 @@
|
|
|
<FormItem :label="$t('activity.timeList.upload')" prop="stime">
|
|
|
<DatePicker :value="actAllTime[2]" ref="workPicker" :editable="false" :options="beforeAct" @on-open-change="(type) => dateOpenChange(type, 2)" @on-change="(date, type) => setActTime(date, type, 2)" type="datetimerange" format="yyyy-MM-dd HH:mm:ss" :placeholder="$t('train.create.timeHolder')" style="width: 500px"></DatePicker>
|
|
|
</FormItem>
|
|
|
- <FormItem :label="$t('activity.workType')">
|
|
|
+ <FormItem :label="$t('activity.workType')" prop="uploadType">
|
|
|
+ <CheckboxGroup v-model="contestUpload.uploadType">
|
|
|
+ <Checkbox label="file">{{ $t('studentWeb.courseContent.type.file') }}</Checkbox>
|
|
|
+ <Checkbox label="sokrates">{{ $t('auth.attr2') }}</Checkbox>
|
|
|
+ <!-- <Checkbox label="lesson">{{ $t('schoolStatistics.class.lessonTitle') }}</Checkbox> -->
|
|
|
+ <span>
|
|
|
+ <Icon type="md-alert" color="#ffad16" size="17" />
|
|
|
+ 勾选多个,教师将任选一种作品类型上传
|
|
|
+ </span>
|
|
|
+ </CheckboxGroup>
|
|
|
+ </FormItem>
|
|
|
+ <!-- <FormItem :label="$t('activity.workType')">
|
|
|
<RadioGroup v-model="contestUpload.type">
|
|
|
<Radio label="file">{{ $t('studentWeb.courseContent.type.file') }}</Radio>
|
|
|
<Radio label="sokrates" disabled>{{ $t('auth.attr2') }}</Radio>
|
|
@@ -185,8 +196,8 @@
|
|
|
必须上传视频
|
|
|
</span>
|
|
|
</RadioGroup>
|
|
|
- </FormItem>
|
|
|
- <FormItem :label="$t('studentWeb.homework.table3')" v-if="contestUpload.type === 'file'" prop="fileType">
|
|
|
+ </FormItem> -->
|
|
|
+ <FormItem :label="$t('studentWeb.homework.table3')" v-if="contestUpload.uploadType.includes('file')" prop="fileType">
|
|
|
<!-- <CheckboxGroup v-model="contestUpload.fileType" class="tab-check"> -->
|
|
|
<div class="tab-check">
|
|
|
<div v-for="(item, index) in fileType" :key="index" class="file-box">
|
|
@@ -559,7 +570,10 @@ export default {
|
|
|
/* upload: {
|
|
|
stime: '',
|
|
|
etime: '',
|
|
|
- type: 'file', //file文件 sokrates苏格拉底作品 lesson课例
|
|
|
+ uploadType: [], //可以上传类型 file文件 sokrates苏格拉底作品 lesson课例
|
|
|
+ uploadTypeNecessary: [], //必须上传类型 file文件 sokrates苏格拉底作品 lesson课例
|
|
|
+ limit: 0, //必须上传几种类型 0:随意类型 1-3:限制几种 必须>=uploadTypeNecessary.length
|
|
|
+ //type: 'file', //file文件 sokrates苏格拉底作品 lesson课例(已废弃)
|
|
|
fileType: [],
|
|
|
desc: '',
|
|
|
captainUpload: 0, //0个人 1队长
|
|
@@ -579,10 +593,13 @@ export default {
|
|
|
contestUpload: {
|
|
|
stime: '',
|
|
|
etime: '',
|
|
|
- type: 'file', //file文件 sokrates苏格拉底作品
|
|
|
+ // type: 'file', //file文件 sokrates苏格拉底作品
|
|
|
fileType: [],
|
|
|
desc: '',
|
|
|
captainUpload: 0, //0个人 1队长
|
|
|
+ uploadType: [],
|
|
|
+ uploadTypeNecessary: [],
|
|
|
+ limit: 1,
|
|
|
},
|
|
|
formatType: [[], [], [], [], []],
|
|
|
contestReview: {
|
|
@@ -645,6 +662,7 @@ export default {
|
|
|
contestRuleUpload: {
|
|
|
stime: [{ required: true, type: 'number', message: this.$t('activity.message.field4'), trigger: 'blur' }],
|
|
|
fileType: [{ required: true, message: this.$t('activity.message.field6'), trigger: 'blur', validator: validateFileType }],
|
|
|
+ uploadType: [{ required: true, type: 'array', min: 1, message: this.$t('activity.message.field4'), trigger: 'blur' }],
|
|
|
},
|
|
|
contestRuleReview: {
|
|
|
stime: [{ required: true, type: 'number', message: this.$t('activity.message.field4'), trigger: 'blur' }],
|