|
|
@ -109,7 +109,7 @@ export default { |
|
|
|
components: { ImageUpload }, |
|
|
|
components: { ImageUpload }, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
imgbase: process.env.VUE_APP_BASE_TARGET, |
|
|
|
imgbase: process.env.VUE_APP_BASE_API, |
|
|
|
loading: false, |
|
|
|
loading: false, |
|
|
|
schoolList: [], |
|
|
|
schoolList: [], |
|
|
|
// 总条数 |
|
|
|
// 总条数 |
|
|
@ -151,7 +151,8 @@ export default { |
|
|
|
detailTalent(row.talentId).then((res) => { |
|
|
|
detailTalent(row.talentId).then((res) => { |
|
|
|
this.form = res |
|
|
|
this.form = res |
|
|
|
if (this.form.avatar) { |
|
|
|
if (this.form.avatar) { |
|
|
|
this.form.avatar = this.imgbase + this.form.avatar |
|
|
|
// this.imgbase + |
|
|
|
|
|
|
|
this.form.avatar = this.form.avatar |
|
|
|
} |
|
|
|
} |
|
|
|
this.title = '修改教师' |
|
|
|
this.title = '修改教师' |
|
|
|
this.visibleopen = true |
|
|
|
this.visibleopen = true |
|
|
@ -180,7 +181,6 @@ export default { |
|
|
|
const url = this.form.avatar |
|
|
|
const url = this.form.avatar |
|
|
|
const index = url.indexOf('/profile') |
|
|
|
const index = url.indexOf('/profile') |
|
|
|
this.form.avatar = url.substring(index) |
|
|
|
this.form.avatar = url.substring(index) |
|
|
|
console.log(this.form) |
|
|
|
|
|
|
|
updateTeacher(this.form).then((res) => { |
|
|
|
updateTeacher(this.form).then((res) => { |
|
|
|
this.$message.success('修改成功') |
|
|
|
this.$message.success('修改成功') |
|
|
|
this.colsedia() |
|
|
|
this.colsedia() |
|
|
|