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