赛事人员相关

master
yujialong 8 months ago
parent 8d3cba7de7
commit b0d59aeb7d
  1. 2
      src/layouts/header/index.vue
  2. 6
      src/pages/match/manage/matchInfo.vue
  3. 27
      src/pages/match/manage/matchSignup.vue

@ -20,7 +20,7 @@
class="p-v-5 cursor-pointer" class="p-v-5 cursor-pointer"
@click="toComment(item)">{{ item.commentUsername }} 回复了你的评论</p> @click="toComment(item)">{{ item.commentUsername }} 回复了你的评论</p>
<el-badge class="msg" <el-badge class="msg"
:is-dot="notices.length" :is-dot="!!notices.length"
slot="reference">消息</el-badge> slot="reference">消息</el-badge>
</el-popover> </el-popover>
<el-dropdown class="user-wrap" <el-dropdown class="user-wrap"

@ -66,8 +66,7 @@
<tr> <tr>
<th width="130">指导老师</th> <th width="130">指导老师</th>
<td> <td>
<div v-if="status < 5" <div class="plus">
class="plus">
<i class="el-icon-circle-plus-outline icon" <i class="el-icon-circle-plus-outline icon"
@click="addAdvisor"></i> @click="addAdvisor"></i>
</div> </div>
@ -91,7 +90,7 @@
clearable clearable
size="mini" size="mini"
:disabled="!item.edit"></el-input> :disabled="!item.edit"></el-input>
<template v-if="status < 5"> <template>
<i v-if="item.edit" <i v-if="item.edit"
class="el-icon-check icon" class="el-icon-check icon"
@click="submitAdvisor(item)"></i> @click="submitAdvisor(item)"></i>
@ -493,6 +492,7 @@ export default {
teamId: this.info.teamId, teamId: this.info.teamId,
phone: row.phone, phone: row.phone,
position: row.position, position: row.position,
accountId: this.accountId
}).then(res => { }).then(res => {
util.successMsg((row.id ? '修改' : '新增') + '成功') util.successMsg((row.id ? '修改' : '新增') + '成功')
this.getInfo() this.getInfo()

@ -85,17 +85,17 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column prop="username" <el-table-column prop="username"
label="队长/成员" :label="info.completeCompetitionSetup.competitionType ? '队长/成员' : '学生姓名'"
min-width="140" min-width="140"
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column prop="workNumber" <el-table-column prop="workNumber"
label="队长/成员学号" :label="info.completeCompetitionSetup.competitionType ? '队长/成员学号' : '学号'"
min-width="140" min-width="140"
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column prop="phone" <el-table-column prop="phone"
label="队长/成员手机号" :label="info.completeCompetitionSetup.competitionType ? '队长/成员手机号' : '手机号'"
min-width="140" min-width="140"
align="center"> align="center">
</el-table-column> </el-table-column>
@ -286,7 +286,7 @@
<el-button type="primary" <el-button type="primary"
@click="download">模板下载<i class="el-icon-download el-icon--right"></i></el-button> @click="download">模板下载<i class="el-icon-download el-icon--right"></i></el-button>
</div> </div>
<el-upload ref="importStaff" <el-upload ref="upload"
name="file" name="file"
accept=".xls,.xlsx" accept=".xls,.xlsx"
:on-remove="handleRemove" :on-remove="handleRemove"
@ -298,6 +298,7 @@
competitionId: id, competitionId: id,
platformId: 1 platformId: 1
}" }"
:auto-upload="false"
: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"
@ -529,10 +530,14 @@ export default {
if (data.exportCode) { if (data.exportCode) {
this.exportCode = data.exportCode this.exportCode = data.exportCode
this.uploadFaild = true this.uploadFaild = true
util.errorMsg(data.tip) util.errorMsg(data.tip, 3000)
} else {
this.init()
this.importVisible = false
this.keyWord = ''
} }
} else { } else {
res.message ? util.errorMsg(res.message) : util.errorMsg("上传失败,请检查数据") util.errorMsg(res.message || '上传失败,请检查数据', 3000)
} }
}, },
uploadError (err, file, fileList) { uploadError (err, file, fileList) {
@ -550,9 +555,7 @@ export default {
this.uploadFaild = false this.uploadFaild = false
}, },
uploadSure () { uploadSure () {
this.init() this.$refs.upload.submit();
this.importVisible = false
this.keyWord = ''
}, },
// //
add () { add () {
@ -772,7 +775,8 @@ export default {
}, },
responseType: 'blob' responseType: 'blob'
}).then((res) => { }).then((res) => {
util.downloadFileDirect(`报名人员.xls`, new Blob([res.data])) const name = res.headers['content-disposition']
util.downloadFileDirect(name ? decodeURI(name) : '报名人员.xlsx', new Blob([res.data]))
}).catch(res => { }) }).catch(res => { })
} else { } else {
axios.get(`${this.api.excelExport}?competitionId=${this.id}`, { axios.get(`${this.api.excelExport}?competitionId=${this.id}`, {
@ -781,7 +785,8 @@ export default {
}, },
responseType: 'blob' responseType: 'blob'
}).then((res) => { }).then((res) => {
util.downloadFileDirect(`报名人员.xls`, new Blob([res.data])) const name = res.headers['content-disposition']
util.downloadFileDirect(name ? decodeURI(name) : '报名人员.xlsx', new Blob([res.data]))
}).catch(res => { }) }).catch(res => { })
} }
}, },

Loading…
Cancel
Save