Commit a41bce05 authored by Mac's avatar Mac

1

parent aca5de07
...@@ -178,7 +178,14 @@ ...@@ -178,7 +178,14 @@
if (this.userInfo && this.userInfo.MenuList) { if (this.userInfo && this.userInfo.MenuList) {
this.secondNavs = this.userInfo.MenuList.length > 0 ? this.userInfo.MenuList[i].SubList : [] 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.getLogList();
this.getMsg(); this.getMsg();
}, },
......
...@@ -249,11 +249,6 @@ ...@@ -249,11 +249,6 @@
getBranchList() {//获取校区 getBranchList() {//获取校区
getSchoolDropdown({}).then(res => { getSchoolDropdown({}).then(res => {
this.CompanyList = res.Data; this.CompanyList = res.Data;
var obj = {
SName: '全部',
SId: 0
}
this.CompanyList.unshift(obj);
}).catch(() => { }).catch(() => {
}) })
...@@ -310,7 +305,6 @@ ...@@ -310,7 +305,6 @@
return return
} }
setEmployeeBaseInfo(this.datamodify).then(res => { setEmployeeBaseInfo(this.datamodify).then(res => {
console.log(res)
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
type: 'iconfont icon-chenggong', type: 'iconfont icon-chenggong',
...@@ -325,12 +319,23 @@ ...@@ -325,12 +319,23 @@
this.showObj.UserMobile = this.datamodify.EmployeeTel this.showObj.UserMobile = this.datamodify.EmployeeTel
this.showObj.Email = this.datamodify.Email this.showObj.Email = this.datamodify.Email
this.showObj.School_Id = this.datamodify.School_Id 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={ let localStorageobj={
data:this.showObj data:this.showObj
} }
localStorage.setItem("loginUserInfo", JSON.stringify(localStorageobj) ); 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(() => { }).catch(() => {
...@@ -354,7 +359,21 @@ ...@@ -354,7 +359,21 @@
position: "top", position: "top",
message: res.Message 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(() => { }).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