Browse Source

修改添加用户

master
YF-yuan 3 years ago
parent
commit
f27a4d7edc
2 changed files with 4 additions and 9 deletions
  1. +1
    -5
      src/views/common/fragment/HeaderRight.vue
  2. +3
    -4
      src/views/system/user/index.vue

+ 1
- 5
src/views/common/fragment/HeaderRight.vue View File

@@ -10,16 +10,12 @@
<el-submenu index="user" popper-class="ele-menu-pop">
<template slot="title">
<el-avatar :src="user.avatar"/>
<span>{{ user.nickname || '' }}</span>
<span>{{ user.username || '' }}</span>
</template>
<el-menu-item index="info" @click="goUserInfo"><i class="el-icon-user"></i><span>个人中心</span></el-menu-item>
<el-menu-item index="password" @click="showPassword"><i class="el-icon-key"></i><span>修改密码</span></el-menu-item>
<el-divider/>
<el-menu-item index="logout" @click="logout"><i class="el-icon-switch-button"></i><span>退出登录</span></el-menu-item>
</el-submenu>
<el-menu-item index="more" v-if="$setting.showSetting" @click="showSetting">
<i class="el-icon-_more"></i>
</el-menu-item>
</el-menu>
</template>


+ 3
- 4
src/views/system/user/index.vue View File

@@ -105,17 +105,16 @@
<el-option label="女" :value="2"/>
</el-select>
</el-form-item>
<el-form-item label="职级" prop="levelId">
<el-form-item label="职级:" prop="levelId">
<el-select filterable clearable v-model="editForm.levelId" size="small" placeholder="-请选择职级-">
<el-option v-for="item in levelList" :key="item.id" :label="item.name" :value="item.id"/>
</el-select>
</el-form-item>
<el-form-item label="部门:" prop="roleIds">
<el-select v-model="editForm.deptId" placeholder="请选择部门" class="ele-block" clearable multiple>
<el-form-item label="部门:" prop="deptId">
<el-select filterable clearable v-model="editForm.deptId" size="small" placeholder="-请选择部门-">
<el-option v-for="(item,index) in departmentsList" :key="index" :label="item.name" :value="item.id"/>
</el-select>
</el-form-item>
</el-col>
<el-col :sm="12">
<el-form-item label="手机号:">

Loading…
Cancel
Save