|
@@ -22,7 +22,7 @@
|
|
|
<el-button type="primary" size="small" @click="resetPwd">修改密码</el-button>
|
|
|
<el-button type="warning" size="small" @click="logout">退出登录</el-button>
|
|
|
</div>
|
|
|
- <a @click="backToMainPage" style="border-top: 1px solid #334780;"><i class="el-icon-s-home"></i>返回首页</a>
|
|
|
+ <el-link type="primary" @click="backToMainPage" style="border-top: 1px solid #334780;" icon="el-icon-s-home">返回首页</el-link>
|
|
|
<!-- <a href="#"><i class="el-icon-monitor"></i>管理系统</a>-->
|
|
|
</div>
|
|
|
<div slot="reference" style="text-align: center; width:4rem;height:3rem;">
|
|
@@ -40,6 +40,7 @@
|
|
|
import resetPwd from "../views/system/user/profile/resetPwd";
|
|
|
import { getUserProfile } from "@/api/system/user";
|
|
|
import { selectConfigKey } from "@/api/system/config";
|
|
|
+import Cookies from 'js-cookie';
|
|
|
export default {
|
|
|
components: {resetPwd },
|
|
|
data() {
|
|
@@ -66,11 +67,6 @@ import { selectConfigKey } from "@/api/system/config";
|
|
|
|
|
|
}
|
|
|
},
|
|
|
- provide(){
|
|
|
- return{
|
|
|
- closePage:this.closePage
|
|
|
- }
|
|
|
- },
|
|
|
created() {
|
|
|
this.getUser()
|
|
|
},
|
|
@@ -85,6 +81,8 @@ import { selectConfigKey } from "@/api/system/config";
|
|
|
this.nickName=response.data.nickName
|
|
|
this.deptNames=response.data.deptNames
|
|
|
this.phonenumber=response.data.phonenumber
|
|
|
+ this.userId=response.data.userId
|
|
|
+ Cookies.set('userId',response.data.userId);
|
|
|
});
|
|
|
},
|
|
|
resetPwd(){
|
|
@@ -105,12 +103,7 @@ import { selectConfigKey } from "@/api/system/config";
|
|
|
location.href = '/index';
|
|
|
})
|
|
|
}).catch(() => {});
|
|
|
- },
|
|
|
-
|
|
|
- closePage(){
|
|
|
- this.isResetPwd = false;
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
computed: {},
|
|
|
|