|
|
@ -43,8 +43,8 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<th>队长:</th> |
|
|
|
<th>队长:</th> |
|
|
|
<td>{{ info.caption.userName }}{{ info.caption.realSchool && ',' + info.caption.realSchool }}{{ |
|
|
|
<td>{{ info.captain.userName }}{{ info.captain.realSchool && ',' + info.captain.realSchool }}{{ |
|
|
|
info.caption.workNumber && ',' + info.caption.workNumber }}</td> |
|
|
|
info.captain.workNumber && ',' + info.captain.workNumber }}</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<th>团队成员:</th> |
|
|
|
<th>团队成员:</th> |
|
|
@ -144,7 +144,7 @@ |
|
|
|
}}</el-tag> |
|
|
|
}}</el-tag> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="flex-center"> |
|
|
|
<div class="flex-center"> |
|
|
|
<p>队长:{{ info.caption.userName }}</p> |
|
|
|
<p>队长:{{ info.captain.userName }}</p> |
|
|
|
<el-button type="primary" @click="transfer">转让队长</el-button> |
|
|
|
<el-button type="primary" @click="transfer">转让队长</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-table :data="info.teamDetail" stripe header-align="center"> |
|
|
|
<el-table :data="info.teamDetail" stripe header-align="center"> |
|
|
@ -240,7 +240,7 @@ export default { |
|
|
|
info: { |
|
|
|
info: { |
|
|
|
isCaption: 0, |
|
|
|
isCaption: 0, |
|
|
|
person: {}, |
|
|
|
person: {}, |
|
|
|
caption: {}, |
|
|
|
captain: {}, |
|
|
|
team: { |
|
|
|
team: { |
|
|
|
captain: 1, |
|
|
|
captain: 1, |
|
|
|
invitationCode: '' |
|
|
|
invitationCode: '' |
|
|
@ -315,10 +315,10 @@ export default { |
|
|
|
info.team = {} |
|
|
|
info.team = {} |
|
|
|
info.teamDetail = [] |
|
|
|
info.teamDetail = [] |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
info.isCaption = info.team.caption |
|
|
|
info.isCaption = info.team.captain |
|
|
|
} |
|
|
|
} |
|
|
|
const caption = info.teamDetail.find(e => !e.caption) |
|
|
|
const captain = info.teamDetail.find(e => !e.captain) |
|
|
|
info.caption = caption ? caption : {} |
|
|
|
info.captain = captain ? captain : {} |
|
|
|
info.person = info.personalDetail || info.teamDetail.find(e => e.accountId == info.team.accountId) |
|
|
|
info.person = info.personalDetail || info.teamDetail.find(e => e.accountId == info.team.accountId) |
|
|
|
this.originInfo = JSON.parse(JSON.stringify(info)) |
|
|
|
this.originInfo = JSON.parse(JSON.stringify(info)) |
|
|
|
// 把参赛人员的名字和accountId处理成一个数组 |
|
|
|
// 把参赛人员的名字和accountId处理成一个数组 |
|
|
@ -451,7 +451,7 @@ export default { |
|
|
|
transferSubmit () { |
|
|
|
transferSubmit () { |
|
|
|
if (!this.checkedPlayer) return Util.errorMsg('请选择成员') |
|
|
|
if (!this.checkedPlayer) return Util.errorMsg('请选择成员') |
|
|
|
this.$post(this.api.captainOfTransfer, { |
|
|
|
this.$post(this.api.captainOfTransfer, { |
|
|
|
captainId: this.info.caption.teamId, |
|
|
|
captainId: this.info.captain.teamId, |
|
|
|
playerId: this.checkedPlayer |
|
|
|
playerId: this.checkedPlayer |
|
|
|
}).then(res => { |
|
|
|
}).then(res => { |
|
|
|
this.checkedPlayer = '' |
|
|
|
this.checkedPlayer = '' |
|
|
|