@@ -197,6 +197,7 @@ export default {
form: [],
setVisible: false,
curStep: 0,
+ curOriginForm: {},
};
},
components: {
@@ -278,6 +279,7 @@ export default {
},
// 显示设置页面
toSet (i) {
+ this.curOriginForm = JSON.parse(JSON.stringify(this.form[i]))
this.curStep = i
this.$parent.showBtns = false
this.setVisible = true
@@ -355,8 +357,19 @@ export default {
publish () {
this.competitionId && this.$post(`${this.api.publishCompetition}?competitionId=${this.competitionId}&publishStatus=1`).then(res => { }).catch(err => { })
},
+ // 自动分配人员
+ autoAllocation () {
+ this.$confirm('团队赛已发布,是否要自动分配阶段人员?', '提示', {
+ // confirmButtonText: '确定',
+ // cancelButtonText: '取消',
+ type: 'success'
+ }).then(() => {
+
+ }).catch(() => { });
+ },
// 提交
save (status, next = 0) {
+ // return console.log(this.$parent.$refs.step1.form.completeCompetitionSetup.competitionType)
const { form } = this
if (!form.length) {
this.$parent.hideLoad()
@@ -449,6 +462,7 @@ export default {
this.$parent.hideLoad()
// 新增赛事,并且点的是发布按钮,则发布该赛事
status && this.publish(status)
+ // this.$parent.$refs.step1.form.completeCompetitionSetup.competitionType && this.autoAllocation() // 团队并且第一次发布才需要弹框询问是否自动分配人员
util.successMsg((status ? '发布' : '保存') + '成功')
this.$emit('next', next)
}).catch(err => {
diff --git a/src/views/match/manage/matchArchList.vue b/src/views/match/manage/matchArchList.vue
index b27cddc..ea1d716 100644
--- a/src/views/match/manage/matchArchList.vue
+++ b/src/views/match/manage/matchArchList.vue
@@ -104,7 +104,11 @@
+ align="center">
+
+ {{ scope.row.submitTime ? scope.row.score : '--' }}
+
+
- {{ scope.row.reportId ? '查看成绩报告' : '未参加' }}
自动分配阶段成员
-
- {{ uploading ? '正在' : '' }}导入
-
+ @click="batchImport">导入
+
+ {{ scope.row.school }}
+ (已删除)
+
+
+ {{ scope.row.realSchool }}
+ (已删除)
+
上传文件
+ 建议文件数据在5000条以内,导入5000名学生大致需要10分钟
@@ -324,16 +332,12 @@
部分数据导入失败,查看失败原因
- 重新上传
@@ -517,8 +521,9 @@ export default {
// 批量导入
batchImport () {
- this.isBackstage = 0
this.importVisible = true
+ this.uploadList = []
+ this.uploadFaild = false
},
// 模板下载
download () {
@@ -546,12 +551,13 @@ export default {
this.uploadTips = ''
if (status === 200) {
this.init()
+ const { tip } = data
if (data.exportCode) {
this.exportCode = data.exportCode
this.uploadFaild = true
- this.uploadTips = data.tip
+ this.uploadTips = tip
} else {
- util.successMsg(data.tip, 3000)
+ util[tip.includes('5000') ? 'errorMsg' : 'successMsg'](tip, 3000)
this.importVisible = false
this.keyWord = ''
}
@@ -560,7 +566,6 @@ export default {
}
},
uploadError (err, file, fileList) {
- console.log("🚀 ~ uploadError ~ err:", err)
this.uploading = false
this.$message({
message: "上传出错,请重试!",
@@ -579,14 +584,11 @@ export default {
this.uploadFaild = false
},
cancelUpload () {
- if (!this.isBackstage) {
- this.uploadList = []
- this.$refs.upload.abort()
- this.uploading = false
- this.init()
- this.importVisible = false
- this.keyWord = ''
- }
+ this.uploading = false
+ this.$refs.upload.abort()
+ this.keyWord = ''
+ this.init()
+ this.importVisible = false
},
// 后台上传
backstageUpload () {
@@ -661,6 +663,7 @@ export default {
hrUserAccount: {
...form,
id: form.id,
+ lastTimeInstitutionId: this.originForm.studentAffiliatedInstitutionId
},
hrUserInfo: {
userId: form.userId,