|
|
@ -127,13 +127,10 @@ |
|
|
|
align="center" |
|
|
|
align="center" |
|
|
|
width="270"> |
|
|
|
width="270"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-if="scope.row.identification && schoolId === scope.row.schoolId" |
|
|
|
<el-button v-if="scope.row.identification" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
@click="edit(scope.row)" |
|
|
|
@click="edit(scope.row)" |
|
|
|
v-auth="'/match/list:管理:报名人员:编辑'">编辑</el-button> |
|
|
|
v-auth="'/match/list:管理:报名人员:编辑'">编辑</el-button> |
|
|
|
<el-button v-else |
|
|
|
|
|
|
|
type="text" |
|
|
|
|
|
|
|
@click="edit(scope.row, 1)">查看</el-button> |
|
|
|
|
|
|
|
<el-button type="text" |
|
|
|
<el-button type="text" |
|
|
|
@click="del(scope.row)">删除</el-button> |
|
|
|
@click="del(scope.row)">删除</el-button> |
|
|
|
<template v-if="info.releaseType"> |
|
|
|
<template v-if="info.releaseType"> |
|
|
@ -160,7 +157,7 @@ |
|
|
|
</el-pagination> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :title="(diffSchool ? '查看' : (!isAdd ? '编辑' : '新增')) + '参赛人员'" |
|
|
|
<el-dialog :title="(!isAdd ? '编辑' : '新增') + '参赛人员'" |
|
|
|
:visible.sync="addVisible" |
|
|
|
:visible.sync="addVisible" |
|
|
|
width="440px" |
|
|
|
width="440px" |
|
|
|
class="dialog" |
|
|
|
class="dialog" |
|
|
@ -169,7 +166,6 @@ |
|
|
|
<el-form ref="form" |
|
|
|
<el-form ref="form" |
|
|
|
:model="form" |
|
|
|
:model="form" |
|
|
|
:rules="rules" |
|
|
|
:rules="rules" |
|
|
|
:disabled="diffSchool" |
|
|
|
|
|
|
|
label-width="110px" |
|
|
|
label-width="110px" |
|
|
|
style='margin-right: 10px;'> |
|
|
|
style='margin-right: 10px;'> |
|
|
|
<el-form-item v-if="!schoolDisable" |
|
|
|
<el-form-item v-if="!schoolDisable" |
|
|
@ -196,20 +192,20 @@ |
|
|
|
:label="item.schoolName" |
|
|
|
:label="item.schoolName" |
|
|
|
:value="item.schoolId"></el-option> |
|
|
|
:value="item.schoolId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
<p v-if="!diffSchool" |
|
|
|
<p style="margin-top: 10px;line-height: 1.4;font-size: 12px;">学生所属院校为学生实际院校</p> |
|
|
|
style="margin-top: 10px;line-height: 1.4;font-size: 12px;">学生所属院校为学生实际院校,若为空,则默认与学生账号归属院校一致</p> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="workNumber" |
|
|
|
<el-form-item prop="workNumber" |
|
|
|
label="学生学号"> |
|
|
|
label="学生学号"> |
|
|
|
<el-input v-model="form.workNumber" |
|
|
|
<el-input v-model="form.workNumber" |
|
|
|
placeholder="请输入学生学号" |
|
|
|
placeholder="请输入学生学号" |
|
|
|
|
|
|
|
:disabled="diffSchool" |
|
|
|
@change="workNumberChange"></el-input> |
|
|
|
@change="workNumberChange"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="userName" |
|
|
|
<el-form-item prop="userName" |
|
|
|
label="学生姓名"> |
|
|
|
label="学生姓名"> |
|
|
|
<el-input v-model="form.userName" |
|
|
|
<el-input v-model="form.userName" |
|
|
|
placeholder="请输入学生姓名" |
|
|
|
placeholder="请输入学生姓名" |
|
|
|
:disabled="isAdd"></el-input> |
|
|
|
:disabled="isAdd || diffSchool"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="账号角色"> |
|
|
|
<el-form-item label="账号角色"> |
|
|
|
学生 |
|
|
|
学生 |
|
|
@ -219,7 +215,7 @@ |
|
|
|
label="所属团队"> |
|
|
|
label="所属团队"> |
|
|
|
<div style="display: flex;align-items: center"> |
|
|
|
<div style="display: flex;align-items: center"> |
|
|
|
<el-select v-model="form.teamId" |
|
|
|
<el-select v-model="form.teamId" |
|
|
|
:disabled="formEnable && isAdd" |
|
|
|
:disabled="(formEnable && isAdd) || diffSchool" |
|
|
|
filterable |
|
|
|
filterable |
|
|
|
style="width: 240px;margin-right: 10px"> |
|
|
|
style="width: 240px;margin-right: 10px"> |
|
|
|
<el-option v-for="(item, i) in teams" |
|
|
|
<el-option v-for="(item, i) in teams" |
|
|
@ -237,13 +233,13 @@ |
|
|
|
<el-input v-model="form.phone" |
|
|
|
<el-input v-model="form.phone" |
|
|
|
maxlength="11" |
|
|
|
maxlength="11" |
|
|
|
placeholder="请输入手机号" |
|
|
|
placeholder="请输入手机号" |
|
|
|
:disabled="isAdd"></el-input> |
|
|
|
:disabled="isAdd || diffSchool"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="email" |
|
|
|
<el-form-item prop="email" |
|
|
|
label="邮箱"> |
|
|
|
label="邮箱"> |
|
|
|
<el-input v-model="form.email" |
|
|
|
<el-input v-model="form.email" |
|
|
|
placeholder="请输入邮箱" |
|
|
|
placeholder="请输入邮箱" |
|
|
|
:disabled="isAdd"></el-input> |
|
|
|
:disabled="isAdd || diffSchool"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<p v-if="!isAdd && schoolId === form.schoolId" |
|
|
|
<p v-if="!isAdd && schoolId === form.schoolId" |
|
|
@ -598,7 +594,7 @@ export default { |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
this.$post(this.api.batchDeleteApplicants, { registrationVOS: [row] }).then(res => { |
|
|
|
this.$post(this.api.batchDeleteApplicants, { registrationVOS: [row] }).then(res => { |
|
|
|
util.successMsg("删除成功"); |
|
|
|
util.successMsg("删除成功"); |
|
|
|
this.getData(); |
|
|
|
this.init() |
|
|
|
}).catch(res => { |
|
|
|
}).catch(res => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}) |
|
|
|
}) |
|
|
@ -773,6 +769,7 @@ export default { |
|
|
|
if (!form.teamName) return util.errorMsg('请输入团队名称') |
|
|
|
if (!form.teamName) return util.errorMsg('请输入团队名称') |
|
|
|
if (form.invitationCode.length !== 6) return util.errorMsg('请输入6位数团队邀请码') |
|
|
|
if (form.invitationCode.length !== 6) return util.errorMsg('请输入6位数团队邀请码') |
|
|
|
form.accountId = this.form.id |
|
|
|
form.accountId = this.form.id |
|
|
|
|
|
|
|
form.schoolId = this.form.schoolId |
|
|
|
form.studentAffiliatedInstitutionId = this.form.studentAffiliatedInstitutionId |
|
|
|
form.studentAffiliatedInstitutionId = this.form.studentAffiliatedInstitutionId |
|
|
|
this.$post(this.api.addCompetitionTeam, form).then(res => { |
|
|
|
this.$post(this.api.addCompetitionTeam, form).then(res => { |
|
|
|
this.teamVisible = false |
|
|
|
this.teamVisible = false |
|
|
@ -818,7 +815,7 @@ export default { |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
this.$post(this.api.batchDeleteApplicants, { registrationVOS: list }).then(res => { |
|
|
|
this.$post(this.api.batchDeleteApplicants, { registrationVOS: list }).then(res => { |
|
|
|
this.getData(); |
|
|
|
this.init() |
|
|
|
this.$message.success("删除成功"); |
|
|
|
this.$message.success("删除成功"); |
|
|
|
this.$refs.table.clearSelection() |
|
|
|
this.$refs.table.clearSelection() |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
|