|
|
|
@ -302,7 +302,7 @@ |
|
|
|
|
<template v-if="status < 5"> |
|
|
|
|
<i v-if="item.edit" |
|
|
|
|
class="el-icon-check icon" |
|
|
|
|
@click="submitAdvisor(item)"></i> |
|
|
|
|
@click="submitAdvisor(item, i)"></i> |
|
|
|
|
<i v-else |
|
|
|
|
class="el-icon-edit icon" |
|
|
|
|
@click="editAdvisor(item)"></i> |
|
|
|
@ -793,6 +793,7 @@ export default { |
|
|
|
|
teamInstructors: [] |
|
|
|
|
}, |
|
|
|
|
originIns: { |
|
|
|
|
id: '', |
|
|
|
|
position: '', |
|
|
|
|
name: '', |
|
|
|
|
phone: '', |
|
|
|
@ -1197,7 +1198,7 @@ export default { |
|
|
|
|
this.$set(row, 'edit', 1) |
|
|
|
|
}, |
|
|
|
|
// 提交指导老师 |
|
|
|
|
submitAdvisor (row) { |
|
|
|
|
submitAdvisor (row, i) { |
|
|
|
|
if (!row.name) return Util.errorMsg('请输入姓名') |
|
|
|
|
const { phone } = row |
|
|
|
|
if (phone && !/^1[3456789]\d{9}$/.test(phone)) return Util.errorMsg('请输入正确手机号格式') |
|
|
|
@ -1208,9 +1209,13 @@ export default { |
|
|
|
|
teamId: this.form.competitionRegistration ? this.form.competitionRegistration.teamId : '', |
|
|
|
|
phone: row.phone, |
|
|
|
|
position: row.position, |
|
|
|
|
}).then(res => { |
|
|
|
|
}).then(({ id }) => { |
|
|
|
|
Util.successMsg((row.id ? '修改' : '新增') + '成功') |
|
|
|
|
this.getInfo() |
|
|
|
|
if (!row.id) { |
|
|
|
|
this.info.teamInstructors[i].id = id |
|
|
|
|
} |
|
|
|
|
this.info.teamInstructors[i].edit = 0 |
|
|
|
|
// this.getInfo() |
|
|
|
|
}).catch(res => { }) |
|
|
|
|
}, |
|
|
|
|
// 显示转让队长 |
|
|
|
|