Commit a41bce05 authored by Mac's avatar Mac

1

parent aca5de07
......@@ -178,7 +178,14 @@
if (this.userInfo && this.userInfo.MenuList) {
this.secondNavs = this.userInfo.MenuList.length > 0 ? this.userInfo.MenuList[i].SubList : []
}
this.MsgBus.$on('add',(payload) => {
let that= this
that.userInfo.AccountName = payload.EmployeeName
that.userInfo.UserIcon = payload.UserIcon
that.userInfo.Email = payload.Email
that.userInfo.SchoolName = payload.SchoolName
});
this.getLogList();
this.getMsg();
},
......
......@@ -249,11 +249,6 @@
getBranchList() {//获取校区
getSchoolDropdown({}).then(res => {
this.CompanyList = res.Data;
var obj = {
SName: '全部',
SId: 0
}
this.CompanyList.unshift(obj);
}).catch(() => {
})
......@@ -310,7 +305,6 @@
return
}
setEmployeeBaseInfo(this.datamodify).then(res => {
console.log(res)
if (res.Code == 1) {
this.$q.notify({
type: 'iconfont icon-chenggong',
......@@ -325,12 +319,23 @@
this.showObj.UserMobile = this.datamodify.EmployeeTel
this.showObj.Email = this.datamodify.Email
this.showObj.School_Id = this.datamodify.School_Id
this.CompanyList.map(x=>{
if(x.SId == this.datamodify.School_Id){
this.showObj.SchoolName = x.SName;
return
}
})
let localStorageobj={
data:this.showObj
}
localStorage.setItem("loginUserInfo", JSON.stringify(localStorageobj) );
location.reload();
let obj = JSON.parse(JSON.stringify(this.datamodify))
obj.SchoolName = this.showObj.SchoolName
setTimeout(() => {
this.MsgBus.$emit('add',obj);
}, 10);
}
}).catch(() => {
......@@ -354,7 +359,21 @@
position: "top",
message: res.Message
})
this.passwordMsg = Object.assign({},defaultpassword)
// this.passwordMsg = Object.assign({},defaultpassword)
this.$q.dialog({
title: '功能提示',
message: '密码修改需重新登录',
persistent: true
}).onOk(() => {
this.$store
.dispatch('LogOut')
.then(() => {
this.$router.push('/login')
})
.catch((e) => {
})
});
}
}).catch(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment