yujialong 7 months ago
parent 8bef91baa6
commit f8fa629b1b
  1. 2
      src/pages/achievement/info/course.vue
  2. 6
      src/pages/achievement/info/project.vue
  3. 2
      src/pages/match/add/step3.vue
  4. 18
      src/pages/match/manage/matchArchList.vue
  5. 1
      src/pages/match/manage/matchInfo.vue
  6. 2
      src/pages/match/manage/matchRank.vue
  7. 22
      src/pages/match/manage/matchSignup.vue
  8. 3
      src/pages/student/list/index.vue
  9. 4
      src/pages/system/list/staff.vue

@ -556,7 +556,7 @@ export default {
toReport (row) { toReport (row) {
this.$store.commit('achievement/setRow', this.curRow) this.$store.commit('achievement/setRow', this.curRow)
// //
this.$router.push(this.curTab == 1 ? `show?reportId=${row.reportId}` : `project?id=${row.projectId}&projectName=${row.projectName}&classId=${this.curRow.classId || ''}&workNumber=${row.workNumber || row.userName}&mallId=${this.id}`) this.$router.push(this.curTab == 1 ? `show?reportId=${row.reportId}` : `project?id=${row.projectId}&projectName=${row.projectName}&classId=${this.curRow.classId || ''}&workNumber=${row.workNumber || row.userName}&mallId=${this.id}&fromCourse=1`)
}, },
getChart () { // 线 getChart () { // 线
const data = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] const data = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

@ -671,7 +671,11 @@ export default {
echarts.init(document.querySelector(`#chart1`)).setOption(option) echarts.init(document.querySelector(`#chart1`)).setOption(option)
}, },
back () { back () {
location.href = this.$store.state.achievement.referrer if (this.$route.query.fromCourse) {
this.$router.back()
} else {
location.href = this.$store.state.achievement.referrer
}
}, },
} }
}; };

@ -250,6 +250,8 @@ export default {
url: n url: n
}) })
}) })
} else {
form.competitionStageContentSetting.fileList = []
} }
form.competitionStageContentSetting.competitionId = this.id form.competitionStageContentSetting.competitionId = this.id
form.competitionStageContentSetting.stageId = e.stageId form.competitionStageContentSetting.stageId = e.stageId

@ -131,14 +131,20 @@
{{ scope.row.submitTime || '--' }} {{ scope.row.submitTime || '--' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="状态"
width="100"
align="center">
<template slot-scope="scope">
{{ scope.row.reportId || method == 2 ? '已参加' : '未参加' }}
</template>
</el-table-column>
<el-table-column label="操作" <el-table-column label="操作"
align="center" align="center"
width="160"> width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="method != 2" <el-button v-if="method != 2 && scope.row.reportId"
:disabled="!scope.row.reportId"
type="text" type="text"
@click="show(scope.row)">{{ scope.row.reportId ? '查看成绩报告' : '未参加' }}</el-button> @click="show(scope.row)">查看成绩报告</el-button>
<el-button v-if="scope.row.reportId" <el-button v-if="scope.row.reportId"
type="text" type="text"
@click="handleDelete(scope.row)">删除</el-button> @click="handleDelete(scope.row)">删除</el-button>
@ -236,7 +242,8 @@
<el-dialog title="批量导入" <el-dialog title="批量导入"
:visible.sync="importVisible" :visible.sync="importVisible"
width="24%" width="24%"
:close-on-click-modal="false"> :close-on-click-modal="false"
@close="cancelUpload">
<div style="text-align: center"> <div style="text-align: center">
<template v-if="!uploadFaild"> <template v-if="!uploadFaild">
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
@ -555,6 +562,7 @@ export default {
this.uploading = false this.uploading = false
this.uploadFaild = false this.uploadFaild = false
if (res.status === 200) { if (res.status === 200) {
this.initData()
const { data } = res const { data } = res
if (data.exportCode) { if (data.exportCode) {
this.faildData = data this.faildData = data
@ -586,7 +594,7 @@ export default {
}, },
cancelUpload () { cancelUpload () {
this.uploading = false this.uploading = false
this.$refs.upload.abort() if (this.$refs.upload) this.$refs.upload.abort()
this.keyword = '' this.keyword = ''
this.initData() this.initData()
this.importVisible = false this.importVisible = false

@ -22,6 +22,7 @@
<th width="150">团队邀请码</th> <th width="150">团队邀请码</th>
<td> <td>
<el-input :disabled="!editing" <el-input :disabled="!editing"
maxlength="6"
v-model="info.team.invitationCode"></el-input> v-model="info.team.invitationCode"></el-input>
</td> </td>
</tr> </tr>

@ -730,6 +730,7 @@ export default {
this.uploadFaild = false this.uploadFaild = false
this.uploaded = 0 this.uploaded = 0
if (res.status === 200) { if (res.status === 200) {
this.getRank()
const { data } = res const { data } = res
if (data.exportCode) { if (data.exportCode) {
this.faildData = data this.faildData = data
@ -737,7 +738,6 @@ export default {
} else { } else {
this.uploaded = 1 this.uploaded = 1
this.importVisible = false this.importVisible = false
this.getRank()
util.successMsg(data.tip, 3000) util.successMsg(data.tip, 3000)
// util.successMsg('') // util.successMsg('')
} }

@ -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>

@ -98,7 +98,8 @@
</el-dialog> </el-dialog>
</div> </div>
<div class="page flex-1 m-l-20"> <div class="page flex-1 m-l-20"
style="max-width: calc(100% - 320px)">
<h6 class="p-title">筛选</h6> <h6 class="p-title">筛选</h6>
<div class="tool"> <div class="tool">
<ul class="filter"> <ul class="filter">

@ -661,8 +661,8 @@ export default {
border-right: 1px solid rgba(0, 0, 0, 0.06); border-right: 1px solid rgba(0, 0, 0, 0.06);
} }
.right { .right {
width: calc(100% - 374px); flex: 1;
padding: 24px; padding: 24px 0;
} }
} }
.el-input__inner { .el-input__inner {

Loading…
Cancel
Save