yujialong 6 months ago
parent 30287441db
commit 0b6390bce9
  1. 9
      src/pages/match/add/index.vue
  2. 8
      src/pages/match/manage/matchInfo.vue
  3. 2
      src/pages/station/preview/index.vue
  4. 15
      src/pages/student/list/index.vue
  5. 7
      src/pages/system/list/staff.vue

@ -223,7 +223,14 @@ export default {
// //
next (next, setupId, competitionId, type) { next (next, setupId, competitionId, type) {
if (!next) { if (!next) {
this.$router.push(`/match`) if (this.step === 3 && this.$refs['step' + this.step].form[0].contentId) {
// &&
this.editing = 0
this.step = 1
} else {
//
this.$router.push(`/match`)
}
} else if (next === 2) { } else if (next === 2) {
if (setupId) this.setupId = setupId if (setupId) this.setupId = setupId
if (competitionId) { if (competitionId) {

@ -124,7 +124,7 @@
<td>{{ i + 1 }}</td> <td>{{ i + 1 }}</td>
<td>{{ item.stageName }}</td> <td>{{ item.stageName }}</td>
<template v-if="form.completeCompetitionSetup.competitionType"> <template v-if="form.completeCompetitionSetup.competitionType">
<td>{{ item.teamNumLimit || '不限制' }}</td> <td>{{ item.customNumber || '不限制' }}</td>
<td> <td>
<template v-if="item.participants"> <template v-if="item.participants">
<el-tag v-for="tag in item.participants" <el-tag v-for="tag in item.participants"
@ -233,8 +233,8 @@
:key="i" :key="i"
:label="item.accountId">{{ item.userName }}</el-checkbox> :label="item.accountId">{{ item.userName }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<p v-if="info.teamLimit && curRow.teamNumLimit" <p v-if="info.teamLimit && curRow.customNumber"
style="margin-top: 15px;font-size: 12px;">当前阶段限制{{ curRow.teamNumLimit }}人参赛且此竞赛每个成员只能参加一个阶段赛项</p> style="margin-top: 15px;font-size: 12px;">当前阶段限制{{ curRow.customNumber }}人参赛且此竞赛每个成员只能参加一个阶段赛项</p>
<span slot="footer" <span slot="footer"
class="dialog-footer"> class="dialog-footer">
<el-button size="small" <el-button size="small"
@ -600,7 +600,7 @@ export default {
const accountIds = this.checkedMembers const accountIds = this.checkedMembers
if (!accountIds.length) return Util.errorMsg('请选择参赛成员!') if (!accountIds.length) return Util.errorMsg('请选择参赛成员!')
const limit = this.curRow.teamNumLimit // const limit = this.curRow.teamNumLimit //
if (limit && accountIds.length > limit) return Util.errorMsg(`请选择${limit}个以下参赛成员!`) // if (limit && accountIds.length > limit) return Util.errorMsg(`请选择${this.curRow.customNumber}个以下参赛成员!`) //
this.$post(this.api.stageSelectParticipants, { this.$post(this.api.stageSelectParticipants, {
accountIds, accountIds,
competitionId: this.id, competitionId: this.id,

@ -998,7 +998,7 @@ export default {
`${location.origin}/pyTrials` `${location.origin}/pyTrials`
}, },
// //
toSub () { async toSub () {
let curProject = this.projects.find(e => e.projectId == this.curProject) let curProject = this.projects.find(e => e.projectId == this.curProject)
if (!curProject && this.projects.length) { if (!curProject && this.projects.length) {
curProject = this.projects[0] curProject = this.projects[0]

@ -218,13 +218,13 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="workNumber" <el-form-item prop="workNumber"
label="学生学号"> label="学生学号">
<el-input v-model="form.workNumber" <el-input v-model.trim="form.workNumber"
placeholder="学生学号" placeholder="学生学号"
@blur="workNumberChange"></el-input> @blur="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.trim="form.userName"
placeholder="请输入学生姓名"></el-input> placeholder="请输入学生姓名"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="roleId" <el-form-item prop="roleId"
@ -234,13 +234,13 @@
<el-form-item prop="phone" <el-form-item prop="phone"
label="手机号"> label="手机号">
<el-input v-model="form.phone" <el-input v-model.trim="form.phone"
placeholder="可用于登录平台,以及找回密码" placeholder="可用于登录平台,以及找回密码"
maxlength="11"></el-input> maxlength="11"></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.trim="form.email"
placeholder="可用于登录平台,以及找回密码"></el-input> placeholder="可用于登录平台,以及找回密码"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="uniqueIdentification" <el-form-item prop="uniqueIdentification"
@ -416,7 +416,12 @@ export default {
{ required: true, message: "请输入名称", trigger: "blur" } { required: true, message: "请输入名称", trigger: "blur" }
], ],
userName: [ userName: [
{ required: true, message: "请输入学生姓名", trigger: "blur" } { required: true, message: "请输入学生姓名", trigger: "blur" },
{
pattern: /^\S+$/,
message: "请输入正确的学生姓名",
trigger: "blur"
}
], ],
workNumber: [ workNumber: [
{ required: true, message: "请输入学号", trigger: 'blur' }, { required: true, message: "请输入学号", trigger: 'blur' },

@ -236,7 +236,12 @@ export default {
}, },
rules: { rules: {
userName: [ userName: [
{ required: true, message: "请输入用户姓名", trigger: "blur" } { required: true, message: "请输入用户姓名", trigger: "blur" },
{
pattern: /^\S+$/,
message: "请输入正确的用户姓名",
trigger: "blur"
}
], ],
roleValue: [ roleValue: [
{ required: true, message: "请选择账号角色", trigger: "change" } { required: true, message: "请选择账号角色", trigger: "change" }

Loading…
Cancel
Save