完善个人中心模块前台界面

This commit is contained in:
dataprince 2023-11-15 11:44:56 +08:00
parent 249913a2a9
commit 02f2354ee7
2 changed files with 9 additions and 5 deletions

View File

@ -27,7 +27,11 @@
</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="state.user.dept">{{ state.user.dept.deptName }} / {{ state.postGroup }}</div> <div class="pull-right" v-if="state.user.dept">{{ state.user.dept.deptName }} </div>
</li>
<li class="list-group-item">
<svg-icon icon-class="tree" />所属岗位
<div class="pull-right" >{{ state.postGroup }}</div>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<svg-icon icon-class="peoples" />所属角色 <svg-icon icon-class="peoples" />所属角色
@ -77,9 +81,9 @@ const state = reactive({
function getUser() { function getUser() {
getUserProfile().then(response => { getUserProfile().then(response => {
state.user = response.data; state.user = response.data.user;
state.roleGroup = response.roleGroup; state.roleGroup = response.data.roleGroup;
state.postGroup = response.postGroup; state.postGroup = response.data.postGroup;
}); });
}; };

View File

@ -10,7 +10,7 @@
<el-input v-model="user.email" maxlength="50" /> <el-input v-model="user.email" maxlength="50" />
</el-form-item> </el-form-item>
<el-form-item label="性别"> <el-form-item label="性别">
<el-radio-group v-model="user.sex"> <el-radio-group v-model="user.gender">
<el-radio label="0"></el-radio> <el-radio label="0"></el-radio>
<el-radio label="1"></el-radio> <el-radio label="1"></el-radio>
</el-radio-group> </el-radio-group>