|
@@ -4,12 +4,12 @@
|
|
|
<el-col :span="6" :xs="24">
|
|
<el-col :span="6" :xs="24">
|
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
|
- <span>个人信息</span>
|
|
|
|
|
|
|
+ <span>个人信息 </span>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
-<!-- <div class="text-center">-->
|
|
|
|
|
-<!-- <userAvatar :user="user" />-->
|
|
|
|
|
-<!-- </div>-->
|
|
|
|
|
|
|
+ <!-- <div class="text-center">-->
|
|
|
|
|
+ <!-- <userAvatar :user="user" />-->
|
|
|
|
|
+ <!-- </div>-->
|
|
|
<ul class="list-group list-group-striped">
|
|
<ul class="list-group list-group-striped">
|
|
|
<li class="list-group-item">
|
|
<li class="list-group-item">
|
|
|
<svg-icon icon-class="user" />用户名称
|
|
<svg-icon icon-class="user" />用户名称
|
|
@@ -25,11 +25,13 @@
|
|
|
</li> -->
|
|
</li> -->
|
|
|
<li class="list-group-item">
|
|
<li class="list-group-item">
|
|
|
<svg-icon icon-class="tree" />所属机构
|
|
<svg-icon icon-class="tree" />所属机构
|
|
|
- <div class="pull-right" v-if="user.orgName">{{ user.orgName }} </div>
|
|
|
|
|
|
|
+ <div class="pull-right" v-if="user.orgName">
|
|
|
|
|
+ {{ user.orgName }}
|
|
|
|
|
+ </div>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="list-group-item">
|
|
<li class="list-group-item">
|
|
|
<svg-icon icon-class="peoples" />所属角色
|
|
<svg-icon icon-class="peoples" />所属角色
|
|
|
- <div class="pull-right">{{ roleGroup }} </div>
|
|
|
|
|
|
|
+ <div class="pull-right">{{ roleGroup }}</div>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="list-group-item">
|
|
<li class="list-group-item">
|
|
|
<svg-icon icon-class="date" />创建日期
|
|
<svg-icon icon-class="date" />创建日期
|
|
@@ -39,7 +41,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="18" :xs="24" v-if="user.source==0">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <el-col :span="18" :xs="24" v-if="configValue == 'N'">
|
|
|
<el-card>
|
|
<el-card>
|
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
|
<span>基本资料</span>
|
|
<span>基本资料</span>
|
|
@@ -49,7 +52,7 @@
|
|
|
<userInfo :user="user" />
|
|
<userInfo :user="user" />
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="修改密码" name="resetPwd">
|
|
<el-tab-pane label="修改密码" name="resetPwd">
|
|
|
- <resetPwd />
|
|
|
|
|
|
|
+ <resetPwd :userObj="user" />
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
</el-card>
|
|
</el-card>
|
|
@@ -62,7 +65,7 @@
|
|
|
import userAvatar from "./userAvatar";
|
|
import userAvatar from "./userAvatar";
|
|
|
import userInfo from "./userInfo";
|
|
import userInfo from "./userInfo";
|
|
|
import resetPwd from "./resetPwd";
|
|
import resetPwd from "./resetPwd";
|
|
|
-import { getUserProfile } from "@/api/system/user";
|
|
|
|
|
|
|
+import { getUserProfile, getUserPasswordAndInfo } from "@/api/system/user";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: "Profile",
|
|
name: "Profile",
|
|
@@ -70,32 +73,38 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
user: {},
|
|
user: {},
|
|
|
|
|
+ configValue: "",
|
|
|
roleGroup: null,
|
|
roleGroup: null,
|
|
|
postGroup: null,
|
|
postGroup: null,
|
|
|
- activeTab: "userinfo"
|
|
|
|
|
|
|
+ activeTab: "userinfo",
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.getUser();
|
|
this.getUser();
|
|
|
|
|
+ this.getUserInfo();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getUser() {
|
|
getUser() {
|
|
|
- getUserProfile().then(res => {
|
|
|
|
|
- console.log(res)
|
|
|
|
|
- if(!res.user) return;
|
|
|
|
|
|
|
+ getUserProfile().then((res) => {
|
|
|
|
|
+ if (!res.user) return;
|
|
|
this.user = res.data;
|
|
this.user = res.data;
|
|
|
this.roleGroup = res.roleGroup;
|
|
this.roleGroup = res.roleGroup;
|
|
|
this.postGroup = res.postGroup;
|
|
this.postGroup = res.postGroup;
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ getUserInfo() {
|
|
|
|
|
+ getUserPasswordAndInfo().then((res) => {
|
|
|
|
|
+ this.configValue = res.data.configValue;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
|
-.list-group-item{
|
|
|
|
|
|
|
+.list-group-item {
|
|
|
border-top: 0;
|
|
border-top: 0;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
- >svg{
|
|
|
|
|
|
|
+ > svg {
|
|
|
margin-right: 5px;
|
|
margin-right: 5px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|