@@ -555,6 +562,7 @@ export default {
this.uploading = false
this.uploadFaild = false
if (res.status === 200) {
+ this.initData()
const { data } = res
if (data.exportCode) {
this.faildData = data
@@ -586,7 +594,7 @@ export default {
},
cancelUpload () {
this.uploading = false
- this.$refs.upload.abort()
+ if (this.$refs.upload) this.$refs.upload.abort()
this.keyword = ''
this.initData()
this.importVisible = false
diff --git a/src/pages/match/manage/matchInfo.vue b/src/pages/match/manage/matchInfo.vue
index 3094bc6..34f6e4d 100644
--- a/src/pages/match/manage/matchInfo.vue
+++ b/src/pages/match/manage/matchInfo.vue
@@ -22,6 +22,7 @@
团队邀请码: |
|
diff --git a/src/pages/match/manage/matchRank.vue b/src/pages/match/manage/matchRank.vue
index 11b6456..34e1d7f 100644
--- a/src/pages/match/manage/matchRank.vue
+++ b/src/pages/match/manage/matchRank.vue
@@ -730,6 +730,7 @@ export default {
this.uploadFaild = false
this.uploaded = 0
if (res.status === 200) {
+ this.getRank()
const { data } = res
if (data.exportCode) {
this.faildData = data
@@ -737,7 +738,6 @@ export default {
} else {
this.uploaded = 1
this.importVisible = false
- this.getRank()
util.successMsg(data.tip, 3000)
// util.successMsg('请检查数据后,点击发布排名以发布数据!')
}
diff --git a/src/pages/match/manage/matchSignup.vue b/src/pages/match/manage/matchSignup.vue
index 27f2c83..5a93428 100644
--- a/src/pages/match/manage/matchSignup.vue
+++ b/src/pages/match/manage/matchSignup.vue
@@ -293,6 +293,7 @@
上传文件
建议文件数据在5000条以内,导入5000名学生大致需要10分钟
@@ -475,6 +478,7 @@ export default {
getInfo () {
this.$post(`${this.api.getCompetition}?competitionId=${this.id}`).then(({ competition }) => {
this.info = competition
+ this.getSchool()
// 非本校内则查询接口获取学校列表
if (competition.competitionScope) {
this.getClient()
@@ -578,9 +582,9 @@ export default {
cancelUpload () {
this.uploading = false
this.$refs.upload.abort()
+ this.keyword = ''
this.init()
this.importVisible = false
- this.keyword = ''
},
// 新增
add () {
@@ -759,6 +763,11 @@ export default {
}
this.teamVisible = true
},
+ // 学生所属院校固定查询所有学校
+ async getSchool () {
+ const { list } = await this.$get(this.api.querySchoolData)
+ this.schools = list
+ },
// 获取客户
async getClient () {
if (this.info.competitionScope === 2) {
@@ -781,10 +790,6 @@ export default {
this.clients = list
}).catch(res => { })
}
- // 学生所属院校固定查询所有学校
- this.$get(this.api.querySchoolData).then(({ list }) => {
- this.schools = list
- }).catch(res => { })
},
// 获取团队列表
getTeam () {
@@ -884,4 +889,11 @@ export default {
font-size: 12px;
color: #e90000;
}
+/deep/.import-file {
+ .el-progress__text,
+ .el-progress,
+ .el-upload-list__item-status-label {
+ display: none !important;
+ }
+}
\ No newline at end of file
diff --git a/src/pages/student/list/index.vue b/src/pages/student/list/index.vue
index 0c00889..ac0521c 100644
--- a/src/pages/student/list/index.vue
+++ b/src/pages/student/list/index.vue
@@ -98,7 +98,8 @@
-