yujialong 2 years ago
parent c6066fc6e4
commit ae2bceb3b3
  1. 8
      src/api/index.js
  2. 14
      src/components/quill/index.vue
  3. 12
      src/pages/account/login/index.vue
  4. 73
      src/pages/match/details/index.vue
  5. 69
      src/pages/match/list/index.vue
  6. 16
      src/pages/record/show/index.vue
  7. 2
      src/pages/screen/index.vue
  8. 67
      src/pages/touristMatch/list/index.vue
  9. 2
      src/setting.js

@ -2,7 +2,7 @@ import Setting from "@/setting";
const host = Setting.apiBaseURL const host = Setting.apiBaseURL
const uploadURL = Setting.uploadURL const uploadURL = Setting.uploadURL
const host1 = 'http://192.168.31.51:9000/' const host1 = "http://192.168.31.51:9000/";
export default { export default {
logins: `users/users/user/login`, logins: `users/users/user/login`,
@ -105,9 +105,9 @@ export default {
checkPhoneOrEmailExist: `users/users/userInfo/checkPhoneOrEmailExist`, checkPhoneOrEmailExist: `users/users/userInfo/checkPhoneOrEmailExist`,
cancelParticipant: `competition/competition/teamParticipant/cancelParticipant`, cancelParticipant: `competition/competition/teamParticipant/cancelParticipant`,
enquireAboutSchoolStudents: `users/users/userAccount/enquireAboutSchoolStudents`, enquireAboutSchoolStudents: `users/users/userAccount/enquireAboutSchoolStudents`,
frontDeskOverallRanking: `${host1}competition/competition/rank/frontDeskOverallRanking`, frontDeskOverallRanking: `competition/competition/rank/frontDeskOverallRanking`,
frontOfficeCompetitionRanking: `${host1}competition/competition/rank/frontOfficeCompetitionRanking`, frontOfficeCompetitionRanking: `competition/competition/rank/frontOfficeCompetitionRanking`,
stageGradeManagementList: `${host1}competition/competition/performance/stageGradeManagementList`, stageGradeManagementList: `competition/competition/performance/stageGradeManagementList`,
// 阿里云文件/视频管理 // 阿里云文件/视频管理
fileDeletion: `${uploadURL}oss/manage/fileDeletion`, // 删除OSS文件 fileDeletion: `${uploadURL}oss/manage/fileDeletion`, // 删除OSS文件

@ -9,7 +9,7 @@
:on-success="editorUploadSuccess" :on-success="editorUploadSuccess"
style="display: none" style="display: none"
> >
<el-button class="editorUpload" type="primary">点击上传</el-button> <el-button :id="'editorUpload' + index" type="primary">点击上传</el-button>
</el-upload> </el-upload>
</div> </div>
</template> </template>
@ -54,9 +54,15 @@ export default {
*/ */
elseRead: { elseRead: {
type: String, default: "false" type: String, default: "false"
} },
//
index: {
type: Number,
default: 0
},
}, },
data() { data() {
const that = this
return { return {
headers: { headers: {
token: util.local.get(Setting.tokenKey) token: util.local.get(Setting.tokenKey)
@ -74,7 +80,7 @@ export default {
"image": function(value) { "image": function(value) {
if (value) { if (value) {
// iview // iview
document.querySelector(".editorUpload").click(); document.querySelector("#editorUpload" + that.index).click();
} else { } else {
this.Quill.format("image", false); this.Quill.format("image", false);
} }
@ -85,7 +91,7 @@ export default {
placeholder: "", placeholder: "",
readOnly: this.readonly readOnly: this.readonly
}, },
loading: false loading: false,
}; };
}, },
computed: { computed: {

@ -497,16 +497,16 @@ export default {
} }
this.reloadIndex() this.reloadIndex()
if (this.courseId) { // if (this.courseId) {
this.$router.replace(`/preCourse/details?id=${this.courseId}`) // this.$router.replace(`/preCourse/details?id=${this.courseId}`)
} else if (this.toMatch) { // } else if (this.toMatch) {
this.$router.replace(`/touristMatch`) // this.$router.replace(`/touristMatch`)
} else { // } else {
// //
location.href = Setting.isDev ? location.href = Setting.isDev ?
`http://${location.hostname}:8081/#/redirect?auth=${btoa(this.token)}` : `http://${location.hostname}:8081/#/redirect?auth=${btoa(this.token)}` :
`${location.origin}/admin/#/redirect?auth=${window.btoa(this.token)}` `${location.origin}/admin/#/redirect?auth=${window.btoa(this.token)}`
} // }
}).catch(res => {}) }).catch(res => {})
}, },
// //

@ -51,7 +51,7 @@
<p style="font-size: 16px;color: #333;">{{ rule.stageName }}</p> <p style="font-size: 16px;color: #333;">{{ rule.stageName }}</p>
<p>比赛时间{{ rule.startTime && rule.startTime + ' ~ ' + rule.endTime }}</p> <p>比赛时间{{ rule.startTime && rule.startTime + ' ~ ' + rule.endTime }}</p>
<p>比赛方式{{ methods.find(e => e.id == rule.method) && methods.find(e => e.id == rule.method).name }}</p> <p>比赛方式{{ methods.find(e => e.id == rule.method) && methods.find(e => e.id == rule.method).name }}</p>
<p v-if="!rule.method">课程系统{{ rule.systemName }}</p> <p v-if="rule.method != 2">课程系统{{ rule.systemName }}</p>
<p v-if="rule.onlineButton">线上地点{{ rule.onlineAddress }}</p> <p v-if="rule.onlineButton">线上地点{{ rule.onlineAddress }}</p>
<p v-if="rule.offlineButton">线下地点{{ rule.offlineAddress }}</p> <p v-if="rule.offlineButton">线下地点{{ rule.offlineAddress }}</p>
<template v-if="rule.method === 2"> <template v-if="rule.method === 2">
@ -122,8 +122,11 @@
</el-tabs> </el-tabs>
<el-table ref="table" :data="ranks" stripe header-align="center"> <el-table ref="table" :data="ranks" stripe header-align="center">
<el-table-column type="index" width="60" label="排名" align="center"></el-table-column> <el-table-column type="index" width="60" label="排名" align="center"></el-table-column>
<el-table-column prop="teamName" label="团队名称"></el-table-column> <template v-if="form.completeCompetitionSetup.competitionType">
<el-table-column prop="leaderName" label="队长"></el-table-column> <el-table-column prop="teamName" label="团队名称"></el-table-column>
<el-table-column prop="leaderName" label="队长"></el-table-column>
</template>
<el-table-column v-else prop="schoolName" label="学校"></el-table-column>
<el-table-column prop="schoolName" label="学校"></el-table-column> <el-table-column prop="schoolName" label="学校"></el-table-column>
<el-table-column prop="school" label="用时"> <el-table-column prop="school" label="用时">
<template slot-scope="scope"> <template slot-scope="scope">
@ -246,7 +249,7 @@
<template v-if="info.stages.length"> <template v-if="info.stages.length">
<tr v-for="(item, i) in info.stages" :key="i"> <tr v-for="(item, i) in info.stages" :key="i">
<td>{{ i + 1 }}</td> <td>{{ i + 1 }}</td>
<td>{{ item.stageName }}</td> <td>{{ item.stageName || form.name }}</td>
<template v-if="form.completeCompetitionSetup.competitionType"> <template v-if="form.completeCompetitionSetup.competitionType">
<td>{{ item.teamNumLimit || '不限制' }}</td> <td>{{ item.teamNumLimit || '不限制' }}</td>
<td> <td>
@ -315,6 +318,17 @@
</div> </div>
</div> </div>
<el-dialog title="报名" :visible.sync="peopleSignupVisible" :close-on-click-modal="false" width="300px">
<el-form class="dia-form">
<el-form-item>
<el-input placeholder="请输入4位数大赛邀请码" maxlength="4" v-model="peopleSignupForm.registrationInvitationCode"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" type="primary" @click="peopleSignupSubmit">报名</el-button>
<el-button size="small" @click="peopleSignupVisible = false">取消</el-button>
</span>
</el-dialog>
<el-dialog title="报名" :visible.sync="enterVisible" :close-on-click-modal="false" width="300px" @close="enterClose"> <el-dialog title="报名" :visible.sync="enterVisible" :close-on-click-modal="false" width="300px" @close="enterClose">
<el-form class="dia-form"> <el-form class="dia-form">
<p style="margin-bottom: 5px">请选择要加入的团队</p> <p style="margin-bottom: 5px">请选择要加入的团队</p>
@ -517,7 +531,11 @@ export default {
checkedMembers: [], checkedMembers: [],
chooses: [], chooses: [],
lastType: 1, lastType: 1,
playingStages: [] playingStages: [],
peopleSignupVisible: false,
peopleSignupForm: {
registrationInvitationCode: ''
},
}; };
}, },
computed: { computed: {
@ -623,7 +641,7 @@ export default {
const stages = form.competitionStage const stages = form.competitionStage
if (stages) { if (stages) {
this.playingStages = [] this.playingStages = []
stages.forEach(e => { form.competitionRegistration && stages.forEach(e => {
if (now >= new Date(e.startTime) && now <= new Date(e.endTime) && e.method !== 2) this.playingStages.push(e) if (now >= new Date(e.startTime) && now <= new Date(e.endTime) && e.method !== 2) this.playingStages.push(e)
}) })
let endText = '' let endText = ''
@ -689,7 +707,7 @@ export default {
this.$post(`${this.api.entryInformation}?competitionId=${this.id}`).then(res => { this.$post(`${this.api.entryInformation}?competitionId=${this.id}`).then(res => {
const info = res.entryInformation const info = res.entryInformation
// //
if (!info.team.captain && !info.teamInstructors.length) info.teamInstructors.push(JSON.parse(JSON.stringify(this.originIns))) if (info.team && !info.team.captain && !info.teamInstructors.length) info.teamInstructors.push(JSON.parse(JSON.stringify(this.originIns)))
if (info.personalDetail) { if (info.personalDetail) {
info.team = {} info.team = {}
info.teamDetail = [] info.teamDetail = []
@ -717,18 +735,22 @@ export default {
}) })
// //
const now = Date.now() const now = Date.now()
this.form.competitionStage.map(e => { this.form.competitionStage && this.form.competitionStage.map(e => {
// //
if (!e.resultsDetails) { if (!e.resultsDetails) {
console.log(44, endTime - now < 86400000)
const endTime = new Date(e.endTime).getTime() + e.resultAnnouncementTime * 3600000 // + const endTime = new Date(e.endTime).getTime() + e.resultAnnouncementTime * 3600000 // +
if (now > endTime) { // if (now > endTime) { //
info.stages.find(n => n.stageId == e.stageId).showDetail = 1 info.stages.find(n => n.stageId == e.stageId).showDetail = 1
} else { // } else if (endTime - now < 86400000) { //
this.timerList.push(setTimeout(this.getInfo, endTime - now)) this.timerList.push(setTimeout(this.getInfo, endTime - now))
} }
} }
}) })
this.info = info this.info = info
console.log("🚀 ~ file: index.vue:752 ~ this.$post ~ info", info)
}).catch(err => {}); }).catch(err => {});
}, },
// //
@ -1037,7 +1059,18 @@ export default {
this.$router.push(`/record/show?reportId=${row.reportId}`) this.$router.push(`/record/show?reportId=${row.reportId}`)
}, },
// //
peopleSignupSubmit() {
this.$post(this.api.addCompetitionRegistration, {
competitionId: this.id,
registrationInvitationCode: this.peopleSignupForm.registrationInvitationCode
}).then(res => {
this.peopleSignupVisible = false
this.getData()
this.$message.success('报名成功')
}).catch(res => {})
},
//
enterSubmit() { enterSubmit() {
const form = this.enterForm const form = this.enterForm
if (!form.teamId) return util.errorMsg('请选择团队') if (!form.teamId) return util.errorMsg('请选择团队')
@ -1127,7 +1160,8 @@ export default {
if (util.local.get(Setting.tokenKey)) { if (util.local.get(Setting.tokenKey)) {
const { competitionType } = form.completeCompetitionSetup const { competitionType } = form.completeCompetitionSetup
if (status == 4) { // if (status == 4) { //
if (this.curStage && this.curStage.count) return // //
if (this.curStage && this.curStage.count) return util.errorMsg('您已经参加过该阶段竞赛!')
if (form.competitionRegistration.isDisable === 1) return util.errorMsg('当前用户已被禁赛,如有疑问,请联系平台管理员。') // if (form.competitionRegistration.isDisable === 1) return util.errorMsg('当前用户已被禁赛,如有疑问,请联系平台管理员。') //
// //
if (competitionType) { if (competitionType) {
@ -1146,12 +1180,17 @@ export default {
if (competitionType) { if (competitionType) {
this.enterVisible = true this.enterVisible = true
} else { // } else { //
this.$post(this.api.addCompetitionRegistration, { if (form.completeCompetitionSetup.isNeedCode) {
competitionId: this.id this.peopleSignupForm.registrationInvitationCode = ''
}).then(res => { this.peopleSignupVisible = true
this.getData() } else {
this.$message.success('报名成功') this.$post(this.api.addCompetitionRegistration, {
}).catch(res => {}) competitionId: this.id
}).then(res => {
this.getData()
this.$message.success('报名成功')
}).catch(res => {})
}
} }
} else if (status == 1) { } else if (status == 1) {
// //

@ -100,7 +100,7 @@
</div> </div>
</div> </div>
<div class="right"> <div class="right">
<el-dropdown v-if="item.playingStages && item.playingStages.length > 1" class="m-l-10" @command="e => chooseStage(e, item)"> <el-dropdown v-if="item.playingStages && item.playingStages.length > 1" class="m-l-10" @click.stop="stageClick" @command="e => chooseStage(e, item)">
<el-button type="primary" style="background-color: #f96d6d;border: 0;"> <el-button type="primary" style="background-color: #f96d6d;border: 0;">
选择竞赛<i class="el-icon-arrow-down el-icon--right"></i> 选择竞赛<i class="el-icon-arrow-down el-icon--right"></i>
</el-button> </el-button>
@ -140,6 +140,17 @@
</div> </div>
<el-dialog title="报名" :visible.sync="peopleSignupVisible" :close-on-click-modal="false" width="300px">
<el-form class="dia-form">
<el-form-item>
<el-input placeholder="请输入4位数大赛邀请码" maxlength="4" v-model="peopleSignupForm.registrationInvitationCode"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" type="primary" @click="peopleSignupSubmit">报名</el-button>
<el-button size="small" @click="peopleSignupVisible = false">取消</el-button>
</span>
</el-dialog>
<el-dialog title="报名" :visible.sync="enterVisible" :close-on-click-modal="false" width="300px"> <el-dialog title="报名" :visible.sync="enterVisible" :close-on-click-modal="false" width="300px">
<el-form class="dia-form"> <el-form class="dia-form">
<p style="margin-bottom: 5px">请选择要加入的团队</p> <p style="margin-bottom: 5px">请选择要加入的团队</p>
@ -296,7 +307,12 @@ export default {
}, },
curItem: { curItem: {
setup: {} setup: {}
} },
peopleSignupVisible: false,
peopleSignupForm: {
registrationInvitationCode: ''
},
curRow: {}
}; };
}, },
computed: { computed: {
@ -344,11 +360,11 @@ export default {
records.forEach((n, k) => { records.forEach((n, k) => {
n.invitationCode = n.setup.invitationCode n.invitationCode = n.setup.invitationCode
// //
const list = n.competitionRangeRespList const list = n.contestRangeRespList
if (list) { if (list) {
const range = [] const range = []
list.map(e => { list.map(e => {
range.push(e.type ? (e.provinceName || e.cityName) : e.schoolName) // type 10 range.push(e.type ? (e.cityName || e.provinceName) : e.schoolName) // type 10
}) })
n.ranges = `${n.range}${range.join(',')}` n.ranges = `${n.range}${range.join(',')}`
} else { } else {
@ -394,7 +410,8 @@ export default {
const stages = item.competitionStageList const stages = item.competitionStageList
if (stages) { if (stages) {
item.playingStages = [] item.playingStages = []
stages.forEach(e => { //
item.whetherToSignUp === 0 && stages.forEach(e => {
if (now >= new Date(e.startTime) && now <= new Date(e.endTime) && e.method !== 2) item.playingStages.push(e) if (now >= new Date(e.startTime) && now <= new Date(e.endTime) && e.method !== 2) item.playingStages.push(e)
}) })
for (const i in stages) { for (const i in stages) {
@ -516,8 +533,18 @@ export default {
this.getData(); this.getData();
}, },
//
// peopleSignupSubmit() {
this.$post(this.api.addCompetitionRegistration, {
competitionId: this.curRow.id,
registrationInvitationCode: this.peopleSignupForm.registrationInvitationCode
}).then(res => {
this.peopleSignupVisible = false
this.getData()
this.$message.success('报名成功')
}).catch(res => {})
},
//
enterSubmit() { enterSubmit() {
const form = this.enterForm const form = this.enterForm
if (!form.teamId) return util.errorMsg('请选择团队') if (!form.teamId) return util.errorMsg('请选择团队')
@ -565,6 +592,7 @@ export default {
util.successMsg('报名成功!') util.successMsg('报名成功!')
}).catch(res => {}) }).catch(res => {})
}, },
stageClick(e) {},
// //
chooseStage(e, item) { chooseStage(e, item) {
item.curStage = e item.curStage = e
@ -594,7 +622,8 @@ export default {
if (util.local.get(Setting.tokenKey)) { if (util.local.get(Setting.tokenKey)) {
this.curItem = item this.curItem = item
if (status == 4) { // if (status == 4) { //
if (item.curStage.count) return // //
if (item.curStage.count) return util.errorMsg('您已经参加过该阶段竞赛!')
if (item.isDisable === 1) return util.errorMsg('当前用户已被禁赛,如有疑问,请联系平台管理员。') // if (item.isDisable === 1) return util.errorMsg('当前用户已被禁赛,如有疑问,请联系平台管理员。') //
// //
if (competitionType) { if (competitionType) {
@ -620,12 +649,18 @@ export default {
} }
this.enterVisible = true this.enterVisible = true
} else { // } else { //
this.$post(this.api.addCompetitionRegistration, { if (item.setup.isNeedCode) {
competitionId: id this.curRow = item
}).then(res => { this.peopleSignupForm.registrationInvitationCode = ''
this.getData() this.peopleSignupVisible = true
this.$message.success('报名成功') } else {
}).catch(res => {}) this.$post(this.api.addCompetitionRegistration, {
competitionId: id
}).then(res => {
this.getData()
this.$message.success('报名成功')
}).catch(res => {})
}
} }
} else if (status == 1) { } else if (status == 1) {
// //
@ -920,8 +955,8 @@ export default {
} }
.cover { .cover {
img { img {
width: 298px; width: 275px;
height: 190px; height: 175px;
border-radius: 6px; border-radius: 6px;
} }
} }
@ -929,7 +964,7 @@ export default {
.info { .info {
margin-left: 16px; margin-left: 16px;
.title { .title {
margin-bottom: 5px; margin-bottom: 10px;
font-size: 20px; font-size: 20px;
font-weight: 500; font-weight: 500;
color: #0B1D30; color: #0B1D30;

@ -153,7 +153,7 @@
<img src="@/assets/img/report5.png" alt=""> <img src="@/assets/img/report5.png" alt="">
实验总结与体会 实验总结与体会
</h6> </h6>
<quill v-if="editing" :border="true" v-model="infoData.summarize" :height="150" /> <quill v-if="editing" :border="true" v-model="infoData.summarize" :height="150" :index="1" />
<div v-else class="pre-wrap" v-html="infoData.summarize"></div> <div v-else class="pre-wrap" v-html="infoData.summarize"></div>
</div> </div>
</div> </div>
@ -183,12 +183,15 @@ export default {
loadIns: null, loadIns: null,
loading: false, loading: false,
project:false, project:false,
userScores: [] userScores: [],
quills: [],
quillIndex1: 0,
quillIndex2: 1,
}; };
}, },
components: { components: {
breadcrumb, breadcrumb,
quill quill,
}, },
mounted() { mounted() {
this.getData() this.getData()
@ -215,7 +218,7 @@ export default {
summarize: form.summarize summarize: form.summarize
} }
form.assessmentId && (this.breadPath = ['实验记录', '实验报告']) form.assessmentId && (this.breadPath = ['实验记录', '实验报告'])
const data = report.data const { data } = report
this.userScores = userScores this.userScores = userScores
// data使 // data使
if (!data) { if (!data) {
@ -243,6 +246,11 @@ export default {
e.answer += `${i + 1}.${n.userAnswer}` e.answer += `${i + 1}.${n.userAnswer}`
}) })
}) })
} else { // pythonuserScores
list.forEach(e => {
const item = this.userScores.find(n => n.judgmentId == e.judgmentId)
if (item && item.runThePictureList) e.runThePictureList = item.runThePictureList
})
} }
this.expData = list this.expData = list
}, },

@ -281,7 +281,7 @@
</thead> </thead>
</table> </table>
</div> </div>
<div class="main_table" ref="ach" style="max-height: 520px;margin-top: 0;overflow: auto"> <div class="main_table" ref="ach" style="max-height: 520px;margin-top: 0;overflow: hidden">
<table> <table>
<tbody> <tbody>
<tr v-for="(item, i) in achs" :key="i"> <tr v-for="(item, i) in achs" :key="i">

@ -79,6 +79,12 @@
<div> <div>
<span class="label">比赛范围</span><span class="val">{{ item.ranges }}</span> <span class="label">比赛范围</span><span class="val">{{ item.ranges }}</span>
</div> </div>
<div>
<span class="label">比赛类型</span><span class="val">{{ item.setup.competitionType ? '团体赛' : '个人赛' }}</span>
</div>
<div v-if="item.curStage">
<span class="label">当前阶段</span><span class="val">{{ item.curStage.stageName }}</span>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -124,6 +130,17 @@
<el-dialog title="报名" :visible.sync="peopleSignupVisible" :close-on-click-modal="false" width="300px">
<el-form class="dia-form">
<el-form-item>
<el-input placeholder="请输入4位数大赛邀请码" maxlength="4" v-model="peopleSignupForm.registrationInvitationCode"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" type="primary" @click="peopleSignupSubmit">报名</el-button>
<el-button size="small" @click="peopleSignupVisible = false">取消</el-button>
</span>
</el-dialog>
<el-dialog title="报名" :visible.sync="enterVisible" :close-on-click-modal="false" width="300px"> <el-dialog title="报名" :visible.sync="enterVisible" :close-on-click-modal="false" width="300px">
<el-form class="dia-form"> <el-form class="dia-form">
<p style="margin-bottom: 5px">请选择要加入的团队</p> <p style="margin-bottom: 5px">请选择要加入的团队</p>
@ -261,7 +278,12 @@ export default {
}, },
curItem: { curItem: {
setup: {} setup: {}
} },
peopleSignupVisible: false,
peopleSignupForm: {
registrationInvitationCode: ''
},
curRow: {}
}; };
}, },
computed: { computed: {
@ -307,7 +329,7 @@ export default {
records.forEach((n, k) => { records.forEach((n, k) => {
n.invitationCode = n.setup.invitationCode n.invitationCode = n.setup.invitationCode
// //
const list = n.competitionRangeRespList const list = n.contestRangeRespList
if (list) { if (list) {
const range = [] const range = []
list.map(e => { list.map(e => {
@ -357,7 +379,7 @@ export default {
const stages = item.competitionStageList const stages = item.competitionStageList
if (stages) { if (stages) {
item.playingStages = [] item.playingStages = []
stages.forEach(e => { item.whetherToSignUp === 0 && stages.forEach(e => {
if (now >= new Date(e.startTime) && now <= new Date(e.endTime) && e.method !== 2) item.playingStages.push(e) if (now >= new Date(e.startTime) && now <= new Date(e.endTime) && e.method !== 2) item.playingStages.push(e)
}) })
for (const i in stages) { for (const i in stages) {
@ -469,7 +491,18 @@ export default {
this.getData(); this.getData();
}, },
// //
peopleSignupSubmit() {
this.$post(this.api.addCompetitionRegistration, {
competitionId: this.curRow.id,
registrationInvitationCode: this.peopleSignupForm.registrationInvitationCode
}).then(res => {
this.peopleSignupVisible = false
this.getData()
this.$message.success('报名成功')
}).catch(res => {})
},
//
enterSubmit() { enterSubmit() {
const form = this.enterForm const form = this.enterForm
if (!form.teamId) return util.errorMsg('请选择团队') if (!form.teamId) return util.errorMsg('请选择团队')
@ -546,6 +579,8 @@ export default {
if (util.local.get(Setting.tokenKey)) { if (util.local.get(Setting.tokenKey)) {
this.curItem = item this.curItem = item
if (status == 4) { // if (status == 4) { //
//
if (item.curStage.count) return util.errorMsg('您已经参加过该阶段竞赛!')
if (item.isDisable === 1) return util.errorMsg('当前用户已被禁赛,如有疑问,请联系平台管理员。') // if (item.isDisable === 1) return util.errorMsg('当前用户已被禁赛,如有疑问,请联系平台管理员。') //
// //
if (competitionType) { if (competitionType) {
@ -571,12 +606,18 @@ export default {
} }
this.enterVisible = true this.enterVisible = true
} else { // } else { //
this.$post(this.api.addCompetitionRegistration, { if (item.setup.isNeedCode) {
competitionId: id this.curRow = item
}).then(res => { this.peopleSignupForm.registrationInvitationCode = ''
this.getData() this.peopleSignupVisible = true
this.$message.success('报名成功') } else {
}).catch(res => {}) this.$post(this.api.addCompetitionRegistration, {
competitionId: id
}).then(res => {
this.getData()
this.$message.success('报名成功')
}).catch(res => {})
}
} }
} else if (status == 1) { } else if (status == 1) {
// //
@ -861,8 +902,8 @@ export default {
} }
.cover { .cover {
img { img {
width: 220px; width: 275px;
height: 140px; height: 175px;
border-radius: 6px; border-radius: 6px;
} }
} }
@ -870,7 +911,7 @@ export default {
.info { .info {
margin-left: 16px; margin-left: 16px;
.title { .title {
margin-bottom: 5px; margin-bottom: 10px;
font-size: 20px; font-size: 20px;
font-weight: 500; font-weight: 500;
color: #0B1D30; color: #0B1D30;

@ -28,7 +28,7 @@ if (isPro) {
uploadURL = `http://121.37.12.51/` uploadURL = `http://121.37.12.51/`
host = "http://121.37.12.51/"; // 测试服 host = "http://121.37.12.51/"; // 测试服
// host = 'https://www.occupationlab.com/' // 正式服 // host = 'https://www.occupationlab.com/' // 正式服
host = "http://192.168.31.51:9000/"; // 榕 // host = "http://192.168.31.51:9000/"; // 榕
host = "http://192.168.31.116:9000/"; // 赓 host = "http://192.168.31.116:9000/"; // 赓
} }

Loading…
Cancel
Save