mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 05:46:43 +08:00
提交调整
This commit is contained in:
@@ -244,7 +244,7 @@
|
||||
import apiPassword from '@/api/boe/login.js'
|
||||
import imageUpload from '@/components/ImageUpload/index.vue';
|
||||
import apiUserhobby from "@/api/phase2/userhobby.js"
|
||||
const cityOptions = ['上海', '北京', '广州', '深圳'];
|
||||
import apiBoeTeahcer from "@/api/boe/teacher.js"
|
||||
export default{
|
||||
components:{imageUpload},
|
||||
data(){
|
||||
@@ -289,53 +289,6 @@
|
||||
sysTypeListtear:[],
|
||||
teaechswich:false,
|
||||
props: { multiple: true },
|
||||
options: [{
|
||||
value: 1,
|
||||
label: '东南',
|
||||
children: [{
|
||||
value: 2,
|
||||
label: '上海',
|
||||
children: [
|
||||
{ value: 3, label: '普陀' },
|
||||
{ value: 4, label: '黄埔' },
|
||||
{ value: 5, label: '徐汇' }
|
||||
]
|
||||
}, {
|
||||
value: 7,
|
||||
label: '江苏',
|
||||
children: [
|
||||
{ value: 8, label: '南京' },
|
||||
{ value: 9, label: '苏州' },
|
||||
{ value: 10, label: '无锡' }
|
||||
]
|
||||
}, {
|
||||
value: 12,
|
||||
label: '浙江',
|
||||
children: [
|
||||
{ value: 13, label: '杭州' },
|
||||
{ value: 14, label: '宁波' },
|
||||
{ value: 15, label: '嘉兴' }
|
||||
]
|
||||
}]
|
||||
}, {
|
||||
value: 17,
|
||||
label: '西北',
|
||||
children: [{
|
||||
value: 18,
|
||||
label: '陕西',
|
||||
children: [
|
||||
{ value: 19, label: '西安' },
|
||||
{ value: 20, label: '延安' }
|
||||
]
|
||||
}, {
|
||||
value: 21,
|
||||
label: '新疆维吾尔族自治区',
|
||||
children: [
|
||||
{ value: 22, label: '乌鲁木齐' },
|
||||
{ value: 23, label: '克拉玛依' }
|
||||
]
|
||||
}]
|
||||
}],
|
||||
Edittearch:true,
|
||||
infoswich:1,
|
||||
dynamicDataEdit:false,
|
||||
@@ -345,7 +298,6 @@
|
||||
isEdit:false
|
||||
},
|
||||
hideHome:false,// 是否隐藏个人主页
|
||||
cities: cityOptions,
|
||||
checkboxGroup: [],
|
||||
checkboxtearGroup: [],
|
||||
radio: '1',
|
||||
@@ -416,10 +368,7 @@
|
||||
interestIsEdit(){
|
||||
this.load();
|
||||
this.getInfo();
|
||||
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
mounted(){
|
||||
if(this.userInfo.avatar){
|
||||
@@ -445,11 +394,34 @@
|
||||
Teacherinfo(){
|
||||
this.workname=[];
|
||||
this.checkboxtearGroup=[];
|
||||
|
||||
apiTeach.detailTeacher(this.userInfo.aid).then(res =>{
|
||||
this.teachform.courses = res.result.courses;
|
||||
this.teachform.workExperience = res.result.workExperience;
|
||||
this.teachform.photo=res.result.photo;
|
||||
this.tearchUrl = this.fileBaseUrl + res.result.photo;
|
||||
if(res.result.courses){
|
||||
this.teachform.courses = res.result.courses;
|
||||
}
|
||||
if(res.result.workExperience){
|
||||
this.teachform.workExperience = res.result.workExperience;
|
||||
}
|
||||
if(res.result.photo){
|
||||
this.teachform.photo = res.result.photo;
|
||||
this.tearchUrl = this.fileBaseUrl + res.result.photo;
|
||||
}
|
||||
|
||||
apiBoeTeahcer.simpleInfo(this.userInfo.sysId).then(sinfo=>{
|
||||
if(sinfo.status=='200'){
|
||||
if(sinfo.result.courses){
|
||||
this.teachform.courses = sinfo.result.courses;
|
||||
}
|
||||
if(sinfo.result.work){
|
||||
this.teachform.workExperience = sinfo.result.work;
|
||||
}
|
||||
if(sinfo.result.photo){
|
||||
this.teachform.photo = sinfo.result.photo;
|
||||
this.tearchUrl = this.fileBaseUrl + sinfo.result.photo;
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
this.teachform.expertise = res.result.expertise.split( ',' );
|
||||
let children=[];
|
||||
this.sysTypeListtear.forEach(nm =>{
|
||||
@@ -566,6 +538,21 @@
|
||||
if(res.status==200){
|
||||
this.Edittearch = true;
|
||||
this.Teacherinfo();
|
||||
//更新远程
|
||||
let simpleData={
|
||||
teacher_user_id:this.userInfo.sysId,
|
||||
courses:this.teachform.courses,
|
||||
photo:this.teachform.photo,
|
||||
expertise:this.teachform.expertise,
|
||||
work:this.teachform.workExperience
|
||||
}
|
||||
apiBoeTeahcer.simpleUpdate(simpleData).then(rs=>{
|
||||
if(rs.status!='200'){
|
||||
this.$message.error('同步数据错误');
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user