|
|
@ -293,6 +293,7 @@ |
|
|
|
<el-upload ref="upload" |
|
|
|
<el-upload ref="upload" |
|
|
|
name="file" |
|
|
|
name="file" |
|
|
|
accept=".xls,.xlsx" |
|
|
|
accept=".xls,.xlsx" |
|
|
|
|
|
|
|
class="import-file" |
|
|
|
:before-upload="beforeUpload" |
|
|
|
:before-upload="beforeUpload" |
|
|
|
:on-remove="handleRemove" |
|
|
|
:on-remove="handleRemove" |
|
|
|
:on-error="uploadError" |
|
|
|
:on-error="uploadError" |
|
|
@ -303,11 +304,13 @@ |
|
|
|
competitionId: id, |
|
|
|
competitionId: id, |
|
|
|
platformId: 1 |
|
|
|
platformId: 1 |
|
|
|
}" |
|
|
|
}" |
|
|
|
|
|
|
|
:disabled="uploading" |
|
|
|
:on-exceed="handleExceed" |
|
|
|
:on-exceed="handleExceed" |
|
|
|
:action="info.completeCompetitionSetup.competitionType ? this.api.batchImportTeamData : this.api.batchImportPersonalData" |
|
|
|
:action="info.completeCompetitionSetup.competitionType ? this.api.batchImportTeamData : this.api.batchImportPersonalData" |
|
|
|
:file-list="uploadList" |
|
|
|
:file-list="uploadList" |
|
|
|
:headers="headers"> |
|
|
|
:headers="headers"> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
|
|
|
|
:loading="uploading" |
|
|
|
class="ml20">上传文件<i class="el-icon-upload2 el-icon--right"></i></el-button> |
|
|
|
class="ml20">上传文件<i class="el-icon-upload2 el-icon--right"></i></el-button> |
|
|
|
<div slot="tip" |
|
|
|
<div slot="tip" |
|
|
|
class="el-upload__tip">建议文件数据在5000条以内,导入5000名学生大致需要10分钟</div> |
|
|
|
class="el-upload__tip">建议文件数据在5000条以内,导入5000名学生大致需要10分钟</div> |
|
|
@ -475,6 +478,7 @@ export default { |
|
|
|
getInfo () { |
|
|
|
getInfo () { |
|
|
|
this.$post(`${this.api.getCompetition}?competitionId=${this.id}`).then(({ competition }) => { |
|
|
|
this.$post(`${this.api.getCompetition}?competitionId=${this.id}`).then(({ competition }) => { |
|
|
|
this.info = competition |
|
|
|
this.info = competition |
|
|
|
|
|
|
|
this.getSchool() |
|
|
|
// 非本校内则查询接口获取学校列表 |
|
|
|
// 非本校内则查询接口获取学校列表 |
|
|
|
if (competition.competitionScope) { |
|
|
|
if (competition.competitionScope) { |
|
|
|
this.getClient() |
|
|
|
this.getClient() |
|
|
@ -578,9 +582,9 @@ export default { |
|
|
|
cancelUpload () { |
|
|
|
cancelUpload () { |
|
|
|
this.uploading = false |
|
|
|
this.uploading = false |
|
|
|
this.$refs.upload.abort() |
|
|
|
this.$refs.upload.abort() |
|
|
|
|
|
|
|
this.keyword = '' |
|
|
|
this.init() |
|
|
|
this.init() |
|
|
|
this.importVisible = false |
|
|
|
this.importVisible = false |
|
|
|
this.keyword = '' |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
// 新增 |
|
|
|
// 新增 |
|
|
|
add () { |
|
|
|
add () { |
|
|
@ -759,6 +763,11 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
this.teamVisible = true |
|
|
|
this.teamVisible = true |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// 学生所属院校固定查询所有学校 |
|
|
|
|
|
|
|
async getSchool () { |
|
|
|
|
|
|
|
const { list } = await this.$get(this.api.querySchoolData) |
|
|
|
|
|
|
|
this.schools = list |
|
|
|
|
|
|
|
}, |
|
|
|
// 获取客户 |
|
|
|
// 获取客户 |
|
|
|
async getClient () { |
|
|
|
async getClient () { |
|
|
|
if (this.info.competitionScope === 2) { |
|
|
|
if (this.info.competitionScope === 2) { |
|
|
@ -781,10 +790,6 @@ export default { |
|
|
|
this.clients = list |
|
|
|
this.clients = list |
|
|
|
}).catch(res => { }) |
|
|
|
}).catch(res => { }) |
|
|
|
} |
|
|
|
} |
|
|
|
// 学生所属院校固定查询所有学校 |
|
|
|
|
|
|
|
this.$get(this.api.querySchoolData).then(({ list }) => { |
|
|
|
|
|
|
|
this.schools = list |
|
|
|
|
|
|
|
}).catch(res => { }) |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
// 获取团队列表 |
|
|
|
// 获取团队列表 |
|
|
|
getTeam () { |
|
|
|
getTeam () { |
|
|
@ -884,4 +889,11 @@ export default { |
|
|
|
font-size: 12px; |
|
|
|
font-size: 12px; |
|
|
|
color: #e90000; |
|
|
|
color: #e90000; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/deep/.import-file { |
|
|
|
|
|
|
|
.el-progress__text, |
|
|
|
|
|
|
|
.el-progress, |
|
|
|
|
|
|
|
.el-upload-list__item-status-label { |
|
|
|
|
|
|
|
display: none !important; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |